aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2023-11-01 20:37:54 -0700
committerAlexei Starovoitov <[email protected]>2023-11-09 18:58:39 -0800
commitc31534267c180f7ed00288d239a501b554885300 (patch)
treea3ff31f785879c916863516a1f7aac825c2b9af3 /tools/perf/scripts/python/sched-migration.py
parentc2a3ab094683ddc154879a1364fc7cb0228f96a6 (diff)
bpf: generalize is_branch_taken() to work with two registers
While still assuming that second register is a constant, generalize is_branch_taken-related code to accept two registers instead of register plus explicit constant value. This also, as a side effect, allows to simplify check_cond_jmp_op() by unifying BPF_K case with BPF_X case, for which we use a fake register to represent BPF_K's imm constant as a register. 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/sched-migration.py')
0 files changed, 0 insertions, 0 deletions