aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2023-08-21 10:40:09 -0300
committerArnaldo Carvalho de Melo <[email protected]>2023-08-21 10:49:31 -0300
commit7d9642311b6d9d319a6948581244561d2a0890a1 (patch)
tree09e7bbf99f86f01ec312a9defa668c8148ba0f99 /tools/perf/scripts/python/bin
parent262b54b6c9396823ab06df46a1be475c44b28b5f (diff)
perf bpf augmented_raw_syscalls: Add an assert to make sure sizeof(augmented_arg->value) is a power of two.
Similar to what was done in the previous cset for sizeof(saddr), we need to make sure sizeof(augmented_arg->value) is a power of two to do bounds checking using &=: augmented_len &= sizeof(augmented_arg->value) - 1; 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