1 #include <asm/unistd.h>
8 # elif defined(__x86_64__)
10 # elif defined(__aarch64__)
12 # elif defined(__sparc__)
14 # elif defined(__s390__)
17 # error __NR_bpf not defined. libbpf does not support your arch.
25 /* Check fields in attr */
26 attr.prog_type = BPF_PROG_TYPE_KPROBE;
33 attr.kern_version = 0;
37 * Test existence of __NR_bpf and BPF_PROG_LOAD.
38 * This call should fail if we run the testcase.
40 return syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr));