aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorPing-Ke Shih <[email protected]>2023-10-11 14:37:25 +0800
committerKalle Valo <[email protected]>2023-10-12 15:16:36 +0300
commit618071ae0f7e8c1aeb9b1b1e9ee876bcc3f045fc (patch)
tree9215cdd68700f9097e52cd8229e215ba2d1c5a7e /tools/perf/scripts/python/syscall-counts.py
parent07202dc12b5373a9488a81a1a256582eec701aaf (diff)
wifi: rtw89: coex: add annotation __counted_by() to struct rtw89_btc_btf_set_mon_reg
Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family functions). Use struct_size() and flex_array_size() helpers to calculate proper sizes for allocation and memcpy(). Don't change logic at all, and result is identical as before. Cc: Kees Cook <[email protected]> Signed-off-by: Ping-Ke Shih <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions