1 #include <asm/unistd.h>
8 # elif defined(__x86_64__)
10 # elif defined(__aarch64__)
12 # error __NR_bpf not defined. libbpf does not support your arch.
20 /* Check fields in attr */
21 attr.prog_type = BPF_PROG_TYPE_KPROBE;
28 attr.kern_version = 0;
32 * Test existence of __NR_bpf and BPF_PROG_LOAD.
33 * This call should fail if we run the testcase.
35 return syscall(__NR_bpf, BPF_PROG_LOAD, attr, sizeof(attr));