summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/include/uapi
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2022-10-12 16:36:20 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2022-10-12 16:36:20 +0800
commit5dc615520c4dfb358245680f1904bad61116648e (patch)
tree4d12dbcf06e480d4290ffeaf364c8c8158586811 /arch/loongarch/include/uapi
parent4e59e5a46936dd649208f348ead678c35197203d (diff)
downloadlinux-5dc615520c4dfb358245680f1904bad61116648e.tar.gz
linux-5dc615520c4dfb358245680f1904bad61116648e.tar.bz2
linux-5dc615520c4dfb358245680f1904bad61116648e.zip
LoongArch: Add BPF JIT support
BPF programs are normally handled by a BPF interpreter, add BPF JIT support for LoongArch to allow the kernel to generate native code when a program is loaded into the kernel. This will significantly speed-up processing of BPF programs. Co-developed-by: Youling Tang <tangyouling@loongson.cn> Signed-off-by: Youling Tang <tangyouling@loongson.cn> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include/uapi')
-rw-r--r--arch/loongarch/include/uapi/asm/bpf_perf_event.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/loongarch/include/uapi/asm/bpf_perf_event.h b/arch/loongarch/include/uapi/asm/bpf_perf_event.h
new file mode 100644
index 000000000000..eb6e2fd2a1f0
--- /dev/null
+++ b/arch/loongarch/include/uapi/asm/bpf_perf_event.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _UAPI__ASM_BPF_PERF_EVENT_H__
+#define _UAPI__ASM_BPF_PERF_EVENT_H__
+
+#include <linux/ptrace.h>
+
+typedef struct user_pt_regs bpf_user_pt_regs_t;
+
+#endif /* _UAPI__ASM_BPF_PERF_EVENT_H__ */