aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-02-29 21:36:41 -0800
committerNamhyung Kim <[email protected]>2024-03-03 22:51:31 -0800
commit45ac4960d7fead9041fbfa15177fdd20b6af10f7 (patch)
tree2c39e11d6214239c7c35d77f5f1ca02d0fdbb2f9 /tools/perf/util/trace-event-scripting.c
parentf178ffdf7ee5bf809837161002719e19eebff895 (diff)
perf machine: Move fprintf to for_each loop and a callback
Avoid exposing the threads data structure by switching to the callback machine__for_each_thread approach. machine__fprintf is only used in tests and verbose >3 output so don't turn to list and sort. Add machine__threads_nr to be refactored later. Note, all existing *_fprintf routines ignore fprintf errors. Signed-off-by: Ian Rogers <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: Yang Jihong <[email protected]> Cc: Oliver Upton <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions