Re: [PATCH V6 00/15] perf/x86: Add perf text poke events

From: Adrian Hunter
Date: Mon Apr 20 2020 - 02:22:44 EST


On 5/04/20 11:13 pm, Adrian Hunter wrote:
> Hi
>
> Here are patches to add a text poke event to record changes to kernel text
> (i.e. self-modifying code) in order to support tracers like Intel PT
> decoding through jump labels, kprobes and ftrace trampolines.
>
> The first 8 patches make the kernel changes and the subsequent patches are
> tools changes.
>
> The next 4 patches add support for updating perf tools' data cache
> with the changed bytes.
>
> The next patch is an Intel PT specific tools change.
>
> The final 2 patches add perf script --show-text-poke-events option
>
> Patches also here:
>
> git://git.infradead.org/users/ahunter/linux-perf.git text_poke
>
> Changes in V6
>
> perf: Add perf text poke event
>
> Adjustments due to re-base on top of cgroup event patches
>
> perf/x86: Add perf text poke events for kprobes
>
> Expand commit message
> Add Masami's Ack
>
> perf tools: Add support for PERF_RECORD_TEXT_POKE
>
> Adjustments due to re-base on top of cgroup event patches
> Improvements to perf_event__fprintf_text_poke()
>
> perf script: Add option --show-text-poke-events
> perf script: Show text poke address symbol
>
> New patches
>

Any comments?