X-Git-Url: http://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttngtop.c;h=e9beb0d0aab082dec131fec1422359d6495f769f;hp=554406aba21582b6d61dff59ae9de5154377c86c;hb=6e11e0d0eebdfe842bc7153ad9e28947b3cb3365;hpb=113c1cacb39413f0449af5ad78a29f203def1b5e diff --git a/src/lttngtop.c b/src/lttngtop.c index 554406a..e9beb0d 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -662,7 +662,6 @@ static int parse_options(int argc, char **argv) opt_textdump = 1; break; case OPT_CHILD: - opt_textdump = 1; opt_child = 1; break; case OPT_PID: @@ -742,6 +741,10 @@ void iter_trace(struct bt_context *bt_ctx) bt_ctf_iter_add_callback(iter, 0, NULL, 0, fix_process_table, NULL, NULL, NULL); + /* to handle the follow child option */ + bt_ctf_iter_add_callback(iter, + g_quark_from_static_string("sched_process_fork"), + NULL, 0, handle_sched_process_fork, NULL, NULL, NULL); if (opt_textdump) { bt_ctf_iter_add_callback(iter, 0, NULL, 0, print_timestamp,