]> Git Repo - J-linux.git/blob - arch/loongarch/include/asm/perf_event.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / arch / loongarch / include / asm / perf_event.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Author: Huacai Chen <[email protected]>
4  * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
5  */
6
7 #ifndef __LOONGARCH_PERF_EVENT_H__
8 #define __LOONGARCH_PERF_EVENT_H__
9
10 #include <asm/ptrace.h>
11
12 #define perf_arch_bpf_user_pt_regs(regs) (struct user_pt_regs *)regs
13
14 #define perf_arch_fetch_caller_regs(regs, __ip) { \
15         (regs)->csr_era = (__ip); \
16         (regs)->regs[3] = (unsigned long) __builtin_frame_address(0); \
17 }
18
19 #endif /* __LOONGARCH_PERF_EVENT_H__ */
This page took 0.027618 seconds and 4 git commands to generate.