session.h 347 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef __PERF_SESSION_H
#define __PERF_SESSION_H

#include "header.h"

struct perf_session {
	struct perf_header	header;
	unsigned long		size;
	int			fd;
	char filename[0];
};

struct perf_session *perf_session__new(const char *filename, int mode, bool force);
void perf_session__delete(struct perf_session *self);

#endif /* __PERF_SESSION_H */