X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist.c;h=942e4a4c2c3f46a4e48ff1ce3d246b15e5f95deb;hp=9aa28b57ae600de10898df918325f4589a716a0a;hb=491d15395b58df09f8a3e7ba7404eb1f46392b79;hpb=2f16a8f9f5b5b37e103ba68c07f14c5beb8464e7 diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 9aa28b57a..942e4a4c2 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -42,6 +42,12 @@ const char *indent4 = " "; const char *indent6 = " "; const char *indent8 = " "; +#ifdef LTTNG_EMBED_HELP +static const char help_msg[] = +#include +; +#endif + enum { OPT_HELP = 1, OPT_USERSPACE, @@ -1166,7 +1172,8 @@ error: static void print_channel(struct lttng_channel *channel) { int ret; - uint64_t discarded_events, lost_packets; + uint64_t discarded_events, lost_packets, monitor_timer_interval; + int64_t blocking_timeout; ret = lttng_channel_get_discarded_event_count(channel, &discarded_events); @@ -1182,6 +1189,20 @@ static void print_channel(struct lttng_channel *channel) return; } + ret = lttng_channel_get_monitor_timer_interval(channel, + &monitor_timer_interval); + if (ret) { + ERR("Failed to retrieve monitor interval of channel"); + return; + } + + ret = lttng_channel_get_blocking_timeout(channel, + &blocking_timeout); + if (ret) { + ERR("Failed to retrieve blocking timeout of channel"); + return; + } + MSG("- %s:%s\n", channel->name, enabled_string(channel->enabled)); MSG("%sAttributes:", indent4); @@ -1190,6 +1211,8 @@ static void print_channel(struct lttng_channel *channel) MSG("%snumber of subbuffers: %" PRIu64, indent6, channel->attr.num_subbuf); MSG("%sswitch timer interval: %u", indent6, channel->attr.switch_timer_interval); MSG("%sread timer interval: %u", indent6, channel->attr.read_timer_interval); + MSG("%smonitor timer interval: %" PRIu64, indent6, monitor_timer_interval); + MSG("%sblocking timeout (µs): %" PRId64, indent6, blocking_timeout); MSG("%strace file count: %" PRIu64, indent6, channel->attr.tracefile_count); MSG("%strace file size (bytes): %" PRIu64, indent6, channel->attr.tracefile_size); MSG("%sdiscarded events: %" PRIu64, indent6, discarded_events);