]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - tools/perf/util/data.h
11 struct perf_data_file
{
17 enum perf_data_mode mode
;
20 static inline bool perf_data_file__is_read(struct perf_data_file
*file
)
22 return file
->mode
== PERF_DATA_MODE_READ
;
25 static inline bool perf_data_file__is_write(struct perf_data_file
*file
)
27 return file
->mode
== PERF_DATA_MODE_WRITE
;
30 static inline int perf_data_file__is_pipe(struct perf_data_file
*file
)
35 static inline int perf_data_file__fd(struct perf_data_file
*file
)
40 static inline unsigned long perf_data_file__size(struct perf_data_file
*file
)
45 int perf_data_file__open(struct perf_data_file
*file
);
46 void perf_data_file__close(struct perf_data_file
*file
);
47 ssize_t
perf_data_file__write(struct perf_data_file
*file
,
48 void *buf
, size_t size
);
50 #endif /* __PERF_DATA_H */