Updating bpf syscall: What kernel version should a PR be compatible with?
Quentin Monnet
quentin.monnet at 6wind.com
Thu Jan 26 11:04:49 UTC 2017
2017-01-26 (03:06 +0300) ~ Dmitry V. Levin <ldv at altlinux.org>
[…]
> We cannot assume that <linux/bpf.h> exists. As you can see in bpf.c
> and tests/bpf.c, #include <linux/bpf.h> is guarded by #ifdef.
> The code that uses new bpf features would need appropriate #ifdef's
> as well, and new xlat/ constants should have fallback definitions.
Thanks Dmitry for your quick answer! I'll do as you say, and use
#ifdef's to make sure it can be compiled.
Best regards,
Quentin
More information about the Strace-devel
mailing list