2026-01-21 18:59:54 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
|
#ifndef _ASM_SW64_PERF_EVENT_H
|
|
|
|
|
#define _ASM_SW64_PERF_EVENT_H
|
|
|
|
|
|
2026-01-29 22:25:33 +08:00
|
|
|
#include <asm/pmc.h>
|
|
|
|
|
#include <asm/ptrace.h>
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_PERF_EVENTS
|
|
|
|
|
struct pt_regs;
|
|
|
|
|
extern unsigned long perf_instruction_pointer(struct pt_regs *regs);
|
|
|
|
|
extern unsigned long perf_misc_flags(struct pt_regs *regs);
|
|
|
|
|
#define perf_misc_flags(regs) perf_misc_flags(regs)
|
|
|
|
|
#define perf_arch_bpf_user_pt_regs(regs) ®s->user_regs
|
|
|
|
|
#endif
|
2026-01-21 18:59:54 +08:00
|
|
|
|
|
|
|
|
#endif /* _ASM_SW64_PERF_EVENT_H */
|