summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2024-01-27 09:09:50 +0300
committerKees Cook <keescook@chromium.org>2024-03-01 00:38:01 +0300
commit08d45ee84bb2650e237e150caca87cc4ded9b3e2 (patch)
tree0f0474672597c717e276bcd41242f7d50535aa9c /tools/perf/scripts/python/syscall-counts.py
parentd70de8054c58d7bd9a4654c9f4797d29fa46d545 (diff)
downloadlinux-08d45ee84bb2650e237e150caca87cc4ded9b3e2.tar.xz
overflow: Introduce wrapping_assign_add() and wrapping_assign_sub()
This allows replacements of the idioms "var += offset" and "var -= offset" with the wrapping_assign_add() and wrapping_assign_sub() helpers respectively. They will avoid wrap-around sanitizer instrumentation. Add to the selftests to validate behavior and lack of side-effects. Reviewed-by: Marco Elver <elver@google.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions