Implement clock mapping within integer type
[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>
6
7extern int babeltrace_verbose, babeltrace_debug;
8
3394d22e
MD
9#define printf_verbose(fmt, args...) \
10 do { \
11 if (babeltrace_verbose) \
12 fprintf(stdout, "[verbose] " fmt, ## args); \
70bd0a12
JD
13 } while (0)
14
3394d22e
MD
15#define printf_debug(fmt, args...) \
16 do { \
17 if (babeltrace_debug) \
18 fprintf(stdout, "[debug] " fmt, ## args); \
70bd0a12
JD
19 } while (0)
20
90bf3cef
MD
21#define likely(x) __builtin_expect(!!(x), 1)
22#define unlikely(x) __builtin_expect(!!(x), 0)
23
70bd0a12
JD
24struct trace_descriptor;
25struct trace_collection {
95d36295 26 GPtrArray *array; /* struct trace_descriptor */
70bd0a12
JD
27};
28
cba1661c
MD
29extern int opt_all_field_names,
30 opt_scope_field_names,
31 opt_header_field_names,
32 opt_context_field_names,
82662ad4 33 opt_payload_field_names,
359d7456
MD
34 opt_all_fields,
35 opt_trace_field,
36 opt_trace_domain_field,
37 opt_trace_procname_field,
38 opt_trace_vpid_field,
39 opt_loglevel_field,
40 opt_delta_field;
70bd0a12
JD
41
42#endif
This page took 0.034649 seconds and 4 git commands to generate.