tools: Unify export.h
[deliverable/linux.git] / tools / perf / util / perf_regs.h
CommitLineData
2bcd355b
JO
1#ifndef __PERF_REGS_H
2#define __PERF_REGS_H
3
c9b951c4
JO
4#include "types.h"
5#include "event.h"
6
89fe808a 7#ifdef HAVE_PERF_REGS_SUPPORT
2bcd355b 8#include <perf_regs.h>
c9b951c4
JO
9
10int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
11
2bcd355b
JO
12#else
13#define PERF_REGS_MASK 0
14
1d037ca1 15static inline const char *perf_reg_name(int id __maybe_unused)
2bcd355b
JO
16{
17 return NULL;
18}
c9b951c4
JO
19
20static inline int perf_reg_value(u64 *valp __maybe_unused,
21 struct regs_dump *regs __maybe_unused,
22 int id __maybe_unused)
23{
24 return 0;
25}
89fe808a 26#endif /* HAVE_PERF_REGS_SUPPORT */
2bcd355b 27#endif /* __PERF_REGS_H */
This page took 0.117447 seconds and 5 git commands to generate.