Re: [PATCH 00/10] perf scripting python: Improve general scripting for Intel PT

From: Arnaldo Carvalho de Melo
Date: Tue May 25 2021 - 08:58:59 EST


Em Tue, May 25, 2021 at 12:51:02PM +0300, Adrian Hunter escreveu:
> Hi
>
> These patches make it easier to customize scripting for Intel PT traces.
>
> The first patch is a dependent fix.
>
> Subsequent patches add more information to python scripting.
>
> The final patch adds a branch trace to the intel-pt-events.py script
> which previously supported only power events and ptwrite.

Thanks, applied.

- Arnaldo


>
> Adrian Hunter (10):
> perf scripting python: Fix tuple_set_u64()
> perf scripting python: Factor out set_sym_in_dict()
> perf scripting python: Add 'addr_location' for 'addr'
> perf script: Factor out perf_sample__sprintf_flags()
> perf scripting python: Add sample flags
> perf scripting python: Add IPC
> perf scripting python: Add cpumode
> perf scripting python: Add context switch
> perf scripting python: Add auxtrace error
> perf scripts python: intel-pt-events.py: Add branches to script
>
> tools/perf/builtin-script.c | 56 +++-
> .../perf/scripts/python/bin/intel-pt-events-record | 4 +-
> .../perf/scripts/python/bin/intel-pt-events-report | 4 +-
> tools/perf/scripts/python/intel-pt-events.py | 143 +++++++--
> tools/perf/util/db-export.c | 12 +-
> tools/perf/util/db-export.h | 2 +-
> .../perf/util/scripting-engines/trace-event-perl.c | 3 +-
> .../util/scripting-engines/trace-event-python.c | 321 +++++++++++++++------
> tools/perf/util/trace-event-scripting.c | 3 +-
> tools/perf/util/trace-event.h | 8 +-
> 10 files changed, 415 insertions(+), 141 deletions(-)
>
>
> Regards
> Adrian

--

- Arnaldo