Home
last modified time | relevance | path

Searched refs:text_poke (Results 1 – 25 of 25) sorted by relevance

/linux/arch/x86/kernel/kprobes/
H A Dopt.c453 text_poke(slot, buf, len); in arch_prepare_optimized_kprobe()
515 text_poke(addr, new, INT3_INSN_SIZE); in arch_unoptimize_kprobe()
517 text_poke(addr + INT3_INSN_SIZE, in arch_unoptimize_kprobe()
H A Dcore.c757 text_poke(p->ainsn.insn, buf, len); in arch_copy_kprobe()
792 text_poke(p->addr, &int3, 1); in arch_arm_kprobe()
802 text_poke(p->addr, &p->opcode, 1); in arch_disarm_kprobe()
/linux/tools/perf/util/
H A Drecord.h54 bool text_poke; member
H A Dtool.h63 text_poke; member
H A Dsession.c397 event->text_poke.addr = bswap_64(event->text_poke.addr); in perf_event__text_poke_swap()
398 event->text_poke.old_len = bswap_16(event->text_poke.old_len); in perf_event__text_poke_swap()
399 event->text_poke.new_len = bswap_16(event->text_poke.new_len); in perf_event__text_poke_swap()
402 size_t len = sizeof(event->text_poke.old_len) + in perf_event__text_poke_swap()
403 sizeof(event->text_poke.new_len) + in perf_event__text_poke_swap()
404 event->text_poke.old_len + in perf_event__text_poke_swap()
405 event->text_poke.new_len; in perf_event__text_poke_swap()
406 void *data = &event->text_poke.old_len; in perf_event__text_poke_swap()
1353 return tool->text_poke(tool, event, sample, machine); in machines__deliver_event()
H A Dperf_api_probe.c99 evsel->core.attr.text_poke = 1; in perf_probe_text_poke()
H A Dmachine.c830 struct map *map = maps__find(machine__kernel_maps(machine), event->text_poke.addr); in machine__process_text_poke()
837 if (!event->text_poke.new_len) in machine__process_text_poke()
846 u8 *new_bytes = event->text_poke.bytes + event->text_poke.old_len; in machine__process_text_poke()
855 event->text_poke.addr, in machine__process_text_poke()
857 event->text_poke.new_len); in machine__process_text_poke()
858 if (ret != event->text_poke.new_len) in machine__process_text_poke()
860 event->text_poke.addr); in machine__process_text_poke()
863 event->text_poke.addr); in machine__process_text_poke()
H A Dtool.c277 tool->text_poke = perf_event__process_text_poke; in perf_tool__init()
H A Dperf_event_attr_fprintf.c341 PRINT_ATTRf(text_poke, p_unsigned); in perf_event_attr__fprintf()
H A Dintel-pt.c3647 u64 addr = event->text_poke.addr + event->text_poke.new_len - 1; in intel_pt_text_poke()
3649 int cnt = 4096 + event->text_poke.new_len; in intel_pt_text_poke()
3658 if (!event->text_poke.new_len) in intel_pt_text_poke()
3665 if (addr < event->text_poke.addr) in intel_pt_text_poke()
3680 if (addr + e->byte_cnt + e->length <= event->text_poke.addr) { in intel_pt_text_poke()
H A Devent.c545 struct perf_record_text_poke_event *tp = &event->text_poke; in perf_event__fprintf_text_poke()
H A Devsel.c1520 if (!opts->text_poke) in evsel__config()
/linux/arch/um/kernel/
H A Dum_arch.c458 void *text_poke(void *addr, const void *opcode, size_t len) in text_poke() function
472 return text_poke(addr, opcode, len); in text_poke_copy()
/linux/arch/x86/include/asm/
H A Dtext-patching.h34 extern void *text_poke(void *addr, const void *opcode, size_t len);
/linux/arch/x86/kernel/
H A Dalternative.c2096 text_poke(ptr, ((unsigned char []){0xf0}), 1); in alternatives_smp_lock()
2112 text_poke(ptr, ((unsigned char []){0x3E}), 1); in alternatives_smp_unlock()
2608 void *text_poke(void *addr, const void *opcode, size_t len) in text_poke() function
2920 text_poke(text_poke_addr(&text_poke_array.vec[i]), &int3, INT3_INSN_SIZE); in smp_text_poke_batch_finish()
2945 text_poke(text_poke_addr(&text_poke_array.vec[i]) + INT3_INSN_SIZE, in smp_text_poke_batch_finish()
3001 text_poke(text_poke_addr(&text_poke_array.vec[i]), &byte, INT3_INSN_SIZE); in smp_text_poke_batch_finish()
H A Dmodule.c201 write = text_poke; in write_relocate_add()
/linux/tools/perf/Documentation/
H A Dperf-inject.txt104 and text_poke events are inserted, as well as build ID information.
/linux/tools/lib/perf/include/perf/
H A Devent.h528 struct perf_record_text_poke_event text_poke; member
/linux/tools/include/uapi/linux/
H A Dperf_event.h461 text_poke : 1, /* include text poke events */ member
/linux/include/uapi/linux/
H A Dperf_event.h461 text_poke : 1, /* include text poke events */ member
/linux/tools/perf/
H A Dbuiltin-inject.c1433 gs->tool.text_poke = guest_session__repipe; in guest_session__start()
2257 inject->tool.text_poke = host__repipe; in __cmd_inject()
2520 inject.tool.text_poke = perf_event__repipe; in cmd_inject()
H A Dbuiltin-record.c932 if (evsel->core.attr.text_poke) in record__config_text_poke()
940 evsel->core.attr.text_poke = 1; in record__config_text_poke()
4147 rec->opts.text_poke = true; in cmd_record()
4330 if (rec->opts.text_poke) { in cmd_record()
H A Dbuiltin-script.c2923 script->tool.text_poke = process_text_poke_events; in __cmd_script()
/linux/tools/perf/arch/x86/util/
H A Dintel-pt.c839 opts->text_poke = true; in intel_pt_recording_options()
/linux/kernel/events/
H A Dcore.c5196 attr->context_switch || attr->text_poke || in is_sb_event()
5485 if (event->attr.text_poke) in unaccount_event()
10022 return event->attr.text_poke; in perf_event_text_poke_match()
12815 if (event->attr.text_poke) in account_event()