X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng%2Flttng.c;h=3878fb8367614654d1e837951c121024803e8366;hb=fda89c9b0a068c6d528e1ef9095476118708c181;hp=40cf52bc6a3b02059a1ea8635c412737f8a5f71f;hpb=87378cf56f08f23cd6715a923ba10d98343902d7;p=lttng-tools.git diff --git a/lttng/lttng.c b/lttng/lttng.c index 40cf52bc6..3878fb836 100644 --- a/lttng/lttng.c +++ b/lttng/lttng.c @@ -97,6 +97,15 @@ static int process_client_opt(void) lttng_set_current_session_uuid(opt_session_uuid); } + if (opt_create_trace) { + DBG("Create trace for pid %d", opt_create_trace); + ret = lttng_ust_create_trace(opt_create_trace); + if (ret < 0) { + goto end; + } + MSG("Trace created successfully!\nUse --start PID to start tracing"); + } + return 0; end: