diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2023-08-21 10:40:09 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-08-21 10:48:58 -0300 |
| commit | 262b54b6c9396823ab06df46a1be475c44b28b5f (patch) | |
| tree | 40fe2b2dba872825d41b9cefa7892eb88f66783d /tools/perf/scripts/python/bin | |
| parent | a50b8db3ea358b01f3c83e1e1c063e75352dcb3b (diff) | |
perf bpf augmented_raw_syscalls: Add an assert to make sure sizeof(saddr) is a power of two.
We're using the BPF verifier suggestion:
22: (85) call bpf_probe_read#4
R2 min value is negative, either use unsigned or 'var &= const'
That works only when const is a (power of two - 1) so add an assert to
make sure that that is the case.
Suggested-by: Ian Rogers <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions