diff options
author | 2020-09-29 14:45:56 +0200 | |
---|---|---|
committer | 2020-09-29 13:09:24 -0700 | |
commit | 17d3f386757609223aa02342d29526daa67efafc (patch) | |
tree | 4eba22b7e92439c1832a044eeeddd4e8fc8a0c7f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests: Add test for multiple attachments of freplace program (diff) | |
download | wireguard-linux-17d3f386757609223aa02342d29526daa67efafc.tar.xz wireguard-linux-17d3f386757609223aa02342d29526daa67efafc.zip |
selftests/bpf: Adding test for arg dereference in extension trace
Adding test that setup following program:
SEC("classifier/test_pkt_md_access")
int test_pkt_md_access(struct __sk_buff *skb)
with its extension:
SEC("freplace/test_pkt_md_access")
int test_pkt_md_access_new(struct __sk_buff *skb)
and tracing that extension with:
SEC("fentry/test_pkt_md_access_new")
int BPF_PROG(fentry, struct sk_buff *skb)
The test verifies that the tracing program can
dereference skb argument properly.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/160138355603.48470.9072073357530773228.stgit@toke.dk
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions