aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2018-12-06 19:18:16 +0000
committerArnaldo Carvalho de Melo <[email protected]>2019-01-25 14:12:10 +0000
commitca2270292e6c3415102242bf9dc3d05f622b7b28 (patch)
tree716a1cf2f73101e4d02569585fd26cb320f9a703 /tools/perf/builtin-annotate.c
parentperf callchain: Use cached rbtrees (diff)
downloadkernel-ca2270292e6c3415102242bf9dc3d05f622b7b28.tar.gz
kernel-ca2270292e6c3415102242bf9dc3d05f622b7b28.zip
perf util: Use cached rbtree for rblists
At the cost of an extra pointer, we can avoid the O(logN) cost of finding the first element in the tree (smallest node), which is something required for any of the strlist or intlist traversals (XXX_for_each_entry()). There are a number of users in perf of these (particularly strlists), including probes, and buildid. Signed-off-by: Davidlohr Bueso <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions