2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License, version 2 only,
6 * as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #include "../command.h"
28 static int opt_userspace
;
29 static int opt_kernel
;
31 static char *opt_channel
;
32 static int opt_domain
;
33 static int opt_fields
;
35 /* Not implemented yet */
36 static char *opt_cmd_name
;
40 const char *indent4
= " ";
41 const char *indent6
= " ";
42 const char *indent8
= " ";
50 static struct lttng_handle
*handle
;
52 static struct poptOption long_options
[] = {
53 /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */
54 {"help", 'h', POPT_ARG_NONE
, 0, OPT_HELP
, 0, 0},
55 {"kernel", 'k', POPT_ARG_VAL
, &opt_kernel
, 1, 0, 0},
56 {"jul", 'j', POPT_ARG_VAL
, &opt_jul
, 1, 0, 0},
58 /* Not implemented yet */
59 {"userspace", 'u', POPT_ARG_STRING
| POPT_ARGFLAG_OPTIONAL
, &opt_cmd_name
, OPT_USERSPACE
, 0, 0},
60 {"pid", 'p', POPT_ARG_INT
, &opt_pid
, 0, 0, 0},
62 {"userspace", 'u', POPT_ARG_NONE
, 0, OPT_USERSPACE
, 0, 0},
64 {"channel", 'c', POPT_ARG_STRING
, &opt_channel
, 0, 0, 0},
65 {"domain", 'd', POPT_ARG_VAL
, &opt_domain
, 1, 0, 0},
66 {"fields", 'f', POPT_ARG_VAL
, &opt_fields
, 1, 0, 0},
67 {"list-options", 0, POPT_ARG_NONE
, NULL
, OPT_LIST_OPTIONS
, NULL
, NULL
},
74 static void usage(FILE *ofp
)
76 fprintf(ofp
, "usage: lttng list [OPTIONS] [SESSION [SESSION OPTIONS]]\n");
78 fprintf(ofp
, "With no arguments, list available tracing session(s)\n");
80 fprintf(ofp
, "Without a session, -k lists available kernel events\n");
81 fprintf(ofp
, "Without a session, -u lists available userspace events\n");
83 fprintf(ofp
, " -h, --help Show this help\n");
84 fprintf(ofp
, " --list-options Simple listing of options\n");
85 fprintf(ofp
, " -k, --kernel Select kernel domain\n");
86 fprintf(ofp
, " -u, --userspace Select user-space domain.\n");
87 fprintf(ofp
, " -j, --jul Apply for Java application using JUL\n");
88 fprintf(ofp
, " -f, --fields List event fields.\n");
90 fprintf(ofp
, " -p, --pid PID List user-space events by PID\n");
93 fprintf(ofp
, "Session Options:\n");
94 fprintf(ofp
, " -c, --channel NAME List details of a channel\n");
95 fprintf(ofp
, " -d, --domain List available domain(s)\n");
100 * Get command line from /proc for a specific pid.
102 * On success, return an allocated string pointer to the proc cmdline.
103 * On error, return NULL.
105 static char *get_cmdline_by_pid(pid_t pid
)
109 char *cmdline
= NULL
;
110 char path
[20]; /* Can't go bigger than /proc/65535/cmdline */
112 snprintf(path
, sizeof(path
), "/proc/%d/cmdline", pid
);
113 fp
= fopen(path
, "r");
118 /* Caller must free() *cmdline */
119 cmdline
= malloc(PATH_MAX
);
121 perror("malloc cmdline");
124 ret
= fread(cmdline
, 1, PATH_MAX
, fp
);
126 perror("fread proc list");
135 const char *active_string(int value
)
138 case 0: return "inactive";
139 case 1: return "active";
141 default: return NULL
;
145 static const char *snapshot_string(int value
)
156 const char *enabled_string(int value
)
159 case 0: return " [disabled]";
160 case 1: return " [enabled]";
162 default: return NULL
;
167 const char *filter_string(int value
)
170 case 1: return " [with filter]";
176 const char *exclusion_string(int value
)
179 case 1: return " [has exclusions]";
184 static const char *loglevel_jul_string(int value
)
189 case LTTNG_LOGLEVEL_JUL_OFF
:
191 case LTTNG_LOGLEVEL_JUL_SEVERE
:
193 case LTTNG_LOGLEVEL_JUL_WARNING
:
194 return "JUL_WARNING";
195 case LTTNG_LOGLEVEL_JUL_INFO
:
197 case LTTNG_LOGLEVEL_JUL_CONFIG
:
199 case LTTNG_LOGLEVEL_JUL_FINE
:
201 case LTTNG_LOGLEVEL_JUL_FINER
:
203 case LTTNG_LOGLEVEL_JUL_FINEST
:
205 case LTTNG_LOGLEVEL_JUL_ALL
:
208 return "<<UNKNOWN>>";
212 static const char *loglevel_string(int value
)
217 case LTTNG_LOGLEVEL_EMERG
:
218 return "TRACE_EMERG";
219 case LTTNG_LOGLEVEL_ALERT
:
220 return "TRACE_ALERT";
221 case LTTNG_LOGLEVEL_CRIT
:
223 case LTTNG_LOGLEVEL_ERR
:
225 case LTTNG_LOGLEVEL_WARNING
:
226 return "TRACE_WARNING";
227 case LTTNG_LOGLEVEL_NOTICE
:
228 return "TRACE_NOTICE";
229 case LTTNG_LOGLEVEL_INFO
:
231 case LTTNG_LOGLEVEL_DEBUG_SYSTEM
:
232 return "TRACE_DEBUG_SYSTEM";
233 case LTTNG_LOGLEVEL_DEBUG_PROGRAM
:
234 return "TRACE_DEBUG_PROGRAM";
235 case LTTNG_LOGLEVEL_DEBUG_PROCESS
:
236 return "TRACE_DEBUG_PROCESS";
237 case LTTNG_LOGLEVEL_DEBUG_MODULE
:
238 return "TRACE_DEBUG_MODULE";
239 case LTTNG_LOGLEVEL_DEBUG_UNIT
:
240 return "TRACE_DEBUG_UNIT";
241 case LTTNG_LOGLEVEL_DEBUG_FUNCTION
:
242 return "TRACE_DEBUG_FUNCTION";
243 case LTTNG_LOGLEVEL_DEBUG_LINE
:
244 return "TRACE_DEBUG_LINE";
245 case LTTNG_LOGLEVEL_DEBUG
:
246 return "TRACE_DEBUG";
248 return "<<UNKNOWN>>";
252 static const char *logleveltype_string(enum lttng_loglevel_type value
)
255 case LTTNG_EVENT_LOGLEVEL_ALL
:
257 case LTTNG_EVENT_LOGLEVEL_RANGE
:
259 case LTTNG_EVENT_LOGLEVEL_SINGLE
:
262 return " <<TYPE UNKN>>";
267 * Pretty print single event.
269 static void print_events(struct lttng_event
*event
)
271 switch (event
->type
) {
272 case LTTNG_EVENT_TRACEPOINT
:
274 if (event
->loglevel
!= -1) {
275 MSG("%s%s (loglevel%s %s (%d)) (type: tracepoint)%s%s%s",
278 logleveltype_string(event
->loglevel_type
),
279 loglevel_string(event
->loglevel
),
281 enabled_string(event
->enabled
),
282 exclusion_string(event
->exclusion
),
283 filter_string(event
->filter
));
285 MSG("%s%s (type: tracepoint)%s%s%s",
288 enabled_string(event
->enabled
),
289 exclusion_string(event
->exclusion
),
290 filter_string(event
->filter
));
294 case LTTNG_EVENT_FUNCTION
:
295 MSG("%s%s (type: function)%s%s", indent6
,
296 event
->name
, enabled_string(event
->enabled
),
297 filter_string(event
->filter
));
298 if (event
->attr
.probe
.addr
!= 0) {
299 MSG("%saddr: 0x%" PRIx64
, indent8
, event
->attr
.probe
.addr
);
301 MSG("%soffset: 0x%" PRIx64
, indent8
, event
->attr
.probe
.offset
);
302 MSG("%ssymbol: %s", indent8
, event
->attr
.probe
.symbol_name
);
305 case LTTNG_EVENT_PROBE
:
306 MSG("%s%s (type: probe)%s%s", indent6
,
307 event
->name
, enabled_string(event
->enabled
),
308 filter_string(event
->filter
));
309 if (event
->attr
.probe
.addr
!= 0) {
310 MSG("%saddr: 0x%" PRIx64
, indent8
, event
->attr
.probe
.addr
);
312 MSG("%soffset: 0x%" PRIx64
, indent8
, event
->attr
.probe
.offset
);
313 MSG("%ssymbol: %s", indent8
, event
->attr
.probe
.symbol_name
);
316 case LTTNG_EVENT_FUNCTION_ENTRY
:
317 MSG("%s%s (type: function)%s%s", indent6
,
318 event
->name
, enabled_string(event
->enabled
),
319 filter_string(event
->filter
));
320 MSG("%ssymbol: \"%s\"", indent8
, event
->attr
.ftrace
.symbol_name
);
322 case LTTNG_EVENT_SYSCALL
:
323 MSG("%ssyscalls (type: syscall)%s%s", indent6
,
324 enabled_string(event
->enabled
),
325 filter_string(event
->filter
));
327 case LTTNG_EVENT_NOOP
:
328 MSG("%s (type: noop)%s%s", indent6
,
329 enabled_string(event
->enabled
),
330 filter_string(event
->filter
));
332 case LTTNG_EVENT_ALL
:
333 /* We should never have "all" events in list. */
339 static const char *field_type(struct lttng_event_field
*field
)
341 switch(field
->type
) {
342 case LTTNG_EVENT_FIELD_INTEGER
:
344 case LTTNG_EVENT_FIELD_ENUM
:
346 case LTTNG_EVENT_FIELD_FLOAT
:
348 case LTTNG_EVENT_FIELD_STRING
:
350 case LTTNG_EVENT_FIELD_OTHER
:
351 default: /* fall-through */
357 * Pretty print single event fields.
359 static void print_event_field(struct lttng_event_field
*field
)
361 if (!field
->field_name
[0]) {
364 MSG("%sfield: %s (%s)%s", indent8
, field
->field_name
,
365 field_type(field
), field
->nowrite
? " [no write]" : "");
368 static int list_jul_events(void)
371 struct lttng_domain domain
;
372 struct lttng_handle
*handle
;
373 struct lttng_event
*event_list
;
375 char *cmdline
= NULL
;
377 DBG("Getting JUL tracing events");
379 memset(&domain
, 0, sizeof(domain
));
380 domain
.type
= LTTNG_DOMAIN_JUL
;
382 handle
= lttng_create_handle(NULL
, &domain
);
383 if (handle
== NULL
) {
387 size
= lttng_list_tracepoints(handle
, &event_list
);
389 ERR("Unable to list JUL events: %s", lttng_strerror(size
));
390 lttng_destroy_handle(handle
);
394 MSG("JUL events (Logger name):\n-------------------------");
400 for (i
= 0; i
< size
; i
++) {
401 if (cur_pid
!= event_list
[i
].pid
) {
402 cur_pid
= event_list
[i
].pid
;
403 cmdline
= get_cmdline_by_pid(cur_pid
);
404 MSG("\nPID: %d - Name: %s", cur_pid
, cmdline
);
407 MSG("%s- %s", indent6
, event_list
[i
].name
);
413 lttng_destroy_handle(handle
);
418 lttng_destroy_handle(handle
);
423 * Ask session daemon for all user space tracepoints available.
425 static int list_ust_events(void)
428 struct lttng_domain domain
;
429 struct lttng_handle
*handle
;
430 struct lttng_event
*event_list
;
432 char *cmdline
= NULL
;
434 memset(&domain
, 0, sizeof(domain
));
436 DBG("Getting UST tracing events");
438 domain
.type
= LTTNG_DOMAIN_UST
;
440 handle
= lttng_create_handle(NULL
, &domain
);
441 if (handle
== NULL
) {
445 size
= lttng_list_tracepoints(handle
, &event_list
);
447 ERR("Unable to list UST events: %s", lttng_strerror(size
));
448 lttng_destroy_handle(handle
);
452 MSG("UST events:\n-------------");
458 for (i
= 0; i
< size
; i
++) {
459 if (cur_pid
!= event_list
[i
].pid
) {
460 cur_pid
= event_list
[i
].pid
;
461 cmdline
= get_cmdline_by_pid(cur_pid
);
462 MSG("\nPID: %d - Name: %s", cur_pid
, cmdline
);
465 print_events(&event_list
[i
]);
471 lttng_destroy_handle(handle
);
476 lttng_destroy_handle(handle
);
481 * Ask session daemon for all user space tracepoint fields available.
483 static int list_ust_event_fields(void)
486 struct lttng_domain domain
;
487 struct lttng_handle
*handle
;
488 struct lttng_event_field
*event_field_list
;
490 char *cmdline
= NULL
;
492 struct lttng_event cur_event
;
494 memset(&domain
, 0, sizeof(domain
));
495 memset(&cur_event
, 0, sizeof(cur_event
));
497 DBG("Getting UST tracing event fields");
499 domain
.type
= LTTNG_DOMAIN_UST
;
501 handle
= lttng_create_handle(NULL
, &domain
);
502 if (handle
== NULL
) {
506 size
= lttng_list_tracepoint_fields(handle
, &event_field_list
);
508 ERR("Unable to list UST event fields: %s", lttng_strerror(size
));
509 lttng_destroy_handle(handle
);
513 MSG("UST events:\n-------------");
519 for (i
= 0; i
< size
; i
++) {
520 if (cur_pid
!= event_field_list
[i
].event
.pid
) {
521 cur_pid
= event_field_list
[i
].event
.pid
;
522 cmdline
= get_cmdline_by_pid(cur_pid
);
523 MSG("\nPID: %d - Name: %s", cur_pid
, cmdline
);
525 /* Wipe current event since we are about to print a new PID. */
526 memset(&cur_event
, 0, sizeof(cur_event
));
528 if (strcmp(cur_event
.name
, event_field_list
[i
].event
.name
) != 0) {
529 print_events(&event_field_list
[i
].event
);
530 memcpy(&cur_event
, &event_field_list
[i
].event
,
533 print_event_field(&event_field_list
[i
]);
538 free(event_field_list
);
539 lttng_destroy_handle(handle
);
544 lttng_destroy_handle(handle
);
549 * Ask for all trace events in the kernel and pretty print them.
551 static int list_kernel_events(void)
554 struct lttng_domain domain
;
555 struct lttng_handle
*handle
;
556 struct lttng_event
*event_list
;
558 memset(&domain
, 0, sizeof(domain
));
560 DBG("Getting kernel tracing events");
562 domain
.type
= LTTNG_DOMAIN_KERNEL
;
564 handle
= lttng_create_handle(NULL
, &domain
);
565 if (handle
== NULL
) {
569 size
= lttng_list_tracepoints(handle
, &event_list
);
571 ERR("Unable to list kernel events: %s", lttng_strerror(size
));
572 lttng_destroy_handle(handle
);
576 MSG("Kernel events:\n-------------");
578 for (i
= 0; i
< size
; i
++) {
579 print_events(&event_list
[i
]);
586 lttng_destroy_handle(handle
);
590 lttng_destroy_handle(handle
);
595 * List JUL events for a specific session using the handle.
597 * Return CMD_SUCCESS on success else a negative value.
599 static int list_session_jul_events(void)
602 struct lttng_event
*events
= NULL
;
604 count
= lttng_list_events(handle
, "", &events
);
607 ERR("%s", lttng_strerror(ret
));
611 MSG("Events (Logger name):\n---------------------");
613 MSG("%sNone\n", indent6
);
617 for (i
= 0; i
< count
; i
++) {
618 MSG("%s- %s%s (loglevel%s %s)", indent4
, events
[i
].name
,
619 enabled_string(events
[i
].enabled
),
620 logleveltype_string(events
[i
].loglevel_type
),
621 loglevel_jul_string(events
[i
].loglevel
));
635 * List events of channel of session and domain.
637 static int list_events(const char *channel_name
)
640 struct lttng_event
*events
= NULL
;
642 count
= lttng_list_events(handle
, channel_name
, &events
);
645 ERR("%s", lttng_strerror(ret
));
649 MSG("\n%sEvents:", indent4
);
651 MSG("%sNone\n", indent6
);
655 for (i
= 0; i
< count
; i
++) {
656 print_events(&events
[i
]);
670 * Pretty print channel
672 static void print_channel(struct lttng_channel
*channel
)
674 MSG("- %s:%s\n", channel
->name
, enabled_string(channel
->enabled
));
676 MSG("%sAttributes:", indent4
);
677 MSG("%soverwrite mode: %d", indent6
, channel
->attr
.overwrite
);
678 MSG("%ssubbufers size: %" PRIu64
, indent6
, channel
->attr
.subbuf_size
);
679 MSG("%snumber of subbufers: %" PRIu64
, indent6
, channel
->attr
.num_subbuf
);
680 MSG("%sswitch timer interval: %u", indent6
, channel
->attr
.switch_timer_interval
);
681 MSG("%sread timer interval: %u", indent6
, channel
->attr
.read_timer_interval
);
682 MSG("%strace file count: %" PRIu64
, indent6
, channel
->attr
.tracefile_count
);
683 MSG("%strace file size (bytes): %" PRIu64
, indent6
, channel
->attr
.tracefile_size
);
684 switch (channel
->attr
.output
) {
685 case LTTNG_EVENT_SPLICE
:
686 MSG("%soutput: splice()", indent6
);
688 case LTTNG_EVENT_MMAP
:
689 MSG("%soutput: mmap()", indent6
);
695 * List channel(s) of session and domain.
697 * If channel_name is NULL, all channels are listed.
699 static int list_channels(const char *channel_name
)
701 int count
, i
, ret
= CMD_SUCCESS
;
702 unsigned int chan_found
= 0;
703 struct lttng_channel
*channels
= NULL
;
705 DBG("Listing channel(s) (%s)", channel_name
? : "<all>");
707 count
= lttng_list_channels(handle
, &channels
);
710 case LTTNG_ERR_KERN_CHAN_NOT_FOUND
:
712 WARN("No kernel channel");
715 /* We had a real error */
717 ERR("%s", lttng_strerror(ret
));
723 if (channel_name
== NULL
) {
724 MSG("Channels:\n-------------");
727 for (i
= 0; i
< count
; i
++) {
728 if (channel_name
!= NULL
) {
729 if (strncmp(channels
[i
].name
, channel_name
, NAME_MAX
) == 0) {
735 print_channel(&channels
[i
]);
737 /* Listing events per channel */
738 ret
= list_events(channels
[i
].name
);
740 ERR("%s", lttng_strerror(ret
));
748 if (!chan_found
&& channel_name
!= NULL
) {
749 ERR("Channel %s not found", channel_name
);
763 * List available tracing session. List only basic information.
765 * If session_name is NULL, all sessions are listed.
767 static int list_sessions(const char *session_name
)
770 unsigned int session_found
= 0;
771 struct lttng_session
*sessions
;
773 count
= lttng_list_sessions(&sessions
);
774 DBG("Session count %d", count
);
777 ERR("%s", lttng_strerror(ret
));
779 } else if (count
== 0) {
780 MSG("Currently no available tracing session");
784 if (session_name
== NULL
) {
785 MSG("Available tracing sessions:");
788 for (i
= 0; i
< count
; i
++) {
789 if (session_name
!= NULL
) {
790 if (strncmp(sessions
[i
].name
, session_name
, NAME_MAX
) == 0) {
792 MSG("Tracing session %s: [%s%s]", session_name
,
793 active_string(sessions
[i
].enabled
),
794 snapshot_string(sessions
[i
].snapshot_mode
));
795 MSG("%sTrace path: %s", indent4
, sessions
[i
].path
);
796 MSG("%sLive timer interval (usec): %u\n", indent4
,
797 sessions
[i
].live_timer_interval
);
801 MSG(" %d) %s (%s) [%s%s]", i
+ 1, sessions
[i
].name
, sessions
[i
].path
,
802 active_string(sessions
[i
].enabled
),
803 snapshot_string(sessions
[i
].snapshot_mode
));
809 if (!session_found
&& session_name
!= NULL
) {
810 ERR("Session '%s' not found", session_name
);
815 if (session_name
== NULL
) {
816 MSG("\nUse lttng list <session_name> for more details");
827 * List available domain(s) for a session.
829 static int list_domains(const char *session_name
)
831 int i
, count
, ret
= CMD_SUCCESS
;
832 struct lttng_domain
*domains
= NULL
;
834 MSG("Domains:\n-------------");
836 count
= lttng_list_domains(session_name
, &domains
);
839 ERR("%s", lttng_strerror(ret
));
841 } else if (count
== 0) {
846 for (i
= 0; i
< count
; i
++) {
847 switch (domains
[i
].type
) {
848 case LTTNG_DOMAIN_KERNEL
:
851 case LTTNG_DOMAIN_UST
:
852 MSG(" - UST global");
854 case LTTNG_DOMAIN_JUL
:
855 MSG(" - JUL (Java Util Logging)");
870 * The 'list <options>' first level command
872 int cmd_list(int argc
, const char **argv
)
874 int opt
, ret
= CMD_SUCCESS
;
875 const char *session_name
;
876 static poptContext pc
;
877 struct lttng_domain domain
;
878 struct lttng_domain
*domains
= NULL
;
880 memset(&domain
, 0, sizeof(domain
));
888 pc
= poptGetContext(NULL
, argc
, argv
, long_options
, 0);
889 poptReadDefaultConfig(pc
, 0);
891 /* TODO: mi support */
893 ret
= -LTTNG_ERR_MI_NOT_IMPLEMENTED
;
894 ERR("mi option not supported");
898 while ((opt
= poptGetNextOpt(pc
)) != -1) {
906 case OPT_LIST_OPTIONS
:
907 list_cmd_options(stdout
, long_options
);
916 /* Get session name (trailing argument) */
917 session_name
= poptGetArg(pc
);
918 DBG2("Session name: %s", session_name
);
921 domain
.type
= LTTNG_DOMAIN_KERNEL
;
922 } else if (opt_userspace
) {
923 DBG2("Listing userspace global domain");
924 domain
.type
= LTTNG_DOMAIN_UST
;
925 } else if (opt_jul
) {
926 DBG2("Listing JUL domain");
927 domain
.type
= LTTNG_DOMAIN_JUL
;
930 if (opt_kernel
|| opt_userspace
|| opt_jul
) {
931 handle
= lttng_create_handle(session_name
, &domain
);
932 if (handle
== NULL
) {
938 if (session_name
== NULL
) {
939 if (!opt_kernel
&& !opt_userspace
&& !opt_jul
) {
940 ret
= list_sessions(NULL
);
946 ret
= list_kernel_events();
954 ret
= list_ust_event_fields();
956 ret
= list_ust_events();
964 ret
= list_jul_events();
971 /* List session attributes */
972 ret
= list_sessions(session_name
);
979 ret
= list_domains(session_name
);
983 if (opt_kernel
|| opt_userspace
) {
984 /* Channel listing */
985 ret
= list_channels(opt_channel
);
992 /* We want all domain(s) */
993 nb_domain
= lttng_list_domains(session_name
, &domains
);
996 ERR("%s", lttng_strerror(ret
));
1000 for (i
= 0; i
< nb_domain
; i
++) {
1001 switch (domains
[i
].type
) {
1002 case LTTNG_DOMAIN_KERNEL
:
1003 MSG("=== Domain: Kernel ===\n");
1005 case LTTNG_DOMAIN_UST
:
1006 MSG("=== Domain: UST global ===\n");
1007 MSG("Buffer type: %s\n",
1008 domains
[i
].buf_type
==
1009 LTTNG_BUFFER_PER_PID
? "per PID" : "per UID");
1011 case LTTNG_DOMAIN_JUL
:
1012 MSG("=== Domain: JUL (Java Util Logging) ===\n");
1015 MSG("=== Domain: Unimplemented ===\n");
1019 /* Clean handle before creating a new one */
1021 lttng_destroy_handle(handle
);
1024 handle
= lttng_create_handle(session_name
, &domains
[i
]);
1025 if (handle
== NULL
) {
1030 if (domains
[i
].type
== LTTNG_DOMAIN_JUL
) {
1031 ret
= list_session_jul_events();
1038 ret
= list_channels(opt_channel
);
1049 lttng_destroy_handle(handle
);
1052 poptFreeContext(pc
);