diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:20:06 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:30 +0200 |
| commit | d5934ca319a08e41498e47210285b73970cf074a (patch) | |
| tree | d11cf62679f6281066978a05157ec44d4c2d1182 /tools/perf/scripts/python | |
| parent | 279b402e5143214c077f1a95132134c27d907e4c (diff) | |
| download | linux-next-d5934ca319a08e41498e47210285b73970cf074a.tar.gz linux-next-d5934ca319a08e41498e47210285b73970cf074a.zip | |
perf python: Port powerpc-hcalls to perf module
Port powerpc-hcalls.py from tools/perf/scripts/python/ to a standalone
script in tools/perf/python/:
- Refactor the script into an HCallAnalyzer class with full type
annotations to encapsulate per-CPU hypervisor call entry/exit state.
- Use perf.session for event processing to track hypervisor call entry
and exit timestamps and aggregate min/max/average duration statistics
against HCALL_TABLE.
- Add argparse CLI support (-i/--input) and remove Python 2
compatibility code.
Add a shell test (test_powerpc_hcalls_python.sh) to verify the
standalone script.
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
