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

Makefile: build and use lightweight bootstrap version of bpftool #92

Merged
merged 2 commits into from
Jul 8, 2022

Conversation

anakryiko
Copy link
Member

We don't need most of bpftool functionality, just the skeleton
generation and, potentially, static linking, so there is no point in
building full-featured final bpftool version. So build and use bootstrap
bpftool. This should also ease user's pain like [0].

[0] #89

Cc: Quentin Monnet [email protected]
Signed-off-by: Andrii Nakryiko [email protected]

anakryiko added 2 commits July 3, 2022 20:37
Update to latest libbpf master that removed deprecated APIs.

Signed-off-by: Andrii Nakryiko <[email protected]>
We don't need most of bpftool functionality, just the skeleton
generation and, potentially, static linking, so there is no point in
building full-featured final bpftool version. So build and use bootstrap
bpftool. This should also ease user's pain like [0].

  [0] libbpf#89

Cc: Quentin Monnet <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
@anakryiko anakryiko merged commit fc28424 into libbpf:master Jul 8, 2022
@anakryiko anakryiko deleted the use-bpftool-bootstrap branch July 8, 2022 16:48
chenhengqi added a commit to chenhengqi/bcc that referenced this pull request Aug 1, 2022
We need bpftool for skeleton generation only, let's build and use bootstrap
bpftool like libbpf-bootstrap does ([0]). This avoids the following errors
on old kernels:

    skeleton/pid_iter.bpf.c:35:10: error: incomplete definition of type 'struct bpf_link'
                    return BPF_CORE_READ((struct bpf_link *)ent, id);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  [0]: libbpf/libbpf-bootstrap#92

Signed-off-by: Hengqi Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant