~ubuntu-branches/ubuntu/utopic/babeltrace/utopic

« back to all changes in this revision

Viewing changes to include/babeltrace/trace-handle.h

  • Committer: Stéphane Graber
  • Date: 2012-04-20 12:29:45 UTC
  • mfrom: (1.1.4)
  • Revision ID: stgraber@ubuntu.com-20120420122945-kg29fg1eck7tt2v8
Megre 1.0.0~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 * It is a unique identifier representing a trace file.
32
32
 */
33
33
struct bt_trace_handle;
34
 
 
35
 
/*
36
 
 * bt_trace_handle_get_id: returns the id associated to the handle.
37
 
 */
38
 
int bt_trace_handle_get_id(struct bt_trace_handle *th);
 
34
struct bt_ctf_event;
39
35
 
40
36
/*
41
37
 * bt_trace_handle_get_path : returns the path of a trace_handle.
42
38
 */
43
 
const char *bt_trace_handle_get_path(struct bt_trace_handle *th);
 
39
const char *bt_trace_handle_get_path(struct bt_context *ctx, int handle_id);
44
40
 
45
41
/*
46
 
 * bt_trace_handle_get_timestamp_begin : returns the beginning timestamp
 
42
 * bt_trace_handle_get_timestamp_begin : returns the creation time of the buffers
47
43
 * of a trace.
48
44
 */
49
 
uint64_t bt_trace_handle_get_timestamp_begin(struct bt_trace_handle *th);
50
 
 
51
 
/*
52
 
 * bt_trace_handle_get_timestamp_end : returns the end timestamp of a
53
 
 * trace.
54
 
 */
55
 
uint64_t bt_trace_handle_get_timestamp_end(struct bt_trace_handle *th);
 
45
uint64_t bt_trace_handle_get_timestamp_begin(struct bt_context *ctx, int handle_id);
 
46
 
 
47
/*
 
48
 * bt_trace_handle_get_timestamp_end : returns the destruction timestamp of the
 
49
 * buffers of a trace.
 
50
 */
 
51
uint64_t bt_trace_handle_get_timestamp_end(struct bt_context *ctx, int handle_id);
 
52
 
 
53
/*
 
54
 * bt_ctf_event_get_handle_id : get the handle id associated with an event
 
55
 *
 
56
 * Returns -1 on error
 
57
 */
 
58
int bt_ctf_event_get_handle_id(const struct bt_ctf_event *event);
56
59
 
57
60
#endif /* _BABELTRACE_TRACE_HANDLE_H */