X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Flttng.c;h=8a0d58faeaa8ac7ec7299a7a633d9ada73e8e513;hp=e286917ed1effff58afaacb91c1f8bcb780d7de4;hb=520ff6876d5fdf7e5421733a8f2a7d0c20e43c8c;hpb=47b74d6393632d4d793a89d24b0fd600eac602b5 diff --git a/lttng/lttng.c b/lttng/lttng.c index e286917ed..8a0d58fae 100644 --- a/lttng/lttng.c +++ b/lttng/lttng.c @@ -126,6 +126,15 @@ static int process_client_opt(void) MSG("Trace started successfully!"); } + if (opt_stop_trace) { + DBG("Stop trace for pid %d", opt_stop_trace); + ret = lttng_ust_stop_trace(opt_stop_trace); + if (ret < 0) { + goto end; + } + MSG("Trace stopped successfully!"); + } + return 0; end: