blob: 79c78f74e0cf882db1acc55c169115c92ed73d95 [file] [log] [blame]
Jiri Olsa2bcd3552012-08-07 15:20:43 +02001#ifndef __PERF_REGS_H
2#define __PERF_REGS_H
3
Borislav Petkovd944c4e2014-04-25 21:31:02 +02004#include <linux/types.h>
Jiri Olsac9b951c2014-01-07 13:47:29 +01005#include "event.h"
6
Ingo Molnar89fe8082013-09-30 12:07:11 +02007#ifdef HAVE_PERF_REGS_SUPPORT
Jiri Olsa2bcd3552012-08-07 15:20:43 +02008#include <perf_regs.h>
Jiri Olsac9b951c2014-01-07 13:47:29 +01009
10int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
11
Jiri Olsa2bcd3552012-08-07 15:20:43 +020012#else
13#define PERF_REGS_MASK 0
14
Irina Tirdea1d037ca2012-09-11 01:15:03 +030015static inline const char *perf_reg_name(int id __maybe_unused)
Jiri Olsa2bcd3552012-08-07 15:20:43 +020016{
17 return NULL;
18}
Jiri Olsac9b951c2014-01-07 13:47:29 +010019
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}
Ingo Molnar89fe8082013-09-30 12:07:11 +020026#endif /* HAVE_PERF_REGS_SUPPORT */
Jiri Olsa2bcd3552012-08-07 15:20:43 +020027#endif /* __PERF_REGS_H */