X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttngtop.c;h=52f0046bd63f4e3cdc74a021a4cc9d20da4f19ee;hp=dfa1d14c5502b55a21528555c39a905b4cb2af9b;hb=af54ebcf72ed12fe3a2557886d24bd8e26cc79bb;hpb=e05a35a69ff03f10bba459a07dc26684049f1bc9 diff --git a/src/lttngtop.c b/src/lttngtop.c index dfa1d14..52f0046 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -412,6 +412,12 @@ void iter_trace(struct bt_context *bt_ctx) bt_ctf_iter_add_callback(iter, g_quark_from_static_string("sched_process_free"), NULL, 0, handle_sched_process_free, NULL, NULL, NULL); + /* to get all the process from the statedumps */ + bt_ctf_iter_add_callback(iter, + g_quark_from_static_string( + "lttng_statedump_process_state"), + NULL, 0, handle_statedump_process_state, + NULL, NULL, NULL); /* for IO top */ bt_ctf_iter_add_callback(iter, @@ -429,13 +435,12 @@ void iter_trace(struct bt_context *bt_ctx) bt_ctf_iter_add_callback(iter, g_quark_from_static_string("sys_close"), NULL, 0, handle_sys_close, NULL, NULL, NULL); -/* bt_ctf_iter_add_callback(iter, g_quark_from_static_string( "lttng_statedump_file_descriptor"), NULL, 0, handle_statedump_file_descriptor, NULL, NULL, NULL); -*/ + while ((event = bt_ctf_iter_read_event(iter)) != NULL) { ret = bt_iter_next(bt_ctf_get_iter(iter)); if (ret < 0)