summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2026-06-24 13:58:28 -0700
committerNamhyung Kim <namhyung@kernel.org>2026-06-30 17:04:50 -0700
commit445a625a66b15f7f8fbe70dea27269aa85c87bdf (patch)
treeb772cca29d89ae57640ce38595ad8f4c018fe4f7 /tools/perf/scripts
parent4933d4f45b5ce2a1d0d9c4ab703460997439d6a7 (diff)
perf timechart: Generate backtrace only if needed
The backtrace was used by sched-switch and sched-wakeup only. No need to call cat_backtrace() in the process_sample_event(). Let's pass NULL backtrace and generate it from the sched events. As it needs a pointer to the 'machine', let's save the session in the timechart struct and use the host machine of the session instead of passing the pointer to all handlers. It should be fine to assume the host machine as timechart command doesn't deal with guest machines and there's no way to get tracepoints from the guest events. Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions