/tools/perf/util/ |
D | tsc.c | 41 int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc, in perf_read_tsc_conversion() argument 48 seq = pc->lock; in perf_read_tsc_conversion() 50 tc->time_mult = pc->time_mult; in perf_read_tsc_conversion() 51 tc->time_shift = pc->time_shift; in perf_read_tsc_conversion() 52 tc->time_zero = pc->time_zero; in perf_read_tsc_conversion() 53 tc->time_cycles = pc->time_cycles; in perf_read_tsc_conversion() 54 tc->time_mask = pc->time_mask; in perf_read_tsc_conversion() 55 tc->cap_user_time_zero = pc->cap_user_time_zero; in perf_read_tsc_conversion() 56 tc->cap_user_time_short = pc->cap_user_time_short; in perf_read_tsc_conversion() 58 if (pc->lock == seq && !(seq & 1)) in perf_read_tsc_conversion() [all …]
|
D | unwind-libdw.c | 199 Dwarf_Addr pc; in frame_callback() local 202 if (!dwfl_frame_pc(state, &pc, NULL)) { in frame_callback() 208 report_module(pc, ui); in frame_callback() 210 if (!dwfl_frame_pc(state, &pc, &isactivation)) { in frame_callback() 216 --pc; in frame_callback() 218 return entry(pc, ui) || !(--ui->max_stack) ? in frame_callback()
|
D | auxtrace.h | 441 struct perf_event_mmap_page *pc = mm->userpg; in auxtrace_mmap__read_snapshot_head() local 442 u64 head = READ_ONCE(pc->aux_head); in auxtrace_mmap__read_snapshot_head() 451 struct perf_event_mmap_page *pc = mm->userpg; in auxtrace_mmap__read_head() local 453 u64 head = READ_ONCE(pc->aux_head); in auxtrace_mmap__read_head() 455 u64 head = __sync_val_compare_and_swap(&pc->aux_head, 0, 0); in auxtrace_mmap__read_head() 465 struct perf_event_mmap_page *pc = mm->userpg; in auxtrace_mmap__write_tail() local 473 pc->aux_tail = tail; in auxtrace_mmap__write_tail() 476 old_tail = __sync_val_compare_and_swap(&pc->aux_tail, 0, 0); in auxtrace_mmap__write_tail() 477 } while (!__sync_bool_compare_and_swap(&pc->aux_tail, old_tail, tail)); in auxtrace_mmap__write_tail()
|
D | tsc.h | 20 int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc,
|
D | srcline.c | 193 bfd_vma pc, vma; in find_address_in_section() local 209 pc = a2l->addr; in find_address_in_section() 221 if (pc < vma || pc >= vma + size) in find_address_in_section() 224 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section()
|
/tools/include/linux/ |
D | rbtree_augmented.h | 150 #define __rb_parent(pc) ((struct rb_node *)(pc & ~3)) argument 152 #define __rb_color(pc) ((pc) & 1) argument 153 #define __rb_is_black(pc) __rb_color(pc) argument 154 #define __rb_is_red(pc) (!__rb_color(pc)) argument 193 unsigned long pc; in __rb_erase_augmented() local 203 pc = node->__rb_parent_color; in __rb_erase_augmented() 204 parent = __rb_parent(pc); in __rb_erase_augmented() 207 child->__rb_parent_color = pc; in __rb_erase_augmented() 210 rebalance = __rb_is_black(pc) ? parent : NULL; in __rb_erase_augmented() 214 tmp->__rb_parent_color = pc = node->__rb_parent_color; in __rb_erase_augmented() [all …]
|
/tools/perf/arch/x86/tests/ |
D | rdpmc.c | 39 struct perf_event_mmap_page *pc = addr; in mmap_read_self() local 44 seq = pc->lock; in mmap_read_self() 47 enabled = pc->time_enabled; in mmap_read_self() 48 running = pc->time_running; in mmap_read_self() 52 time_mult = pc->time_mult; in mmap_read_self() 53 time_shift = pc->time_shift; in mmap_read_self() 54 time_offset = pc->time_offset; in mmap_read_self() 57 idx = pc->index; in mmap_read_self() 58 count = pc->offset; in mmap_read_self() 63 } while (pc->lock != seq); in mmap_read_self()
|
D | perf-time-to-tsc.c | 66 struct perf_event_mmap_page *pc; in test__perf_time_to_tsc() local 97 pc = evlist->mmap[0].core.base; in test__perf_time_to_tsc() 98 ret = perf_read_tsc_conversion(pc, &tc); in test__perf_time_to_tsc()
|
/tools/perf/arch/powerpc/util/ |
D | skip-callchain-idx.c | 97 static Dwarf_Frame *get_eh_frame(Dwfl_Module *mod, Dwarf_Addr pc) in get_eh_frame() argument 110 result = dwarf_cfi_addrframe(cfi, pc-bias, &frame); in get_eh_frame() 122 static Dwarf_Frame *get_dwarf_frame(Dwfl_Module *mod, Dwarf_Addr pc) in get_dwarf_frame() argument 135 result = dwarf_cfi_addrframe(cfi, pc-bias, &frame); in get_dwarf_frame() 152 static int check_return_addr(struct dso *dso, u64 map_start, Dwarf_Addr pc) in check_return_addr() argument 159 Dwarf_Addr start = pc; in check_return_addr() 160 Dwarf_Addr end = pc; in check_return_addr() 189 mod = dwfl_addrmodule(dwfl, pc); in check_return_addr() 199 frame = get_eh_frame(mod, pc); in check_return_addr() 201 frame = get_dwarf_frame(mod, pc); in check_return_addr()
|
/tools/bpf/bpftool/ |
D | jit_disasm.c | 87 int count, i, pc = 0; in disasm_print_insn() local 144 func_ksym + pc, in disasm_print_insn() 157 jsonw_printf(json_wtr, "\"0x%x\"", pc); in disasm_print_insn() 162 printf("%4x:\t", pc); in disasm_print_insn() 165 count = disassemble(pc, &info); in disasm_print_insn() 182 (uint8_t)image[pc + i]); in disasm_print_insn() 188 (uint8_t)image[pc + i]); in disasm_print_insn() 196 pc += count; in disasm_print_insn() 197 } while (count > 0 && pc < len); in disasm_print_insn()
|
/tools/testing/selftests/powerpc/security/ |
D | flush_utils.c | 42 unsigned long *pc = &UCONTEXT_NIA(ctx); in sigill_handler() local 45 if ((*((unsigned int *)*pc) & 0xfc1fffff) == 0x7c0303a6) { in sigill_handler() 48 *pc += 4; in sigill_handler() 50 printf("SIGILL at %p\n", pc); in sigill_handler()
|
/tools/testing/selftests/kvm/x86_64/ |
D | debug_regs.c | 98 run->debug.arch.pc == CAST_TO_RIP(sw_bp), in main() 101 run->debug.arch.pc, CAST_TO_RIP(sw_bp)); in main() 115 run->debug.arch.pc == CAST_TO_RIP(hw_bp) && in main() 120 run->debug.arch.pc, CAST_TO_RIP(hw_bp), in main() 138 run->debug.arch.pc == CAST_TO_RIP(write_data) && in main() 143 run->debug.arch.pc, CAST_TO_RIP(write_data), in main() 164 run->debug.arch.pc == target_rip && in main() 169 run->debug.arch.pc, target_rip, run->debug.arch.dr6, in main() 182 run->debug.arch.pc == CAST_TO_RIP(bd_start) && in main() 187 run->debug.arch.pc, target_rip, run->debug.arch.dr6, in main()
|
/tools/testing/selftests/powerpc/alignment/ |
D | copy_first_unaligned.c | 22 unsigned int *pc = (unsigned int *)ctx->uc_mcontext.gp_regs[PT_NIP]; in signal_action_handler() local 24 unsigned int *pc = (unsigned int *)ctx->uc_mcontext.uc_regs->gregs[PT_NIP]; in signal_action_handler() local 31 if ((*pc & instruction_mask) == expected_instruction) in signal_action_handler()
|
/tools/bpf/ |
D | bpf_jit_disasm.c | 54 int count, i, pc = 0; in get_asm_insns() local 86 printf("%4x:\t", pc); in get_asm_insns() 88 count = disassemble(pc, &info); in get_asm_insns() 93 printf("%02x ", (uint8_t) image[pc + i]); in get_asm_insns() 97 pc += count; in get_asm_insns() 98 } while(count > 0 && pc < len); in get_asm_insns()
|
/tools/lib/bpf/ |
D | .gitignore | 3 libbpf.pc
|
D | Makefile | 96 PC_FILE = libbpf.pc 197 $(OUTPUT)libbpf.pc: 201 < libbpf.pc.template > $@ 278 *.o *.a *.so *.so.$(LIBBPF_MAJOR_VERSION) *.pc)
|
/tools/perf/jvmti/ |
D | jvmti_agent.h | 14 unsigned long pc; member
|
D | libjvmti.c | 35 do_get_line_number(jvmtiEnv *jvmti, void *pc, jmethodID m, jint bci, in do_get_line_number() argument 57 tab->pc = (unsigned long)pc; in do_get_line_number() 115 ret = do_get_line_number(jvmti, c->pc, in get_line_numbers()
|
/tools/testing/selftests/kvm/lib/aarch64/ |
D | processor.c | 306 uint64_t pstate, pc; in vcpu_dump() local 309 get_reg(vm, vcpuid, ARM64_CORE_REG(regs.pc), &pc); in vcpu_dump() 312 indent, "", pstate, pc); in vcpu_dump() 328 set_reg(vm, vcpuid, ARM64_CORE_REG(regs.pc), (uint64_t)guest_code); in aarch64_vcpu_add_default()
|
/tools/testing/selftests/arm64/mte/ |
D | mte_common_util.c | 35 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler() 53 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in mte_default_handler() 64 ((ucontext_t *)uc)->uc_mcontext.pc, addr, si->si_code); in mte_default_handler() 73 ((ucontext_t *)uc)->uc_mcontext.pc += 4; in mte_default_handler()
|
/tools/perf/arch/arm/tests/ |
D | regs_load.S | 58 mov pc, lr
|
/tools/testing/ktest/ |
D | config-bisect.pl | 293 my ($pc, $file) = @_; 295 my %configs = %{$pc}; 308 my ($name, $pc) = @_; 312 save_config $pc, $output_config;
|
/tools/perf/arch/x86/util/ |
D | intel-bts.c | 70 struct perf_event_mmap_page *pc; in intel_bts_info_fill() local 81 pc = session->evlist->mmap[0].core.base; in intel_bts_info_fill() 82 if (pc) { in intel_bts_info_fill() 83 err = perf_read_tsc_conversion(pc, &tc); in intel_bts_info_fill()
|
/tools/power/cpupower/utils/ |
D | cpufreq-set.c | 172 unsigned long freq, unsigned int pc) in do_one_cpu() argument 174 switch (pc) { in do_one_cpu()
|
/tools/lib/perf/ |
D | Makefile | 93 LIBPERF_PC := $(OUTPUT)libperf.pc 150 < libperf.pc.template > $@
|