X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fcommands%2Flist.c;h=50dad9a2b4efc3aa57cb747c72820cea36773add;hp=f0c8c880f536e0b23742bdc0160f54c8fd2a294b;hb=874d3f847b8053e38a50321b17abce4248ce6e53;hpb=cd80958d00fddabced5fbd60641978516a01e29e diff --git a/lttng/commands/list.c b/lttng/commands/list.c index f0c8c880f..50dad9a2b 100644 --- a/lttng/commands/list.c +++ b/lttng/commands/list.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "../cmd.h" @@ -177,6 +178,18 @@ static int list_events(const char *channel_name) events[i].name, events[i].enabled); MSG("%ssymbol: \"%s\"", indent8, events[i].attr.ftrace.symbol_name); break; + case LTTNG_EVENT_SYSCALL: + MSG("%s (type: syscall) [enabled: %d]", indent6, + events[i].enabled); + break; + case LTTNG_EVENT_NOOP: + MSG("%s (type: noop) [enabled: %d]", indent6, + events[i].enabled); + break; + case LTTNG_EVENT_ALL: + /* We should never have "all" events in list. */ + assert(0); + break; } } @@ -254,7 +267,7 @@ static int list_channels(const char *channel_name) /* Listing events per channel */ ret = list_events(channels[i].name); if (ret < 0) { - MSG("%s", lttng_get_readable_code(ret)); + MSG("%s", lttng_strerror(ret)); } if (chan_found) {