perf: Unified API to record selective sets of arch registers
[linux-2.6.git] / include / linux / perf_regs.h
bloba2f1a98f783915af866af0218d0b1e0da8f56079
1 #ifndef _LINUX_PERF_REGS_H
2 #define _LINUX_PERF_REGS_H
4 #ifdef CONFIG_HAVE_PERF_REGS
5 #include <asm/perf_regs.h>
6 u64 perf_reg_value(struct pt_regs *regs, int idx);
7 int perf_reg_validate(u64 mask);
8 #else
9 static inline u64 perf_reg_value(struct pt_regs *regs, int idx)
11 return 0;
14 static inline int perf_reg_validate(u64 mask)
16 return mask ? -ENOSYS : 0;
18 #endif /* CONFIG_HAVE_PERF_REGS */
19 #endif /* _LINUX_PERF_REGS_H */