aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorSebastian Sanchez <[email protected]>2017-05-26 05:35:12 -0700
committerDoug Ledford <[email protected]>2017-06-27 16:56:33 -0400
commit7be85676f1d13c77a7e0c72e04903bfd39580d4f (patch)
tree4c3abce16a023ce29ad3a0a297d94ccb3decab3a /tools/perf/scripts/python/event_analyzing_sample.py
parent14fe13fcd3afb96b06809f280b586be1c998332c (diff)
IB/hfi1: Don't remove RB entry when not needed.
An RB tree is used for the SDMA pinning cache. Cache entries are extracted and reinserted from the tree in case the address range for it changes. However, if the address range for the entry doesn't change, deleting the entry from the RB tree is not necessary. This affects performance since the tree needs to be rebalanced for each insertion, and this happens in the hot path. Optimize RB search by not removing entries when it's not needed. Reviewed-by: Mike Marciniszyn <[email protected]> Reviewed-by: Mitko Haralanov <[email protected]> Signed-off-by: Sebastian Sanchez <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions