File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 88#ifndef __ARM_PERF_EVENT_H__
99#define __ARM_PERF_EVENT_H__
1010
11+ #ifdef CONFIG_PERF_EVENTS
12+ #define perf_arch_bpf_user_pt_regs (regs ) (struct pt_regs___bpf *)regs
13+ #endif
14+
1115#define perf_arch_fetch_caller_regs (regs , __ip ) { \
1216 (regs)->ARM_pc = (__ip); \
1317 frame_pointer((regs)) = (unsigned long) __builtin_frame_address(0); \
Original file line number Diff line number Diff line change 1+ /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2+ #ifndef _UAPI__ASM_BPF_PERF_EVENT_H__
3+ #define _UAPI__ASM_BPF_PERF_EVENT_H__
4+
5+ struct pt_regs___bpf {
6+ unsigned int uregs [18 ];
7+ };
8+
9+ typedef struct pt_regs___bpf bpf_user_pt_regs_t ;
10+
11+ #endif /* _UAPI__ASM_BPF_PERF_EVENT_H__ */
Original file line number Diff line number Diff line change 11#if defined(__aarch64__ )
22#include "../../arch/arm64/include/uapi/asm/bpf_perf_event.h"
3+ #elif defined(__arm__ )
4+ #include "../../arch/arm/include/uapi/asm/bpf_perf_event.h"
35#elif defined(__arc__ )
46#include "../../arch/arc/include/uapi/asm/bpf_perf_event.h"
57#elif defined(__s390__ )
You can’t perform that action at this time.
0 commit comments