/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | intel-bts.c | 3 * intel-bts.c: Intel Processor Trace support 30 #include "intel-bts.h" 67 struct intel_bts *bts; member 86 static void intel_bts_dump(struct intel_bts *bts __maybe_unused, in intel_bts_dump() 124 static void intel_bts_dump_event(struct intel_bts *bts, unsigned char *buf, in intel_bts_dump_event() argument 128 intel_bts_dump(bts, buf, len); in intel_bts_dump_event() 131 static int intel_bts_lost(struct intel_bts *bts, struct perf_sample *sample) in intel_bts_lost() argument 140 err = perf_session__deliver_synth_event(bts->session, &event, NULL); in intel_bts_lost() 148 static struct intel_bts_queue *intel_bts_alloc_queue(struct intel_bts *bts, in intel_bts_alloc_queue() argument 157 btsq->bts in intel_bts_alloc_queue() 166 intel_bts_setup_queue(struct intel_bts *bts, struct auxtrace_queue *queue, unsigned int queue_nr) intel_bts_setup_queue() argument 206 intel_bts_setup_queues(struct intel_bts *bts) intel_bts_setup_queues() argument 220 intel_bts_update_queues(struct intel_bts *bts) intel_bts_update_queues() argument 265 intel_bts_cpumode(struct intel_bts *bts, uint64_t ip) intel_bts_cpumode() argument 276 struct intel_bts *bts = btsq->bts; intel_bts_synth_branch_sample() local 344 intel_bts_synth_error(struct intel_bts *bts, int cpu, pid_t pid, pid_t tid, u64 ip) intel_bts_synth_error() argument 537 intel_bts_process_tid_exit(struct intel_bts *bts, pid_t tid) intel_bts_process_tid_exit() argument 552 intel_bts_process_queues(struct intel_bts *bts, u64 timestamp) intel_bts_process_queues() argument 596 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_process_event() local 639 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_process_auxtrace_event() local 680 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_flush() local 708 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_free_events() local 722 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_free() local 734 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_evsel_is_auxtrace() local 769 intel_bts_synth_events(struct intel_bts *bts, struct perf_session *session) intel_bts_synth_events() argument 862 struct intel_bts *bts; intel_bts_process_auxtrace_info() local [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | intel-bts.c | 3 * intel-bts.c: Intel Processor Trace support 30 #include "intel-bts.h" 67 struct intel_bts *bts; member 86 static void intel_bts_dump(struct intel_bts *bts __maybe_unused, in intel_bts_dump() 124 static void intel_bts_dump_event(struct intel_bts *bts, unsigned char *buf, in intel_bts_dump_event() argument 128 intel_bts_dump(bts, buf, len); in intel_bts_dump_event() 131 static int intel_bts_lost(struct intel_bts *bts, struct perf_sample *sample) in intel_bts_lost() argument 140 err = perf_session__deliver_synth_event(bts->session, &event, NULL); in intel_bts_lost() 148 static struct intel_bts_queue *intel_bts_alloc_queue(struct intel_bts *bts, in intel_bts_alloc_queue() argument 157 btsq->bts in intel_bts_alloc_queue() 166 intel_bts_setup_queue(struct intel_bts *bts, struct auxtrace_queue *queue, unsigned int queue_nr) intel_bts_setup_queue() argument 206 intel_bts_setup_queues(struct intel_bts *bts) intel_bts_setup_queues() argument 220 intel_bts_update_queues(struct intel_bts *bts) intel_bts_update_queues() argument 265 intel_bts_cpumode(struct intel_bts *bts, uint64_t ip) intel_bts_cpumode() argument 276 struct intel_bts *bts = btsq->bts; intel_bts_synth_branch_sample() local 344 intel_bts_synth_error(struct intel_bts *bts, int cpu, pid_t pid, pid_t tid, u64 ip) intel_bts_synth_error() argument 537 intel_bts_process_tid_exit(struct intel_bts *bts, pid_t tid) intel_bts_process_tid_exit() argument 552 intel_bts_process_queues(struct intel_bts *bts, u64 timestamp) intel_bts_process_queues() argument 596 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_process_event() local 639 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_process_auxtrace_event() local 680 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_flush() local 708 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_free_events() local 722 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_free() local 734 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, intel_bts_evsel_is_auxtrace() local 769 intel_bts_synth_events(struct intel_bts *bts, struct perf_session *session) intel_bts_synth_events() argument 862 struct intel_bts *bts; intel_bts_process_auxtrace_info() local [all...] |
/kernel/linux/linux-5.10/arch/x86/events/intel/ |
H A D | bts.c | 183 static void bts_update(struct bts_ctx *bts) in bts_update() argument 187 struct bts_buffer *buf = perf_get_aux(&bts->handle); in bts_update() 201 perf_aux_output_flag(&bts->handle, in bts_update() 219 * of bts::state, which: 220 * - is set when bts::handle::event is valid, that is, between 223 * - is ordered against bts::handle::event with a compiler barrier. 228 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); in __bts_event_start() local 229 struct bts_buffer *buf = perf_get_aux(&bts->handle); in __bts_event_start() 243 * before we enable BTS and bts::state goes ACTIVE in __bts_event_start() 248 WRITE_ONCE(bts in __bts_event_start() 257 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); bts_event_start() local 287 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); __bts_event_stop() local 302 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); bts_event_stop() local 335 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); intel_bts_enable_local() local 355 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); intel_bts_disable_local() local 447 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); intel_bts_interrupt() local 515 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); bts_event_add() local [all...] |
H A D | Makefile | 2 obj-$(CONFIG_CPU_SUP_INTEL) += core.o bts.o
|
H A D | ds.c | 398 if (!x86_pmu.bts) in alloc_bts_buffer() 425 if (!x86_pmu.bts) in release_bts_buffer() 453 if (!x86_pmu.bts && !x86_pmu.pebs) in release_ds_buffers() 482 if (!x86_pmu.bts && !x86_pmu.pebs) in reserve_ds_buffers() 485 if (!x86_pmu.bts) in reserve_ds_buffers() 521 if (x86_pmu.bts && !bts_err) in reserve_ds_buffers() 2026 x86_pmu.bts = boot_cpu_has(X86_FEATURE_BTS); in intel_ds_init() 2115 if (!x86_pmu.bts && !x86_pmu.pebs) in perf_restore_debug_store()
|
/kernel/linux/linux-6.6/arch/x86/events/intel/ |
H A D | bts.c | 183 static void bts_update(struct bts_ctx *bts) in bts_update() argument 187 struct bts_buffer *buf = perf_get_aux(&bts->handle); in bts_update() 201 perf_aux_output_flag(&bts->handle, in bts_update() 215 * BTS updating is ordered against bts::handle::event. in bts_update() 225 * of bts::state, which: 226 * - is set when bts::handle::event is valid, that is, between 229 * - is ordered against bts::handle::event with a compiler barrier. 234 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); in __bts_event_start() local 235 struct bts_buffer *buf = perf_get_aux(&bts->handle); in __bts_event_start() 249 * before we enable BTS and bts in __bts_event_start() 263 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); bts_event_start() local 293 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); __bts_event_stop() local 308 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); bts_event_stop() local 341 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); intel_bts_enable_local() local 361 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); intel_bts_disable_local() local 453 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); intel_bts_interrupt() local 521 struct bts_ctx *bts = this_cpu_ptr(&bts_ctx); bts_event_add() local [all...] |
H A D | Makefile | 2 obj-$(CONFIG_CPU_SUP_INTEL) += core.o bts.o
|
H A D | ds.c | 572 if (!x86_pmu.bts) in alloc_bts_buffer() 599 if (!x86_pmu.bts) in release_bts_buffer() 627 if (!x86_pmu.bts && !x86_pmu.pebs) in release_ds_buffers() 656 if (!x86_pmu.bts && !x86_pmu.pebs) in reserve_ds_buffers() 659 if (!x86_pmu.bts) in reserve_ds_buffers() 695 if (x86_pmu.bts && !bts_err) in reserve_ds_buffers() 2333 x86_pmu.bts = boot_cpu_has(X86_FEATURE_BTS); in intel_ds_init() 2426 if (!x86_pmu.bts && !x86_pmu.pebs) in perf_restore_debug_store()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/ |
H A D | lima_vm.c | 43 vm->bts[pbe].cpu[bte] = 0; in lima_vm_unmap_range() 52 if (!vm->bts[pbe].cpu) { in lima_vm_map_page() 57 vm->bts[pbe].cpu = dma_alloc_wc( in lima_vm_map_page() 59 &vm->bts[pbe].dma, GFP_KERNEL | __GFP_NOWARN | __GFP_ZERO); in lima_vm_map_page() 60 if (!vm->bts[pbe].cpu) in lima_vm_map_page() 63 pts = vm->bts[pbe].dma; in lima_vm_map_page() 71 vm->bts[pbe].cpu[bte] = pa | LIMA_VM_FLAGS_CACHE; in lima_vm_map_page() 243 if (vm->bts[i].cpu) in lima_vm_release() 245 vm->bts[i].cpu, vm->bts[ in lima_vm_release() [all...] |
H A D | lima_vm.h | 38 struct lima_vm_page bts[LIMA_VM_NUM_BT]; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/lima/ |
H A D | lima_vm.c | 43 vm->bts[pbe].cpu[bte] = 0; in lima_vm_unmap_range() 52 if (!vm->bts[pbe].cpu) { in lima_vm_map_page() 57 vm->bts[pbe].cpu = dma_alloc_wc( in lima_vm_map_page() 59 &vm->bts[pbe].dma, GFP_KERNEL | __GFP_NOWARN | __GFP_ZERO); in lima_vm_map_page() 60 if (!vm->bts[pbe].cpu) in lima_vm_map_page() 63 pts = vm->bts[pbe].dma; in lima_vm_map_page() 71 vm->bts[pbe].cpu[bte] = pa | LIMA_VM_FLAGS_CACHE; in lima_vm_map_page() 243 if (vm->bts[i].cpu) in lima_vm_release() 245 vm->bts[i].cpu, vm->bts[ in lima_vm_release() [all...] |
H A D | lima_vm.h | 38 struct lima_vm_page bts[LIMA_VM_NUM_BT]; member
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | sync_bitops.h | 34 asm volatile("lock; " __ASM_SIZE(bts) " %1,%0" in sync_set_bit() 85 return GEN_BINARY_RMWcc("lock; " __ASM_SIZE(bts), *addr, c, "Ir", nr); in sync_test_and_set_bit()
|
H A D | bitops.h | 60 asm volatile(LOCK_PREFIX __ASM_SIZE(bts) " %1,%0" in arch_set_bit() 68 asm volatile(__ASM_SIZE(bts) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); in arch___set_bit() 138 return GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(bts), *addr, c, "Ir", nr); in arch_test_and_set_bit() 152 asm(__ASM_SIZE(bts) " %2,%1" in arch___test_and_set_bit()
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | sync_bitops.h | 34 asm volatile("lock; " __ASM_SIZE(bts) " %1,%0" in sync_set_bit() 85 return GEN_BINARY_RMWcc("lock; " __ASM_SIZE(bts), *addr, c, "Ir", nr); in sync_test_and_set_bit()
|
H A D | bitops.h | 60 asm volatile(LOCK_PREFIX __ASM_SIZE(bts) " %1,%0" in arch_set_bit() 68 asm volatile(__ASM_SIZE(bts) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); in arch___set_bit() 138 return GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(bts), *addr, c, "Ir", nr); in arch_test_and_set_bit() 152 asm(__ASM_SIZE(bts) " %2,%1" in arch___test_and_set_bit()
|
H A D | nospec-branch.h | 88 bts $63, %rax; \
|
/kernel/linux/linux-6.6/tools/arch/x86/include/asm/ |
H A D | atomic.h | 76 GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(bts), *addr, "Ir", nr, "%0", "c"); in test_and_set_bit()
|
/kernel/linux/linux-5.10/arch/x86/realmode/rm/ |
H A D | trampoline_64.S | 128 bts $MSR_K8_SYSCFG_MEM_ENCRYPT_BIT, %eax
|
/kernel/linux/linux-6.6/arch/x86/realmode/rm/ |
H A D | trampoline_64.S | 144 bts $MSR_AMD64_SYSCFG_MEM_ENCRYPT_BIT, %eax
|
/kernel/linux/linux-5.10/arch/x86/entry/ |
H A D | calling.h | 184 bts $X86_CR3_PCID_NOFLUSH_BIT, \reg
|
/kernel/linux/linux-6.6/arch/x86/entry/ |
H A D | calling.h | 158 bts $X86_CR3_PCID_NOFLUSH_BIT, \reg
|
/kernel/linux/linux-6.6/arch/x86/boot/compressed/ |
H A D | head_64.S | 188 bts %eax, %edx /* Set encryption mask for page tables */
|
/kernel/linux/linux-6.6/drivers/soc/mediatek/ |
H A D | mtk-svs.c | 402 * @bts: svs efuse data 464 u32 bts; member 1146 ts_calcs = FIELD_PREP(SVSB_TSCALCS_FLD_BTS, svsb->bts) | in svs_set_bank_phase() 1805 svsb->bts = (((500 * golden_temp + 250460) / 1000) - 25) * 4; in svs_mt8192_efuse_parsing() 1983 svsb->bts = (temp0 + temp2 - 250) * 4 / 10; in svs_mt8183_efuse_parsing()
|
/kernel/linux/linux-5.10/arch/x86/boot/compressed/ |
H A D | head_64.S | 179 bts %eax, %edx /* Set encryption mask for page tables */
|