/linux-6.3-rc2/arch/x86/kernel/kprobes/ |
A D | opt.c | 461 text_poke(slot, buf, len); in arch_prepare_optimized_kprobe() 523 text_poke(addr, new, INT3_INSN_SIZE); in arch_unoptimize_kprobe() 525 text_poke(addr + INT3_INSN_SIZE, in arch_unoptimize_kprobe()
|
A D | core.c | 702 text_poke(p->ainsn.insn, buf, len); in arch_copy_kprobe() 737 text_poke(p->addr, &int3, 1); in arch_arm_kprobe() 747 text_poke(p->addr, &p->opcode, 1); in arch_disarm_kprobe()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | record.h | 53 bool text_poke; member
|
A D | tool.h | 63 text_poke; member
|
A D | session.c | 516 if (tool->text_poke == NULL) in perf_tool__fill_defaults() 517 tool->text_poke = perf_event__process_text_poke; in perf_tool__fill_defaults() 697 event->text_poke.addr = bswap_64(event->text_poke.addr); in perf_event__text_poke_swap() 698 event->text_poke.old_len = bswap_16(event->text_poke.old_len); in perf_event__text_poke_swap() 699 event->text_poke.new_len = bswap_16(event->text_poke.new_len); in perf_event__text_poke_swap() 702 size_t len = sizeof(event->text_poke.old_len) + in perf_event__text_poke_swap() 703 sizeof(event->text_poke.new_len) + in perf_event__text_poke_swap() 704 event->text_poke.old_len + in perf_event__text_poke_swap() 705 event->text_poke.new_len; in perf_event__text_poke_swap() 706 void *data = &event->text_poke.old_len; in perf_event__text_poke_swap() [all …]
|
A D | perf_api_probe.c | 99 evsel->core.attr.text_poke = 1; in perf_probe_text_poke()
|
A D | machine.c | 961 struct map *map = maps__find(machine__kernel_maps(machine), event->text_poke.addr); in machine__process_text_poke() 967 if (!event->text_poke.new_len) in machine__process_text_poke() 976 u8 *new_bytes = event->text_poke.bytes + event->text_poke.old_len; in machine__process_text_poke() 985 event->text_poke.addr, in machine__process_text_poke() 987 event->text_poke.new_len); in machine__process_text_poke() 988 if (ret != event->text_poke.new_len) in machine__process_text_poke() 990 event->text_poke.addr); in machine__process_text_poke() 993 event->text_poke.addr); in machine__process_text_poke()
|
A D | perf_event_attr_fprintf.c | 138 PRINT_ATTRf(text_poke, p_unsigned); in perf_event_attr__fprintf()
|
A D | intel-pt.c | 3371 u64 addr = event->text_poke.addr + event->text_poke.new_len - 1; in intel_pt_text_poke() 3373 int cnt = 4096 + event->text_poke.new_len; in intel_pt_text_poke() 3380 if (!event->text_poke.new_len) in intel_pt_text_poke() 3385 if (addr < event->text_poke.addr) in intel_pt_text_poke() 3399 if (addr + e->byte_cnt + e->length <= event->text_poke.addr) { in intel_pt_text_poke()
|
A D | event.c | 480 struct perf_record_text_poke_event *tp = &event->text_poke; in perf_event__fprintf_text_poke()
|
A D | evsel.c | 1293 if (!opts->text_poke) in evsel__config()
|
/linux-6.3-rc2/arch/x86/kernel/ |
A D | alternative.c | 1087 text_poke(ptr, ((unsigned char []){0xf0}), 1); in alternatives_smp_lock() 1103 text_poke(ptr, ((unsigned char []){0x3E}), 1); in alternatives_smp_unlock() 1665 void *text_poke(void *addr, const void *opcode, size_t len) in text_poke() function 1967 text_poke(text_poke_addr(&tp[i]), &int3, INT3_INSN_SIZE); in text_poke_bp_batch() 1992 text_poke(text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch() 2048 text_poke(text_poke_addr(&tp[i]), &byte, INT3_INSN_SIZE); in text_poke_bp_batch()
|
A D | module.c | 237 write = text_poke; in write_relocate_add()
|
/linux-6.3-rc2/arch/x86/include/asm/ |
A D | text-patching.h | 44 extern void *text_poke(void *addr, const void *opcode, size_t len);
|
/linux-6.3-rc2/arch/um/kernel/ |
A D | um_arch.c | 456 void *text_poke(void *addr, const void *opcode, size_t len) in text_poke() function
|
/linux-6.3-rc2/tools/lib/perf/include/perf/ |
A D | event.h | 480 struct perf_record_text_poke_event text_poke; member
|
/linux-6.3-rc2/tools/perf/Documentation/ |
A D | perf-inject.txt | 104 and text_poke events are inserted, as well as build ID information.
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | perf_event.h | 454 text_poke : 1, /* include text poke events */ member
|
/linux-6.3-rc2/tools/include/uapi/linux/ |
A D | perf_event.h | 454 text_poke : 1, /* include text poke events */ member
|
/linux-6.3-rc2/tools/perf/ |
A D | builtin-inject.c | 1227 gs->tool.text_poke = guest_session__repipe; in guest_session__start() 2041 inject->tool.text_poke = host__repipe; in __cmd_inject() 2165 .text_poke = perf_event__repipe, in cmd_inject()
|
A D | builtin-record.c | 889 if (evsel->core.attr.text_poke) in record__config_text_poke() 897 evsel->core.attr.text_poke = 1; in record__config_text_poke() 4031 rec->opts.text_poke = true; in cmd_record() 4216 if (rec->opts.text_poke) { in cmd_record()
|
A D | builtin-script.c | 2829 script->tool.text_poke = process_text_poke_events; in __cmd_script()
|
/linux-6.3-rc2/tools/perf/arch/x86/util/ |
A D | intel-pt.c | 848 opts->text_poke = true; in intel_pt_recording_options()
|
/linux-6.3-rc2/kernel/events/ |
A D | core.c | 4964 attr->context_switch || attr->text_poke || in is_sb_event() 5033 if (event->attr.text_poke) in unaccount_event() 9283 return event->attr.text_poke; in perf_event_text_poke_match() 11744 if (event->attr.text_poke) in account_event()
|