From: Dominique Martinet <asmadeus@codewreck.org>
To: bpf@vger.kernel.org
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
KP Singh <kpsingh@kernel.org>,
John Fastabend <john.fastabend@gmail.com>,
Yonghong Song <yhs@fb.com>, Song Liu <songliubraving@fb.com>,
Martin KaFai Lau <kafai@fb.com>,
Andrii Nakryiko <andrii@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Alexei Starovoitov <ast@kernel.org>,
Dominique Martinet <asmadeus@codewreck.org>
Subject: [PATCH 0/4] tools/bpf: allow building with musl
Date: Sun, 24 Apr 2022 14:10:18 +0900 [thread overview]
Message-ID: <20220424051022.2619648-1-asmadeus@codewreck.org> (raw)
Hi,
I'd like to build bpftool on alpine linux, which is musl based.
There are a few incompatibilities with it, I've commented on each patch
when I could think of alternative solutions.
I've tested the patch on an x86_64 debian testing with no problem, so
didn't obviously break glibc builds, and the binaries built for alpine
seem to work on aarch64 as well.
Dominique Martinet (4):
tools/runqslower: musl compat: explicitly link with libargp if found
tools/bpf: musl compat: do not use DEFFILEMODE
tools/bpf: musl compat: replace nftw with FTW_ACTIONRETVAL
tools/bpf: replace sys/fcntl.h by fcntl.h
tools/bpf/bpf_jit_disasm.c | 2 +-
tools/bpf/bpftool/perf.c | 115 +++++++++++++++--------------
tools/bpf/bpftool/tracelog.c | 2 +-
tools/bpf/runqslower/Makefile | 30 +++++++-
tools/build/feature/Makefile | 4 +
tools/build/feature/test-all.c | 4 +
tools/build/feature/test-libargp.c | 14 ++++
7 files changed, 111 insertions(+), 60 deletions(-)
create mode 100644 tools/build/feature/test-libargp.c
--
2.35.1
next reply other threads:[~2022-04-24 5:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-24 5:10 Dominique Martinet [this message]
2022-04-24 5:10 ` [PATCH 1/4] tools/bpf/runqslower: musl compat: explicitly link with libargp if found Dominique Martinet
2022-04-24 6:58 ` Dominique Martinet
2022-04-25 21:35 ` Daniel Borkmann
2022-04-25 22:33 ` Dominique Martinet
2022-04-24 5:10 ` [PATCH 2/4] tools/bpf: musl compat: do not use DEFFILEMODE Dominique Martinet
2022-04-24 5:10 ` [PATCH 3/4] tools/bpf: musl compat: replace nftw with FTW_ACTIONRETVAL Dominique Martinet
2022-04-25 21:24 ` Quentin Monnet
2022-04-24 5:10 ` [PATCH 4/4] tools/bpf: replace sys/fcntl.h by fcntl.h Dominique Martinet
2022-04-25 21:25 ` Quentin Monnet
2022-04-25 21:30 ` [PATCH 0/4] tools/bpf: allow building with musl patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220424051022.2619648-1-asmadeus@codewreck.org \
--to=asmadeus@codewreck.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=john.fastabend@gmail.com \
--cc=kafai@fb.com \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=songliubraving@fb.com \
--cc=yhs@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).