]> Pileus Git - ~andy/linux/blobdiff - tools/perf/util/data.h
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux...
[~andy/linux] / tools / perf / util / data.h
index 8c2df80152a519f02c2e699bf703840ce46efd1c..2b15d0c95c7f312de08a36a05b08c8356b039616 100644 (file)
@@ -9,12 +9,12 @@ enum perf_data_mode {
 };
 
 struct perf_data_file {
-       const char *path;
-       int fd;
-       bool is_pipe;
-       bool force;
-       unsigned long size;
-       enum perf_data_mode mode;
+       const char              *path;
+       int                      fd;
+       bool                     is_pipe;
+       bool                     force;
+       unsigned long            size;
+       enum perf_data_mode      mode;
 };
 
 static inline bool perf_data_file__is_read(struct perf_data_file *file)
@@ -44,5 +44,7 @@ static inline unsigned long perf_data_file__size(struct perf_data_file *file)
 
 int perf_data_file__open(struct perf_data_file *file);
 void perf_data_file__close(struct perf_data_file *file);
+ssize_t perf_data_file__write(struct perf_data_file *file,
+                             void *buf, size_t size);
 
 #endif /* __PERF_DATA_H */