Warn user of clock offsets do not match
[babeltrace.git] / include / babeltrace / babeltrace-internal.h
CommitLineData
70bd0a12
JD
1#ifndef _BABELTRACE_INTERNAL_H
2#define _BABELTRACE_INTERNAL_H
3
4#include <stdio.h>
5#include <glib.h>
11ac6674 6#include <stdint.h>
70bd0a12
JD
7
8extern int babeltrace_verbose, babeltrace_debug;
9
3394d22e
MD
10#define printf_verbose(fmt, args...) \
11 do { \
12 if (babeltrace_verbose) \
13 fprintf(stdout, "[verbose] " fmt, ## args); \
70bd0a12
JD
14 } while (0)
15
3394d22e
MD
16#define printf_debug(fmt, args...) \
17 do { \
18 if (babeltrace_debug) \
19 fprintf(stdout, "[debug] " fmt, ## args); \
70bd0a12
JD
20 } while (0)
21
90bf3cef
MD
22#define likely(x) __builtin_expect(!!(x), 1)
23#define unlikely(x) __builtin_expect(!!(x), 0)
24
70bd0a12
JD
25struct trace_descriptor;
26struct trace_collection {
a44bc4c9
MD
27 GPtrArray *array; /* struct trace_descriptor */
28 GHashTable *clocks; /* struct ctf_clock */
70bd0a12
JD
29};
30
cba1661c
MD
31extern int opt_all_field_names,
32 opt_scope_field_names,
33 opt_header_field_names,
34 opt_context_field_names,
82662ad4 35 opt_payload_field_names,
359d7456
MD
36 opt_all_fields,
37 opt_trace_field,
38 opt_trace_domain_field,
39 opt_trace_procname_field,
40 opt_trace_vpid_field,
41 opt_loglevel_field,
11ac6674
MD
42 opt_delta_field,
43 opt_clock_raw,
44 opt_clock_seconds,
45 opt_clock_date,
46 opt_clock_gmt;
47
48extern uint64_t opt_clock_offset;
70bd0a12
JD
49
50#endif
This page took 0.024531 seconds and 4 git commands to generate.