Skip to content

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

Merged
anakryiko merged 2 commits intolibbpf:masterfrom
anakryiko:use-bpftool-bootstrap
Jul 8, 2022
Merged

Makefile: build and use lightweight bootstrap version of bpftool#92
anakryiko merged 2 commits intolibbpf:masterfrom
anakryiko:use-bpftool-bootstrap

Conversation

@anakryiko
Copy link
Copy Markdown
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 quentin@isovalent.com
Signed-off-by: Andrii Nakryiko andrii@kernel.org

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

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
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 <quentin@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
@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 <chenhengqi@outlook.com>
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