X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fcommands%2Flist.c;h=241a0434549efe8891b9742845117664e2f0e874;hp=191d2e7a2414d4cbf5b83496d0d53e825fc3f9f7;hb=82a3637f639486c07ff937ab03e1e9532379d26a;hpb=f3ed775ef4842019b396f06095b053c3a70bc3c8 diff --git a/lttng/commands/list.c b/lttng/commands/list.c index 191d2e7a2..241a04345 100644 --- a/lttng/commands/list.c +++ b/lttng/commands/list.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 @@ -104,10 +104,13 @@ static int list_kernel(void) { int ret, pos, size; char *event_list, *event, *ptr; + struct lttng_domain dom; DBG("Getting all tracing events"); - ret = lttng_kernel_list_events(&event_list); + dom.type = LTTNG_DOMAIN_KERNEL; + + ret = lttng_list_events(&dom, &event_list); if (ret < 0) { ERR("Unable to list kernel instrumentation"); return ret; @@ -170,7 +173,7 @@ static int list_apps(void) pid_t *pids; char *cmdline; - count = 0; + count = -1; //count = lttng_ust_list_traceable_apps(&pids); if (count < 0) { ret = count;