diff options
| author | Ian Rogers <[email protected]> | 2025-05-19 19:51:39 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2025-05-21 18:07:13 +0000 |
| commit | 3ee2255c4fc2b7d424d5f5c744364189b659f123 (patch) | |
| tree | 0d633ea28360a63d778d17c5fb1e51f503eb5c92 /tools/perf/python/counting.py | |
| parent | libperf threadmap: Don't segv for index 0 for the NULL 'struct perf_thread_ma... (diff) | |
| download | kernel-3ee2255c4fc2b7d424d5f5c744364189b659f123.tar.gz kernel-3ee2255c4fc2b7d424d5f5c744364189b659f123.zip | |
libperf threadmap: Add perf_thread_map__idx()
Allow computation of thread map index from a PID.
Note, with a 'struct perf_cpu_map' the sorted nature allows for a binary
search to compute the index which isn't currently possible with a
'struct perf_thread_map' as they aren't guaranteed sorted.
Signed-off-by: Ian Rogers <[email protected]>
Acked-by: Gautam Menghani <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Howard Chu <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Madhavan Srinivasan <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/python/counting.py')
0 files changed, 0 insertions, 0 deletions
