]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - tools/perf/util/session.h
perf tools: Introduce perf_session class
[mirror_ubuntu-zesty-kernel.git] / tools / perf / util / session.h
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 */