2011-01-11 15:56:53 -07:00
|
|
|
#ifndef __PERF_EVLIST_H
|
|
|
|
#define __PERF_EVLIST_H 1
|
|
|
|
|
|
|
|
#include <linux/list.h>
|
|
|
|
|
2011-01-11 17:30:02 -07:00
|
|
|
struct pollfd;
|
|
|
|
|
2011-01-11 15:56:53 -07:00
|
|
|
struct perf_evlist {
|
|
|
|
struct list_head entries;
|
|
|
|
int nr_entries;
|
2011-01-11 17:30:02 -07:00
|
|
|
int nr_fds;
|
|
|
|
struct pollfd *pollfd;
|
2011-01-11 15:56:53 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
2011-01-11 17:30:02 -07:00
|
|
|
int perf_evlist__alloc_pollfd(struct perf_evlist *evlist, int ncpus, int nthreads);
|
|
|
|
|
2011-01-11 15:56:53 -07:00
|
|
|
#endif /* __PERF_EVLIST_H */
|