*
* 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
#include <stdlib.h>
#include <string.h>
-#include "cmd.h"
+#include "../cmd.h"
static int opt_pid;
static int opt_channels;
{
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;
pid_t *pids;
char *cmdline;
- count = 0;
+ count = -1;
//count = lttng_ust_list_traceable_apps(&pids);
if (count < 0) {
ret = count;