brintos

brintos / linux-shallow public Read only

0
0
Text · 795 B · fb25c27 Raw
39 lines · c
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_H8#define __PERF_PFM_H9 10#include "print-events.h"11#include <subcmd/parse-options.h>12 13#ifdef HAVE_LIBPFM14int parse_libpfm_events_option(const struct option *opt, const char *str,15			int unset);16 17void print_libpfm_events(const struct print_callbacks *print_cb, void *print_state);18 19#else20#include <linux/compiler.h>21 22static inline int parse_libpfm_events_option(23	const struct option *opt __maybe_unused,24	const char *str __maybe_unused,25	int unset __maybe_unused)26{27	return 0;28}29 30static inline void print_libpfm_events(const struct print_callbacks *print_cb __maybe_unused,31				       void *print_state __maybe_unused)32{33}34 35#endif36 37 38#endif /* __PERF_PFM_H */39