X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=89f9db3d3e5c8b70a24e913b187f0bbcd81e5e9a;hp=bd8cf45a8414e0a450ccc01398804be76c89f6eb;hb=2a71efd5ae4e4bc9fe52154782d4a0a8f867d55a;hpb=4b2221858653255be812d5a4e55c2ec05ec1819e diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index bd8cf45a8..89f9db3d3 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -218,7 +218,7 @@ extern int lttng_destroy_session(const char *name); extern int lttng_list_sessions(struct lttng_session **sessions); /* - * List registered domain(s) of the session. + * List registered domain(s) of a session. * * Return the size of the "lttng_domain" array. Caller must free(3). */ @@ -243,11 +243,12 @@ extern int lttng_list_events(struct lttng_domain *domain, struct lttng_event **events); /* - * List available kernel tracing events + * List available tracepoints of domain. * * Return the size of the "lttng_event" array. Caller must free(3). */ -extern int lttng_list_kernel_events(struct lttng_event **events); +extern int lttng_list_tracepoints(struct lttng_domain *domain, + struct lttng_event **events); /* * Check if a session daemon is alive. @@ -332,11 +333,4 @@ extern int lttng_disable_event(struct lttng_domain *domain, const char *name, extern int lttng_disable_channel(struct lttng_domain *domain, const char *name); -/* - * List kernel events. - * - * Return the size of the allocated event list. Caller must free(3) the data. - */ -//extern int lttng_list_events(struct lttng_domain *domain, char **event_list); - #endif /* _LTTNG_H */