diff options
author | Daniel Müller <deso@posteo.net> | 2022-07-29 01:23:45 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-07-29 02:11:18 +0300 |
commit | 64893e83f916145fd23182209009e9d2ce36d2df (patch) | |
tree | dcc7992c8dbc9545a243b73c53cf37c541104269 /tools/virtio/Makefile | |
parent | 40b09653b1977c9630f24c9ca17322d5b38f1ca5 (diff) | |
download | linux-64893e83f916145fd23182209009e9d2ce36d2df.tar.xz |
libbpf: Support PPC in arch_specific_syscall_pfx
Commit 708ac5bea0ce ("libbpf: add ksyscall/kretsyscall sections support
for syscall kprobes") added the arch_specific_syscall_pfx() function,
which returns a string representing the architecture in use. As it turns
out this function is currently not aware of Power PC, where NULL is
returned. That's being flagged by the libbpf CI system, which builds for
ppc64le and the compiler sees a NULL pointer being passed in to a %s
format string.
With this change we add representations for two more architectures, for
Power PC and Power PC 64, and also adjust the string format logic to
handle NULL pointers gracefully, in an attempt to prevent similar issues
with other architectures in the future.
Fixes: 708ac5bea0ce ("libbpf: add ksyscall/kretsyscall sections support for syscall kprobes")
Signed-off-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220728222345.3125975-1-deso@posteo.net
Diffstat (limited to 'tools/virtio/Makefile')
0 files changed, 0 insertions, 0 deletions