aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <[email protected]>2021-10-15 13:42:40 -0400
committerSteven Rostedt (VMware) <[email protected]>2021-10-19 20:33:20 -0400
commit9b84fadc444de5456ab5f5487e2108311c724c3f (patch)
tree0bbafa429f2728795926fbe1b152ea2415a339f0 /tools/perf/scripts/python
parent7ce1bb83a14019f8c396d57ec704d19478747716 (diff)
tracing: Reuse logic from perf's get_recursion_context()
Instead of having branches that adds noise to the branch prediction, use the addition logic to set the bit for the level of interrupt context that the state is currently in. This copies the logic from perf's get_recursion_context() function. Link: https://lore.kernel.org/all/[email protected]/ Suggested-by: Peter Zijlstra <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions