aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorDelyan Kratunov <[email protected]>2022-02-23 22:01:58 +0000
committerAndrii Nakryiko <[email protected]>2022-02-23 17:33:16 -0800
commit08d4dba6ae77aaec0e0c79dcfcb0613cb7426b2c (patch)
treef5501de2aed87ef4183cdef0fa7fe9d815fc1515 /tools/perf/scripts/python/flamegraph.py
parentc561d11063009323a0e57c528cb1d77b7d2c41e0 (diff)
bpftool: Bpf skeletons assert type sizes
When emitting type declarations in skeletons, bpftool will now also emit static assertions on the size of the data/bss/rodata/etc fields. This ensures that in situations where userspace and kernel types have the same name but differ in size we do not silently produce incorrect results but instead break the build. This was reported in [1] and as expected the repro in [2] fails to build on the new size assert after this change. [1]: Closes: https://github.com/libbpf/libbpf/issues/433 [2]: https://github.com/fuweid/iovisor-bcc-pr-3777 Signed-off-by: Delyan Kratunov <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Tested-by: Hengqi Chen <[email protected]> Acked-by: Hengqi Chen <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions