xref: /kernel/linux/linux-5.10/arch/arm/include/asm/perf_event.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/arm/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  linux/arch/arm/include/asm/perf_event.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *  Copyright (C) 2009 picoChip Designs Ltd, Jamie Iles
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef __ARM_PERF_EVENT_H__
98c2ecf20Sopenharmony_ci#define __ARM_PERF_EVENT_H__
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#ifdef CONFIG_PERF_EVENTS
128c2ecf20Sopenharmony_cistruct pt_regs;
138c2ecf20Sopenharmony_ciextern unsigned long perf_instruction_pointer(struct pt_regs *regs);
148c2ecf20Sopenharmony_ciextern unsigned long perf_misc_flags(struct pt_regs *regs);
158c2ecf20Sopenharmony_ci#define perf_misc_flags(regs)	perf_misc_flags(regs)
168c2ecf20Sopenharmony_ci#endif
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#define perf_arch_fetch_caller_regs(regs, __ip) { \
198c2ecf20Sopenharmony_ci	(regs)->ARM_pc = (__ip); \
208c2ecf20Sopenharmony_ci	frame_pointer((regs)) = (unsigned long) __builtin_frame_address(0); \
218c2ecf20Sopenharmony_ci	(regs)->ARM_sp = current_stack_pointer; \
228c2ecf20Sopenharmony_ci	(regs)->ARM_cpsr = SVC_MODE; \
238c2ecf20Sopenharmony_ci}
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif /* __ARM_PERF_EVENT_H__ */
26

Indexes created Thu Nov 07 10:32:03 CST 2024