aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2023-07-19 16:08:55 +0200
committerAlexei Starovoitov <[email protected]>2023-07-19 10:07:28 -0700
commit4e9c2d9af5612a6992260b3c7d3047c40265861e (patch)
tree8114f060617832ef932dbaccf3bdbb265e3cd37a /tools/perf/scripts/python/task-analyzer.py
parent55cc3768473e139483be8f17796b50d21788953f (diff)
libbpf: Add helper macro to clear opts structs
Add a small and generic LIBBPF_OPTS_RESET() helper macros which clears an opts structure and reinitializes its .sz member to place the structure size. Additionally, the user can pass option-specific data to reinitialize via varargs. I found this very useful when developing selftests, but it is also generic enough as a macro next to the existing LIBBPF_OPTS() which hides the .sz initialization, too. Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions