1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for libpfm4 event encoding. 4 * 5 * Copyright 2020 Google LLC. 6 */ 7 #ifndef __PERF_PFM_H 8 #define __PERF_PFM_H 9 10 #include <subcmd/parse-options.h> 11 12 #ifdef HAVE_LIBPFM 13 int parse_libpfm_events_option(const struct option *opt, const char *str, 14 int unset); 15 16 void print_libpfm_events(bool name_only, bool long_desc); 17 18 #else 19 #include <linux/compiler.h> 20 21 static inline int parse_libpfm_events_option( 22 const struct option *opt __maybe_unused, 23 const char *str __maybe_unused, 24 int unset __maybe_unused) 25 { 26 return 0; 27 } 28 29 static inline void print_libpfm_events(bool name_only __maybe_unused, 30 bool long_desc __maybe_unused) 31 { 32 } 33 34 #endif 35 36 37 #endif /* __PERF_PFM_H */ 38