aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2021-05-28 13:03:30 +0000
committerDaniel Borkmann <[email protected]>2021-06-14 23:06:00 +0200
commitd203b0fd863a2261e5d00b97f3d060c4c2a6db71 (patch)
tree79a6b6d2c2871044f0966d39cc875c76441f3b37 /tools/perf/scripts/python/event_analyzing_sample.py
parent11fc79fc9f2e395aa39fa5baccae62767c5d8280 (diff)
bpf: Inherit expanded/patched seen count from old aux data
Instead of relying on current env->pass_cnt, use the seen count from the old aux data in adjust_insn_aux_data(), and expand it to the new range of patched instructions. This change is valid given we always expand 1:n with n>=1, so what applies to the old/original instruction needs to apply for the replacement as well. Not relying on env->pass_cnt is a prerequisite for a later change where we want to avoid marking an instruction seen when verified under speculative execution path. Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: John Fastabend <[email protected]> Reviewed-by: Benedict Schlueter <[email protected]> Reviewed-by: Piotr Krysiuk <[email protected]> Acked-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions