summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2022-03-09 12:04:56 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2022-03-11 00:57:05 +0300
commit539de9328e3ab444efe51ddc7416ce2a3f0f23b2 (patch)
treef072bd14ec814bc1f408d924b7c138a753c215be /tools/perf/scripts/python/syscall-counts.py
parent3b5d4ddf8fe1f60082513f94bae586ac80188a03 (diff)
downloadlinux-539de9328e3ab444efe51ddc7416ce2a3f0f23b2.tar.xz
bpf: Simplify insn rewrite on BPF_READ __sk_buff->tstamp
The skb->tc_at_ingress and skb->mono_delivery_time are at the same byte offset. Thus, only one BPF_LDX_MEM(BPF_B) is needed and both bits can be tested together. /* BPF_READ: a = __sk_buff->tstamp */ if (skb->tc_at_ingress && skb->mono_delivery_time) a = 0; else a = skb->tstamp; Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220309090456.3711530-1-kafai@fb.com
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions