diff options
Diffstat (limited to 'tools/perf/util/data.h')
-rw-r--r-- | tools/perf/util/data.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/perf/util/data.h b/tools/perf/util/data.h index d6c262e42f47..8c2df80152a5 100644 --- a/tools/perf/util/data.h +++ b/tools/perf/util/data.h | |||
@@ -27,6 +27,21 @@ static inline bool perf_data_file__is_write(struct perf_data_file *file) | |||
27 | return file->mode == PERF_DATA_MODE_WRITE; | 27 | return file->mode == PERF_DATA_MODE_WRITE; |
28 | } | 28 | } |
29 | 29 | ||
30 | static inline int perf_data_file__is_pipe(struct perf_data_file *file) | ||
31 | { | ||
32 | return file->is_pipe; | ||
33 | } | ||
34 | |||
35 | static inline int perf_data_file__fd(struct perf_data_file *file) | ||
36 | { | ||
37 | return file->fd; | ||
38 | } | ||
39 | |||
40 | static inline unsigned long perf_data_file__size(struct perf_data_file *file) | ||
41 | { | ||
42 | return file->size; | ||
43 | } | ||
44 | |||
30 | int perf_data_file__open(struct perf_data_file *file); | 45 | int perf_data_file__open(struct perf_data_file *file); |
31 | void perf_data_file__close(struct perf_data_file *file); | 46 | void perf_data_file__close(struct perf_data_file *file); |
32 | 47 | ||