linux/tools/perf/util/perf_regs.h
<<
>>
Prefs
   1#ifndef __PERF_REGS_H
   2#define __PERF_REGS_H
   3
   4#include "types.h"
   5#include "event.h"
   6
   7#ifdef HAVE_PERF_REGS_SUPPORT
   8#include <perf_regs.h>
   9
  10int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
  11
  12#else
  13#define PERF_REGS_MASK  0
  14
  15static inline const char *perf_reg_name(int id __maybe_unused)
  16{
  17        return NULL;
  18}
  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}
  26#endif /* HAVE_PERF_REGS_SUPPORT */
  27#endif /* __PERF_REGS_H */
  28