summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2025-11-25 11:07:47 +0300
committerNamhyung Kim <namhyung@kernel.org>2025-12-03 03:06:57 +0300
commitc9cd0c7e529e80e9be79867d2ebb874f67dbc35e (patch)
treec1834efa2a497cf58f5618aec58bd7bef6a4d188 /tools/lib/python
parent25d498e636d1f8d138d65246cfb5b1fc3069ca56 (diff)
downloadlinux-c9cd0c7e529e80e9be79867d2ebb874f67dbc35e.tar.xz
perf test: Add python JIT dump test
Add a test case for the python interpreter like below so that we can make sure it won't break again. To validate the effect of build-ID generation, it adds and removes the JIT'ed DSOs to/from the build-ID cache for the test. $ perf test -vv jitdump 84: python profiling with jitdump: --- start --- test child forked, pid 214316 Run python with -Xperf_jit [ perf record: Woken up 5 times to write data ] [ perf record: Captured and wrote 1.180 MB /tmp/__perf_test.perf.data.XbqZNm (140 samples) ] Generate JIT-ed DSOs using perf inject Add JIT-ed DSOs to the build-ID cache Check the symbol containing the script name Found 108 matching lines Remove JIT-ed DSOs from the build-ID cache ---- end(0) ---- 84: python profiling with jitdump : Ok Cc: Pablo Galindo <pablogsal@gmail.com> Link: https://docs.python.org/3/howto/perf_profiling.html#how-to-work-without-frame-pointers Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions