diff options
author | Jiri Olsa <jolsa@kernel.org> | 2020-09-29 14:45:56 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-09-29 13:09:24 -0700 |
commit | 17d3f386757609223aa02342d29526daa67efafc (patch) | |
tree | 4eba22b7e92439c1832a044eeeddd4e8fc8a0c7f /tools/build | |
parent | f6429476c2012afade24741cc08890371d2842b4 (diff) |
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/build')
0 files changed, 0 insertions, 0 deletions