X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fust-ctl.c;h=7c8cc5ebb4084007736c53da9d76d542e6485e58;hp=6f3a02a404db256465e1190b2de941acbbbd1ae0;hb=82a3637f639486c07ff937ab03e1e9532379d26a;hpb=b088a5811cd4bd654b6f04a4bff6387965b1e15a diff --git a/ltt-sessiond/ust-ctl.c b/ltt-sessiond/ust-ctl.c index 6f3a02a40..7c8cc5ebb 100644 --- a/ltt-sessiond/ust-ctl.c +++ b/ltt-sessiond/ust-ctl.c @@ -3,8 +3,8 @@ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * as published by the Free Software Foundation; only version 2 + * of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -23,7 +23,6 @@ #include #include -#include "libustctl.h" #include "liblttsessiondcomm.h" #include "lttngerr.h" #include "ust-ctl.h" @@ -58,7 +57,7 @@ static struct ltt_ust_trace *find_session_ust_trace_by_pid( */ int get_trace_count_per_session(struct ltt_session *session) { - return session->ust_trace_count + session->kern_session_count; + return session->ust_trace_count; } /*