| enum perf_data_mode mode; |
| static inline bool perf_data_file__is_read(struct perf_data_file *file) |
| return file->mode == PERF_DATA_MODE_READ; |
| static inline bool perf_data_file__is_write(struct perf_data_file *file) |
| return file->mode == PERF_DATA_MODE_WRITE; |
| static inline int perf_data_file__is_pipe(struct perf_data_file *file) |
| static inline int perf_data_file__fd(struct perf_data_file *file) |
| 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); |
| #endif /* __PERF_DATA_H */ |