perf tools: Pass a fd to perf_file_header__read_pipe()
[linux-2.6-microblaze.git] / tools / perf / util / session.h
index e31ba4c..5d8bd14 100644 (file)
@@ -54,8 +54,16 @@ struct decomp {
 
 struct perf_tool;
 
-struct perf_session *perf_session__new(struct perf_data *data,
-                                      bool repipe, struct perf_tool *tool);
+struct perf_session *__perf_session__new(struct perf_data *data,
+                                        bool repipe, int repipe_fd,
+                                        struct perf_tool *tool);
+
+static inline struct perf_session *perf_session__new(struct perf_data *data,
+                                                    struct perf_tool *tool)
+{
+       return __perf_session__new(data, false, -1, tool);
+}
+
 void perf_session__delete(struct perf_session *session);
 
 void perf_event_header__bswap(struct perf_event_header *hdr);