xref: /openbmc/linux/tools/perf/util/session.h (revision 94c744b6)
1 #ifndef __PERF_SESSION_H
2 #define __PERF_SESSION_H
3 
4 #include "header.h"
5 
6 struct perf_session {
7 	struct perf_header	header;
8 	unsigned long		size;
9 	int			fd;
10 	char filename[0];
11 };
12 
13 struct perf_session *perf_session__new(const char *filename, int mode, bool force);
14 void perf_session__delete(struct perf_session *self);
15 
16 #endif /* __PERF_SESSION_H */
17