diff options
author | 2022-03-20 15:52:40 +0800 | |
---|---|---|
committer | 2022-03-21 14:49:28 +0100 | |
commit | 583669ab3aed29994e50bde6c66b52d44e1bdb73 (patch) | |
tree | cd9b01339daf89884dc770e108f82bf0958f8f6a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/bpf/test_lirc_mode2.sh: Exit with proper code (diff) | |
download | linux-dev-583669ab3aed29994e50bde6c66b52d44e1bdb73.tar.xz linux-dev-583669ab3aed29994e50bde6c66b52d44e1bdb73.zip |
bpf: Simplify check in btf_parse_hdr()
Replace offsetof(hdr_len) + sizeof(hdr_len) with offsetofend(hdr_len) to
simplify the check for correctness of btf_data_size in btf_parse_hdr()
Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220320075240.1001728-1-ytcoode@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions