aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2022-02-11 11:49:48 -0800
committerAlexei Starovoitov <[email protected]>2022-02-11 13:21:47 -0800
commit3bd916ee0ecbbdd902fc24845f2fef332b2a310c (patch)
treeda6ca95ebff9eb46e37000d5d8aded9c722bf6f2 /tools/perf/scripts/python
parentacc3c47394a1790b4023ca316ac46e798338dd1a (diff)
bpf: Emit bpf_timer in vmlinux BTF
Currently the following code in check_and_init_map_value() *(struct bpf_timer *)(dst + map->timer_off) = (struct bpf_timer){}; can help generate bpf_timer definition in vmlinuxBTF. But the code above may not zero the whole structure due to anonymour members and that code will be replaced by memset in the subsequent patch and bpf_timer definition will disappear from vmlinuxBTF. Let us emit the type explicitly so bpf program can continue to use it from vmlinux.h. Signed-off-by: Yonghong Song <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions