diff options
author | 2022-03-09 01:05:02 -0800 | |
---|---|---|
committer | 2022-03-10 22:57:05 +0100 | |
commit | 9d90db97e4d4537c82a5ee476b1c13553e487f28 (patch) | |
tree | 5272251f183d4a30a00f500ae407adce4319384e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Simplify insn rewrite on BPF_READ __sk_buff->tstamp (diff) | |
download | linux-dev-9d90db97e4d4537c82a5ee476b1c13553e487f28.tar.xz linux-dev-9d90db97e4d4537c82a5ee476b1c13553e487f28.zip |
bpf: Simplify insn rewrite on BPF_WRITE __sk_buff->tstamp
BPF_JMP32_IMM(BPF_JSET) is used to save a BPF_ALU32_IMM(BPF_AND).
The skb->tc_at_ingress and skb->mono_delivery_time are at the same
offset, so only one BPF_LDX_MEM(BPF_B) is needed.
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220309090502.3711982-1-kafai@fb.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions