| /tools/testing/selftests/bpf/ |
| A D | jit_disasm_helpers.c | 68 cnt = LLVMDisasmInstruction(ctx, image + pc, len - pc, pc, in disasm_insn() 74 printf(" %02x", image[pc + i]); in disasm_insn() 96 __u32 *label_pc, pc; in disasm_one_func() local 115 pc = 0; in disasm_one_func() 116 while (pc < len) { in disasm_one_func() 122 pc += cnt; in disasm_one_func() 137 pc = 0; in disasm_one_func() 138 while (pc < len) { in disasm_one_func() 157 pc += cnt; in disasm_one_func() 172 __u32 jited_funcs, len, pc; in get_jited_program_text() local [all …]
|
| /tools/perf/util/ |
| A D | tsc.c | 50 seq = pc->lock; in perf_read_tsc_conversion() 52 tc->time_mult = pc->time_mult; in perf_read_tsc_conversion() 53 tc->time_shift = pc->time_shift; in perf_read_tsc_conversion() 54 tc->time_zero = pc->time_zero; in perf_read_tsc_conversion() 55 tc->time_cycles = pc->time_cycles; in perf_read_tsc_conversion() 56 tc->time_mask = pc->time_mask; in perf_read_tsc_conversion() 57 tc->cap_user_time_zero = pc->cap_user_time_zero; in perf_read_tsc_conversion() 58 tc->cap_user_time_short = pc->cap_user_time_short; in perf_read_tsc_conversion() 60 if (pc->lock == seq && !(seq & 1)) in perf_read_tsc_conversion() 90 if (!pc) in perf_event__synth_time_conv() [all …]
|
| A D | disasm_bpf.c | 39 int pc = 0, count, sub_id; in symbol__disassemble_bpf() local 122 addr = pc + ((u64 *)(uintptr_t)(info_linear->info.jited_ksyms))[sub_id]; in symbol__disassemble_bpf() 123 count = disassemble(pc, &info); in symbol__disassemble_bpf() 153 args->offset = pc; in symbol__disassemble_bpf() 162 pc += count; in symbol__disassemble_bpf() 163 } while (count > 0 && pc < len); in symbol__disassemble_bpf()
|
| A D | unwind-libdw.c | 238 Dwarf_Addr pc; in frame_callback() local 241 if (!dwfl_frame_pc(state, &pc, NULL)) { in frame_callback() 248 report_module(pc, ui); in frame_callback() 250 if (!dwfl_frame_pc(state, &pc, &isactivation)) { in frame_callback() 257 --pc; in frame_callback() 259 return entry(pc, ui) || !(--ui->max_stack) ? in frame_callback()
|
| /tools/testing/selftests/powerpc/ptrace/ |
| A D | ptrace-perf-hwbreak.c | 84 static long ptrace_getreg_pc(pid_t pid, void **pc) in ptrace_getreg_pc() argument 93 *pc = (void *)regs.nip; in ptrace_getreg_pc() 98 static long ptrace_setreg_pc(pid_t pid, void *pc) in ptrace_setreg_pc() argument 107 regs.nip = (unsigned long)pc; in ptrace_setreg_pc() 232 void *pc; /* Most recently fetched child PC value */ in same_watch_addr_test() local 264 FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC"); in same_watch_addr_test() 279 FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC"); in same_watch_addr_test() 297 FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC"); in same_watch_addr_test() 307 FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC"); in same_watch_addr_test() 322 FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC"); in same_watch_addr_test() [all …]
|
| /tools/include/linux/ |
| A 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() 215 parent = __rb_parent(pc); in __rb_erase_augmented() 270 pc = node->__rb_parent_color; in __rb_erase_augmented() [all …]
|
| /tools/testing/selftests/kvm/riscv/ |
| A D | ebreak_test.c | 40 uint64_t pc; in main() local 63 pc = vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.pc)); in main() 64 TEST_ASSERT_EQ(pc, LABEL_ADDRESS(sw_bp_1)); in main() 67 vcpu_set_reg(vcpu, RISCV_CORE_REG(regs.pc), pc + 4); in main()
|
| /tools/perf/arch/powerpc/util/ |
| A 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/testing/selftests/bpf/progs/ |
| A D | percpu_alloc_array.c | 9 struct val_t __percpu_kptr *pc; member 40 p = bpf_kptr_xchg(&e->pc, p); in BPF_PROG() 60 p = e->pc; in BPF_PROG() 92 p = e->pc; in BPF_PROG() 121 p = bpf_kptr_xchg(&e->pc, NULL); in BPF_PROG() 145 p = e->pc; in BPF_PROG() 151 p1 = bpf_kptr_xchg(&e->pc, p); in BPF_PROG() 170 p1 = bpf_kptr_xchg(&e->pc, NULL); in BPF_PROG()
|
| A D | percpu_alloc_cgrp_local_storage.c | 9 struct val_t __percpu_kptr *pc; member 39 p = bpf_kptr_xchg(&e->pc, p); in BPF_PROG() 60 p = e->pc; in BPF_PROG() 93 p = e->pc; in BPF_PROG()
|
| A D | percpu_alloc_fail.c | 26 struct val_t __percpu_kptr *pc; member 54 p = bpf_kptr_xchg(&e->pc, p); in BPF_PROG() 58 e->pc = (struct val_t __percpu_kptr *)ret; in BPF_PROG() 79 p = bpf_kptr_xchg(&e->pc, p2); in BPF_PROG() 103 p1 = bpf_kptr_xchg(&e->pc, p); in BPF_PROG()
|
| /tools/bpf/bpftool/ |
| A D | jit_disasm.c | 119 count = LLVMDisasmInstruction(*ctx, image + pc, len - pc, func_ksym + pc, in disassemble_insn() 324 __maybe_unused ssize_t len, int pc, in disassemble_insn() argument 327 return ctx->disassemble(pc, &ctx->info->info); in disassemble_insn() 347 unsigned int pc = 0; in disasm_print_insn() local 361 func_ksym + pc, in disasm_print_insn() 374 jsonw_printf(json_wtr, "\"0x%x\"", pc); in disasm_print_insn() 379 printf("%4x:" DISASM_SPACER, pc); in disasm_print_insn() 400 (uint8_t)image[pc + i]); in disasm_print_insn() 406 (uint8_t)image[pc + i]); in disasm_print_insn() 414 pc += count; in disasm_print_insn() [all …]
|
| /tools/lib/perf/ |
| A D | mmap.c | 95 struct perf_event_mmap_page *pc = map->base; in perf_mmap__empty() local 486 if (!pc || !pc->cap_user_rdpmc) in perf_mmap__read_self() 490 seq = READ_ONCE(pc->lock); in perf_mmap__read_self() 498 time_mult = READ_ONCE(pc->time_mult); in perf_mmap__read_self() 502 if (pc->cap_user_time_short) { in perf_mmap__read_self() 504 time_mask = READ_ONCE(pc->time_mask); in perf_mmap__read_self() 508 idx = READ_ONCE(pc->index); in perf_mmap__read_self() 509 cnt = READ_ONCE(pc->offset); in perf_mmap__read_self() 510 if (pc->cap_user_rdpmc && idx) { in perf_mmap__read_self() 512 u16 width = READ_ONCE(pc->pmc_width); in perf_mmap__read_self() [all …]
|
| A D | .gitignore | 2 libperf.pc
|
| /tools/testing/selftests/kvm/x86/ |
| A D | debug_regs.c | 113 run->debug.arch.pc == CAST_TO_RIP(sw_bp), in main() 116 run->debug.arch.pc, CAST_TO_RIP(sw_bp)); in main() 130 run->debug.arch.pc == CAST_TO_RIP(hw_bp) && in main() 135 run->debug.arch.pc, CAST_TO_RIP(hw_bp), in main() 153 run->debug.arch.pc == CAST_TO_RIP(write_data) && in main() 158 run->debug.arch.pc, CAST_TO_RIP(write_data), in main() 179 run->debug.arch.pc == target_rip && in main() 184 run->debug.arch.pc, target_rip, run->debug.arch.dr6, in main() 197 run->debug.arch.pc == CAST_TO_RIP(bd_start) && in main() 202 run->debug.arch.pc, target_rip, run->debug.arch.dr6, in main()
|
| /tools/testing/selftests/powerpc/security/ |
| A D | flush_utils.c | 56 unsigned long *pc = &UCONTEXT_NIA(ctx); in sigill_handler() local 59 if ((*((unsigned int *)*pc) & 0xfc1fffff) == 0x7c0303a6) { in sigill_handler() 62 *pc += 4; in sigill_handler() 64 printf("SIGILL at %p\n", pc); in sigill_handler()
|
| /tools/perf/tests/ |
| A D | mmap-basic.c | 249 struct perf_event_mmap_page *pc; in test_stat_user_read() local 290 pc = perf_evsel__mmap_base(evsel, 0, 0); in test_stat_user_read() 291 if (!pc) { in test_stat_user_read() 299 rdpmc_supported = pc->cap_user_rdpmc && pc->index; in test_stat_user_read() 303 if (rdpmc_supported && (!pc->cap_user_rdpmc || !pc->index)) { in test_stat_user_read() 305 pmu->name, pc->cap_user_rdpmc, pc->index); in test_stat_user_read() 310 if (!rdpmc_supported && pc->cap_user_rdpmc) { in test_stat_user_read() 312 pmu->name, pc->cap_user_rdpmc); in test_stat_user_read() 317 if (rdpmc_supported && pc->pmc_width < 32) { in test_stat_user_read() 319 pmu->name, pc->pmc_width); in test_stat_user_read()
|
| /tools/testing/selftests/powerpc/alignment/ |
| A 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/testing/selftests/kvm/arm64/ |
| A D | debug-exceptions.c | 349 sw_bp_addr = regs->pc; in guest_sw_bp_handler() 350 regs->pc += 4; in guest_sw_bp_handler() 355 hw_bp_addr = regs->pc; in guest_hw_bp_handler() 362 wp_addr = regs->pc; in guest_wp_handler() 369 ss_addr[ss_idx++] = regs->pc; in guest_ss_handler() 375 svc_addr = regs->pc; in guest_svc_handler() 471 uint64_t pc, cmd; in test_single_step_from_userspace() local 504 pc = vcpu_get_reg(vcpu, ARM64_CORE_REG(regs.pc)); in test_single_step_from_userspace() 507 pc, test_pc); in test_single_step_from_userspace() 523 (pc < (uint64_t)&iter_ss_end)) in test_single_step_from_userspace() [all …]
|
| /tools/perf/arch/arm/util/ |
| A D | auxtrace.c | 192 struct perf_event_mmap_page *pc = mm->userpg; in compat_auxtrace_mmap__read_head() local 198 : "r" (&pc->aux_head), "Qo" (pc->aux_head) in compat_auxtrace_mmap__read_head() 206 struct perf_event_mmap_page *pc = mm->userpg; in compat_auxtrace_mmap__write_tail() local 213 : "=Qo" (pc->aux_tail) in compat_auxtrace_mmap__write_tail() 214 : "r" (&pc->aux_tail), "r" (tail) in compat_auxtrace_mmap__write_tail()
|
| /tools/bpf/ |
| A D | bpf_jit_disasm.c | 57 int count, i, pc = 0; in get_asm_insns() local 91 printf("%4x:\t", pc); in get_asm_insns() 93 count = disassemble(pc, &info); in get_asm_insns() 98 printf("%02x ", (uint8_t) image[pc + i]); in get_asm_insns() 102 pc += count; in get_asm_insns() 103 } while(count > 0 && pc < len); in get_asm_insns()
|
| /tools/lib/perf/tests/ |
| A D | test-evsel.c | 132 struct perf_event_mmap_page *pc; in test_stat_user_read() local 156 pc = perf_evsel__mmap_base(evsel, 0, 0); in test_stat_user_read() 157 __T("failed to get mmapped address", pc); in test_stat_user_read() 160 __T("userspace counter access not supported", pc->cap_user_rdpmc); in test_stat_user_read() 161 __T("userspace counter access not enabled", pc->index); in test_stat_user_read() 162 __T("userspace counter width not set", pc->pmc_width >= 32); in test_stat_user_read()
|
| /tools/perf/tests/shell/ |
| A D | sched.sh | 35 taskset -pc 0 $PID1 38 taskset -pc 0 $PID2
|
| /tools/lib/thermal/ |
| A D | .gitignore | 2 libthermal.pc
|
| /tools/lib/bpf/ |
| A D | .gitignore | 2 libbpf.pc
|