ipv4: clean up cookie_v4_check()
[linux/fpc-iii.git] / tools / perf / util / perf_regs.h
blob980dbf76bc98418322eed0d5ff245cf9ec6edb2c
1 #ifndef __PERF_REGS_H
2 #define __PERF_REGS_H
4 #include <linux/types.h>
6 struct regs_dump;
8 #ifdef HAVE_PERF_REGS_SUPPORT
9 #include <perf_regs.h>
11 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
13 #else
14 #define PERF_REGS_MASK 0
15 #define PERF_REGS_MAX 0
17 static inline const char *perf_reg_name(int id __maybe_unused)
19 return NULL;
22 static inline int perf_reg_value(u64 *valp __maybe_unused,
23 struct regs_dump *regs __maybe_unused,
24 int id __maybe_unused)
26 return 0;
28 #endif /* HAVE_PERF_REGS_SUPPORT */
29 #endif /* __PERF_REGS_H */