0001
0002
0003
0004
0005
0006
0007 #ifndef __PERF_PFM_H
0008 #define __PERF_PFM_H
0009
0010 #include <subcmd/parse-options.h>
0011
0012 #ifdef HAVE_LIBPFM
0013 int parse_libpfm_events_option(const struct option *opt, const char *str,
0014 int unset);
0015
0016 void print_libpfm_events(bool name_only, bool long_desc);
0017
0018 #else
0019 #include <linux/compiler.h>
0020
0021 static inline int parse_libpfm_events_option(
0022 const struct option *opt __maybe_unused,
0023 const char *str __maybe_unused,
0024 int unset __maybe_unused)
0025 {
0026 return 0;
0027 }
0028
0029 static inline void print_libpfm_events(bool name_only __maybe_unused,
0030 bool long_desc __maybe_unused)
0031 {
0032 }
0033
0034 #endif
0035
0036
0037 #endif