#include <babeltrace/ctf-ir/metadata.h>
#include <stdarg.h>
+int babeltrace_verbose, babeltrace_debug;
+
struct stream_saved_pos {
/*
* Use file_stream pointer to check if the trace collection we
struct bt_ctf_data ctf_data;
ctf_data.event = extract_ctf_stream_event(stream);
+ ctf_data.stream = stream;
/* process all events callback first */
if (iter->main_callbacks.callback) {
babeltrace_iter_destroy(iter);
return ret;
}
+
+static
+void __attribute__((constructor)) init_babeltrace_lib(void)
+{
+ if (getenv("BABELTRACE_VERBOSE"))
+ babeltrace_verbose = 1;
+ if (getenv("BABELTRACE_DEBUG"))
+ babeltrace_debug = 1;
+}