diff options
| author | Yuntao Wang <[email protected]> | 2022-04-08 12:14:52 +0800 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-04-08 22:38:17 +0200 |
| commit | 658d87687cd5a6c8762d1de8abee1e6792d8d71e (patch) | |
| tree | f8e4b4ae42548cec1a14f8c8efd30046203a84c2 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 8555defe48610a7efe9f2d72689e2d4f006898d7 (diff) | |
selftests/bpf: Fix return value checks in perf_event_stackmap test
The bpf_get_stackid() function may also return 0 on success as per UAPI BPF
helper documentation. Therefore, correct checks from 'val > 0' to 'val >= 0'
to ensure that they cover all possible success return values.
Signed-off-by: Yuntao Wang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions