Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbpf: Fix determine_ptr_size() guessing #3094

Closed
wants to merge 2 commits into from

Conversation

kernel-patches-bot
Copy link

Pull request for series with
subject: libbpf: Fix determine_ptr_size() guessing
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=644597

Kernel Patches Daemon and others added 2 commits May 31, 2022 15:46
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.

Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Douglas Raillard <douglas.raillard@arm.com>
@kernel-patches-bot
Copy link
Author

Master branch: e0491b1
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=644597
version: 3

@kernel-patches-bot
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=644597 irrelevant now. Closing PR.

@kernel-patches-bot kernel-patches-bot deleted the series/643657=>bpf branch May 31, 2022 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants