Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / perf / util / pfm.h
blob7d70dda87012713a2d04b365eaa47da41744f9fe
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Support for libpfm4 event encoding.
5 * Copyright 2020 Google LLC.
6 */
7 #ifndef __PERF_PFM_H
8 #define __PERF_PFM_H
10 #include <subcmd/parse-options.h>
12 #ifdef HAVE_LIBPFM
13 int parse_libpfm_events_option(const struct option *opt, const char *str,
14 int unset);
16 void print_libpfm_events(bool name_only, bool long_desc);
18 #else
19 #include <linux/compiler.h>
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)
26 return 0;
29 static inline void print_libpfm_events(bool name_only __maybe_unused,
30 bool long_desc __maybe_unused)
34 #endif
37 #endif /* __PERF_PFM_H */