]> Git Repo - linux.git/blob - arch/riscv/include/asm/perf_event.h
Merge patch series "riscv: Extension parsing fixes"
[linux.git] / arch / riscv / include / asm / perf_event.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2018 SiFive
4  * Copyright (C) 2018 Andes Technology Corporation
5  *
6  */
7
8 #ifndef _ASM_RISCV_PERF_EVENT_H
9 #define _ASM_RISCV_PERF_EVENT_H
10
11 #include <linux/perf_event.h>
12 #define perf_arch_bpf_user_pt_regs(regs) (struct user_regs_struct *)regs
13
14 #define perf_arch_fetch_caller_regs(regs, __ip) { \
15         (regs)->epc = (__ip); \
16         (regs)->s0 = (unsigned long) __builtin_frame_address(0); \
17         (regs)->sp = current_stack_pointer; \
18         (regs)->status = SR_PP; \
19 }
20 #endif /* _ASM_RISCV_PERF_EVENT_H */
This page took 0.034526 seconds and 4 git commands to generate.