aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJesus Sanchez-Palencia <[email protected]>2018-11-14 17:26:33 -0800
committerDavid S. Miller <[email protected]>2018-11-16 20:39:34 -0800
commit09fd4860ea258d9666f852c213875e6bcdb1204e (patch)
tree6d76770738c3a02fbb7b9e4e1716887348abf383 /tools/perf/scripts/python/stackcollapse.py
parent3fcbdaee3b5c4a7f8ea4c7c11fecc009d2a1e7e4 (diff)
etf: Use cached rb_root
ETF's peek() operation is heavily used so use an rb_root_cached instead and leverage rb_first_cached() which will run in O(1) instead of O(log n). Even if on 'timesortedlist_clear()' we could be using rb_erase(), we choose to use rb_erase_cached(), because if in the future we allow runtime changes to ETF parameters, and need to do a '_clear()', this might cause some hard to debug issues. Signed-off-by: Jesus Sanchez-Palencia <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions