aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <[email protected]>2020-08-18 15:57:52 +0200
committerIngo Molnar <[email protected]>2020-09-01 09:58:06 +0200
commitd25e37d89dd2f41d7acae0429039d2f0ae8b4a07 (patch)
tree16e6d52b374b3907e51dd3a96b30f3c427f9a55f /tools/perf/scripts/python/exported-sql-viewer.py
parenta945c8345ec0decb2f1a7f19a8c5e60bcb1dd1eb (diff)
tracepoint: Optimize using static_call()
Currently the tracepoint site will iterate a vector and issue indirect calls to however many handlers are registered (ie. the vector is long). Using static_call() it is possible to optimize this for the common case of only having a single handler registered. In this case the static_call() can directly call this handler. Otherwise, if the vector is longer than 1, call a function that iterates the whole vector like the current code. [peterz: updated to new interface] Signed-off-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions