diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2020-03-27 18:58:56 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-03-28 05:40:39 +0300 |
commit | 23599ada0e9173e92d3cc26254b1e18e542c469d (patch) | |
tree | 32f01659caf64cb51f6e92cb178eb2dde502a906 /tools/perf/scripts/python/stackcollapse.py | |
parent | 834ebca8456c5f7a03d3351227b7c59318ccab62 (diff) | |
download | linux-23599ada0e9173e92d3cc26254b1e18e542c469d.tar.xz |
bpf: Add selftest cases for ctx_or_null argument type
Add various tests to make sure the verifier keeps catching them:
# ./test_verifier
[...]
#230/p pass ctx or null check, 1: ctx OK
#231/p pass ctx or null check, 2: null OK
#232/p pass ctx or null check, 3: 1 OK
#233/p pass ctx or null check, 4: ctx - const OK
#234/p pass ctx or null check, 5: null (connect) OK
#235/p pass ctx or null check, 6: null (bind) OK
#236/p pass ctx or null check, 7: ctx (bind) OK
#237/p pass ctx or null check, 8: null (bind) OK
[...]
Summary: 1595 PASSED, 0 SKIPPED, 0 FAILED
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/c74758d07b1b678036465ef7f068a49e9efd3548.1585323121.git.daniel@iogearbox.net
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions