summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evswitch.h
blob: 891164504080b52f4a4d6ccf85d3629c46798a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-License-Identifier: GPL-2.0-only
// Copyright (C) 2019, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
#ifndef __PERF_EVSWITCH_H
#define __PERF_EVSWITCH_H 1

#include <stdbool.h>

struct evsel;

struct evswitch {
	struct evsel *on, *off;
	const char   *on_name, *off_name;
	bool	     discarding;
	bool	     show_on_off_events;
};

bool evswitch__discard(struct evswitch *evswitch, struct evsel *evsel);

#endif /* __PERF_EVSWITCH_H */