Searched refs:escr (Results 1 – 3 of 3) sorted by relevance
/linux-3.4.99/arch/x86/oprofile/ |
D | op_model_p4.c | 348 #define ESCR_CLEAR(escr) ((escr) &= ESCR_RESERVED_BITS) argument 349 #define ESCR_SET_USR_0(escr, usr) ((escr) |= (((usr) & 1) << 2)) argument 350 #define ESCR_SET_OS_0(escr, os) ((escr) |= (((os) & 1) << 3)) argument 351 #define ESCR_SET_USR_1(escr, usr) ((escr) |= (((usr) & 1))) argument 352 #define ESCR_SET_OS_1(escr, os) ((escr) |= (((os) & 1) << 1)) argument 353 #define ESCR_SET_EVENT_SELECT(escr, sel) ((escr) |= (((sel) & 0x3f) << 25)) argument 354 #define ESCR_SET_EVENT_MASK(escr, mask) ((escr) |= (((mask) & 0xffff) << 9)) argument 509 unsigned int escr = 0; in pmc_setup_one_p4_counter() local 534 rdmsr(ev->bindings[i].escr_address, escr, high); in pmc_setup_one_p4_counter() 535 ESCR_CLEAR(escr); in pmc_setup_one_p4_counter() [all …]
|
/linux-3.4.99/arch/x86/kernel/cpu/ |
D | perf_event_p4.c | 805 u32 escr, cccr; in p4_hw_config() local 814 escr = p4_default_escr_conf(cpu, event->attr.exclude_kernel, in p4_hw_config() 816 event->hw.config = p4_config_pack_escr(escr) | in p4_hw_config() 1069 u32 escr, cccr; in p4_pmu_swap_config_ts() local 1082 escr = p4_config_unpack_escr(hwc->config); in p4_pmu_swap_config_ts() 1088 if (escr & P4_ESCR_T0_OS) { in p4_pmu_swap_config_ts() 1089 escr &= ~P4_ESCR_T0_OS; in p4_pmu_swap_config_ts() 1090 escr |= P4_ESCR_T1_OS; in p4_pmu_swap_config_ts() 1092 if (escr & P4_ESCR_T0_USR) { in p4_pmu_swap_config_ts() 1093 escr &= ~P4_ESCR_T0_USR; in p4_pmu_swap_config_ts() [all …]
|
/linux-3.4.99/arch/x86/include/asm/ |
D | perf_event_p4.h | 221 u32 escr = 0; in p4_default_escr_conf() local 225 escr |= P4_ESCR_T0_OS; in p4_default_escr_conf() 227 escr |= P4_ESCR_T0_USR; in p4_default_escr_conf() 230 escr |= P4_ESCR_T1_OS; in p4_default_escr_conf() 232 escr |= P4_ESCR_T1_USR; in p4_default_escr_conf() 235 return escr; in p4_default_escr_conf()
|