mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
Add missing uapi header the BPF_PROG_TYPE_PERF_EVENT programs by exporting struct user_regs_struct instead of struct pt_regs which is in-kernel only. Signed-off-by: Björn Töpel <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
10 lines
261 B
C
10 lines
261 B
C
/* 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__ */
|