aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2023-11-11 17:05:58 -0800
committerAlexei Starovoitov <[email protected]>2023-11-15 12:03:41 -0800
commit96381879a370425a30b810906946f64c0726450e (patch)
tree39e967f766aef108d7709c951218a98a7bd5dbbb /tools/perf/scripts/python/check-perf-trace.py
parent67420501e8681ae18f9f0ea0a69cd2f432100e70 (diff)
bpf: generalize is_scalar_branch_taken() logic
Generalize is_branch_taken logic for SCALAR_VALUE register to handle cases when both registers are not constants. Previously supported <range> vs <scalar> cases are a natural subset of more generic <range> vs <range> set of cases. Generalized logic relies on straightforward segment intersection checks. Acked-by: Eduard Zingerman <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Shung-Hsi Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions