summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/perf_event.h
blob: 74c4e0cd889c700a0a901937bd716366fb882c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __ASM_SPARC_PERF_EVENT_H
#define __ASM_SPARC_PERF_EVENT_H

extern void set_perf_event_pending(void);

#define	PERF_EVENT_INDEX_OFFSET	0

#ifdef CONFIG_PERF_EVENTS
#include <asm/ptrace.h>

extern void init_hw_perf_events(void);

extern void
__perf_arch_fetch_caller_regs(struct pt_regs *regs, unsigned long ip, int skip);

#define perf_arch_fetch_caller_regs(pt_regs, ip)	\
	__perf_arch_fetch_caller_regs(pt_regs, ip, 1);
#else
static inline void init_hw_perf_events(void)	{ }
#endif

#endif