diff options
| author | Douglas Raillard <[email protected]> | 2022-05-24 09:44:47 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-06-02 23:26:51 +0000 |
| commit | 610cd93b44ce1e7323878ef5f7b23dc10c7d45b7 (patch) | |
| tree | 6c372b997f6df709c48ea99bfe1d40662aa43246 /scripts/bpf_doc.py | |
| parent | bpf: Fix KASAN use-after-free Read in compute_effective_progs (diff) | |
| download | kernel-610cd93b44ce1e7323878ef5f7b23dc10c7d45b7.tar.gz kernel-610cd93b44ce1e7323878ef5f7b23dc10c7d45b7.zip | |
libbpf: Fix determine_ptr_size() guessing
One strategy employed by libbpf to guess the pointer size is by finding
the size of "unsigned long" type. This is achieved by looking for a type
of with the expected name and checking its size.
Unfortunately, the C syntax is friendlier to humans than to computers
as there is some variety in how such a type can be named. Specifically,
gcc and clang do not use the same names for integer types in debug info:
- clang uses "unsigned long"
- gcc uses "long unsigned int"
Lookup all the names for such a type so that libbpf can hope to find the
information it wants.
Signed-off-by: Douglas Raillard <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
