summaryrefslogtreecommitdiff
path: root/arch/arc/include/uapi/asm
diff options
context:
space:
mode:
authorSergey Matyukevich <sergey.matyukevich@synopsys.com>2022-04-14 11:11:26 +0300
committerVineet Gupta <vgupta@kernel.org>2022-04-26 09:35:28 -0700
commit6aa98f6217861889523e38b0141c8c71b2ef8a83 (patch)
tree73252e537514035fa1ff9c3bb600bccb643a59b9 /arch/arc/include/uapi/asm
parent9a78a8a8bb582743ce6747d978b58360c3c599d9 (diff)
downloadlwn-6aa98f6217861889523e38b0141c8c71b2ef8a83.tar.gz
lwn-6aa98f6217861889523e38b0141c8c71b2ef8a83.zip
ARC: bpf: define uapi for BPF_PROG_TYPE_PERF_EVENT program type
Define appropriate uapi for the BPF_PROG_TYPE_PERF_EVENT program type by exporting the user_regs_struct structure instead of the pt_regs structure that is in-kernel only. Signed-off-by: Sergey Matyukevich <sergey.matyukevich@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc/include/uapi/asm')
-rw-r--r--arch/arc/include/uapi/asm/bpf_perf_event.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arc/include/uapi/asm/bpf_perf_event.h b/arch/arc/include/uapi/asm/bpf_perf_event.h
new file mode 100644
index 000000000000..6cb1c2823288
--- /dev/null
+++ b/arch/arc/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 <asm/ptrace.h>
+
+typedef struct user_regs_struct bpf_user_pt_regs_t;
+
+#endif /* _UAPI__ASM_BPF_PERF_EVENT_H__ */