drm/bridge: ti-sn65dsi86: Fix multiple instances
[drm/drm-misc.git] / arch / riscv / include / asm / perf_event.h
blobbcc928fd3785c16b54a9a802525bad07c86f3690
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2018 SiFive
4 * Copyright (C) 2018 Andes Technology Corporation
6 */
8 #ifndef _ASM_RISCV_PERF_EVENT_H
9 #define _ASM_RISCV_PERF_EVENT_H
11 #ifdef CONFIG_PERF_EVENTS
12 #include <linux/perf_event.h>
13 #define perf_arch_bpf_user_pt_regs(regs) (struct user_regs_struct *)regs
15 #define perf_arch_fetch_caller_regs(regs, __ip) { \
16 (regs)->epc = (__ip); \
17 (regs)->s0 = (unsigned long) __builtin_frame_address(0); \
18 (regs)->sp = current_stack_pointer; \
19 (regs)->status = SR_PP; \
21 #endif
23 #endif /* _ASM_RISCV_PERF_EVENT_H */