+void *live_consume()
+{
+ struct bt_context *bt_ctx = NULL;
+ int ret;
+
+ while (1) {
+ dump_snapshot();
+ /*
+ if (!trace_opened) {
+ bt_ctx = bt_context_create();
+ ret = bt_context_add_trace(ctx, NULL, "ctf",
+ ctf_move_mmap_pos_slow, mmap_list, metadata_fp);
+ trace_opened = 1;
+ }
+ */
+ //iter_trace(bt_ctx);
+ sleep(1);
+ }
+}