]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/session.h
perf tools: Add data object to handle perf data file
[karo-tx-linux.git] / tools / perf / util / session.h
index 04bf7373a7e5fb04222b1a9cdb5c295045c0626f..f2f6251fd62c0c44aa2800152c34eee43673e3a3 100644 (file)
@@ -7,6 +7,7 @@
 #include "machine.h"
 #include "symbol.h"
 #include "thread.h"
+#include "data.h"
 #include <linux/rbtree.h>
 #include <linux/perf_event.h>
 
@@ -49,9 +50,8 @@ struct perf_session {
 
 struct perf_tool;
 
-struct perf_session *perf_session__new(const char *filename, int mode,
-                                      bool force, bool repipe,
-                                      struct perf_tool *tool);
+struct perf_session *perf_session__new(struct perf_data_file *file,
+                                      bool repipe, struct perf_tool *tool);
 void perf_session__delete(struct perf_session *session);
 
 void perf_event_header__bswap(struct perf_event_header *self);