diff options
| author | Toke Høiland-Jørgensen <toke@redhat.com> | 2021-04-13 12:16:07 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2021-04-14 04:18:57 +0300 |
| commit | 463c2149ede72b696c42b0d6c5a03c061600d04c (patch) | |
| tree | d42fb7d4a35e1b07541f349815cae123130c7df8 /tools/perf/scripts/python/stat-cpi.py | |
| parent | 441e8c66b23e027c00ccebd70df9fd933918eefe (diff) | |
| download | linux-463c2149ede72b696c42b0d6c5a03c061600d04c.tar.xz | |
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/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
