X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=liblttngctl%2Fliblttngctl.c;h=d8230c618170a15219a96e9e5776d437d17a17af;hp=31edc982ea8ca07f57f5b2a39ab3cc31bc6e5965;hb=2ef84c95c5158ce40e77229fb5705524ff22be7b;hpb=33cb613d0d0e9238591566ce7b86868f9976c597 diff --git a/liblttngctl/liblttngctl.c b/liblttngctl/liblttngctl.c index 31edc982e..d8230c618 100644 --- a/liblttngctl/liblttngctl.c +++ b/liblttngctl/liblttngctl.c @@ -290,6 +290,19 @@ int lttng_kernel_create_stream(void) return ask_sessiond(KERNEL_CREATE_STREAM, NULL); } +/* + * lttng_kernel_list_events + * + * List all available events in the kernel. + * + * Return the size (bytes) of the list and set the event_list array. + * On error, return negative value. + */ +int lttng_kernel_list_events(char **event_list) +{ + return ask_sessiond(KERNEL_LIST_EVENTS, (void **) event_list); +} + /* * lttng_kernel_start_tracing *