X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=c08580ac2fc70d076e1ddedbd294a6751f10c76e;hb=d0254c7c0bb43c62abafdf866b16de0da1ad4d5d;hp=bd8cf45a8414e0a450ccc01398804be76c89f6eb;hpb=9f19cc17a942a7089fc209a2527d8b2960c83a00;p=lttng-tools.git diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index bd8cf45a8..c08580ac2 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -51,11 +51,11 @@ * Domain type are the different possible tracers. */ enum lttng_domain_type { - LTTNG_DOMAIN_KERNEL, - LTTNG_DOMAIN_UST, - LTTNG_DOMAIN_UST_EXEC_NAME, - LTTNG_DOMAIN_UST_PID, - LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN, + LTTNG_DOMAIN_KERNEL = 1, + LTTNG_DOMAIN_UST = 2, + LTTNG_DOMAIN_UST_EXEC_NAME = 3, + LTTNG_DOMAIN_UST_PID = 4, + LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN = 5, }; /* @@ -90,6 +90,10 @@ enum lttng_event_context_type { LTTNG_EVENT_CONTEXT_VPPID = 9, }; +enum lttng_calibrate_type { + LTTNG_CALIBRATE_FUNCTION = 0, +}; + struct lttng_domain { enum lttng_domain_type type; union { @@ -167,6 +171,10 @@ struct lttng_channel { struct lttng_channel_attr attr; }; +struct lttng_calibrate { + enum lttng_calibrate_type type; +}; + /* * Basic session information. * @@ -218,7 +226,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 +251,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. @@ -333,10 +342,9 @@ 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. + * Calibrate LTTng overhead. */ -//extern int lttng_list_events(struct lttng_domain *domain, char **event_list); +extern int lttng_calibrate(struct lttng_domain *domain, + struct lttng_calibrate *calibrate); #endif /* _LTTNG_H */