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 * If at_exit is set, only rename current perf.data to
51 * perf.data.<postfix>, continue write on original file.
52 * Set at_exit when flushing the last output.
54 * Return value is fd of new output.
56 int perf_data_file__switch(struct perf_data_file
*file
,
58 size_t pos
, bool at_exit
);
59 #endif /* __PERF_DATA_H */
This page took 0.033363 seconds and 5 git commands to generate.