add BPF syscall number for x86 arch 61/271261/1 accepted/tizen/unified/20220217.204833 submit/tizen/20220217.092523
authorAdrian Szyndela <adrian.s@samsung.com>
Thu, 17 Feb 2022 08:15:42 +0000 (09:15 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Thu, 17 Feb 2022 09:00:34 +0000 (10:00 +0100)
Change-Id: Ic47df8ca4ab848dbec8a934c105680f43c34fc29

src/cc/libbpf/src/skel_internal.h

index 8596b59..a011f57 100644 (file)
@@ -8,7 +8,11 @@
 #include <sys/mman.h>
 
 #ifndef __NR_bpf
-# if defined(__mips__) && defined(_ABIO32)
+# if defined(__i386__)
+#  define __NR_bpf 357
+# elif defined(__x86_64__)
+#  define __NR_bpf 321
+# elif defined(__mips__) && defined(_ABIO32)
 #  define __NR_bpf 4355
 # elif defined(__mips__) && defined(_ABIN32)
 #  define __NR_bpf 6319