aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2024-04-04 10:57:10 -0700
committerArnaldo Carvalho de Melo <[email protected]>2024-04-08 17:43:20 -0300
commit6f157d9af1e42aafa469deb7c16203e39a2f9545 (patch)
tree034db9219b1dda82a3b8c5cac2d7a59ce52c966b /tools/perf/scripts/python/bin
parentbfd98ceb6267712ae298f10144ba0576cc03c70f (diff)
perf annotate: Introduce annotated_source__get_line()
It's a helper function to get annotation_line at the given offset without using the offsets array. The goal is to get rid of the offsets array altogether. It just does the linear search but I think it's better to save memory as it won't be called in a hot path. Signed-off-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[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/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions