xref: /openbmc/linux/samples/bpf/syscall_nrs.c (revision 711aab1d)
1 #include <uapi/linux/unistd.h>
2 #include <linux/kbuild.h>
3 
4 #define SYSNR(_NR) DEFINE(SYS ## _NR, _NR)
5 
6 void syscall_defines(void)
7 {
8 	COMMENT("Linux system call numbers.");
9 	SYSNR(__NR_write);
10 	SYSNR(__NR_read);
11 	SYSNR(__NR_mmap);
12 }
13