mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
20 lines
426 B
C
20 lines
426 B
C
|
#ifndef _LINUX_PERF_REGS_H
|
||
|
#define _LINUX_PERF_REGS_H
|
||
|
|
||
|
#ifdef CONFIG_HAVE_PERF_REGS
|
||
|
#include <asm/perf_regs.h>
|
||
|
u64 perf_reg_value(struct pt_regs *regs, int idx);
|
||
|
int perf_reg_validate(u64 mask);
|
||
|
#else
|
||
|
static inline u64 perf_reg_value(struct pt_regs *regs, int idx)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
static inline int perf_reg_validate(u64 mask)
|
||
|
{
|
||
|
return mask ? -ENOSYS : 0;
|
||
|
}
|
||
|
#endif /* CONFIG_HAVE_PERF_REGS */
|
||
|
#endif /* _LINUX_PERF_REGS_H */
|