diff options
author | Ruan Jinjie <ruanjinjie@huawei.com> | 2023-07-25 19:54:24 +0000 |
---|---|---|
committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2023-08-23 09:38:17 +0900 |
commit | 8865aea0471c512c2d94220c60a0083cefcb9348 (patch) | |
tree | 86c315d91079f1adce6d931dab76d3b870764d2e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2ccdd1b13c591d306f0401d98dedc4bdcd02b421 (diff) |
kernel: kprobes: Use struct_size()
Use struct_size() instead of hand-writing it, when allocating a structure
with a flex array.
This is less verbose.
Link: https://lore.kernel.org/all/20230725195424.3469242-1-ruanjinjie@huawei.com/
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions