diff options
author | 2021-04-13 11:16:07 +0200 | |
---|---|---|
committer | 2021-04-13 18:18:57 -0700 | |
commit | 463c2149ede72b696c42b0d6c5a03c061600d04c (patch) | |
tree | d42fb7d4a35e1b07541f349815cae123130c7df8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Return target info when a tracing bpf_link is queried (diff) | |
download | wireguard-linux-463c2149ede72b696c42b0d6c5a03c061600d04c.tar.xz wireguard-linux-463c2149ede72b696c42b0d6c5a03c061600d04c.zip |
selftests/bpf: Add tests for target information in bpf_link info queries
Extend the fexit_bpf2bpf test to check that the info for the bpf_link
returned by the kernel matches the expected values.
While we're updating the test, change existing uses of CHEC() to use the
much easier to read ASSERT_*() macros.
v2:
- Convert last CHECK() call and get rid of 'duration' var
- Split ASSERT_OK_PTR() checks to two separate if statements
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210413091607.58945-2-toke@redhat.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions