summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evlist.h
blob: 16bbfcba8ca8bd32938dc6aa322c8fa541a4df93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __PERF_EVLIST_H
#define __PERF_EVLIST_H 1

#include <linux/list.h>

struct pollfd;

struct perf_evlist {
	struct list_head entries;
	int		 nr_entries;
	int		 nr_fds;
	struct pollfd	 *pollfd;
};

struct perf_evsel;

struct perf_evlist *perf_evlist__new(void);
void perf_evlist__delete(struct perf_evlist *evlist);

void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *entry);
int perf_evlist__add_default(struct perf_evlist *evlist);

int perf_evlist__alloc_pollfd(struct perf_evlist *evlist, int ncpus, int nthreads);
void perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd);

#endif /* __PERF_EVLIST_H */
OpenPOWER on IntegriCloud