X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=c08580ac2fc70d076e1ddedbd294a6751f10c76e;hp=eb34a73490615593ce8b7a4a0b0c0b82bd5ed0fe;hb=d0254c7c0bb43c62abafdf866b16de0da1ad4d5d;hpb=d2abc4ee14cc1bb86ffa6cd024f18a671de8a32c diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index eb34a7349..c08580ac2 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -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. * @@ -333,4 +341,10 @@ extern int lttng_disable_event(struct lttng_domain *domain, const char *name, extern int lttng_disable_channel(struct lttng_domain *domain, const char *name); +/* + * Calibrate LTTng overhead. + */ +extern int lttng_calibrate(struct lttng_domain *domain, + struct lttng_calibrate *calibrate); + #endif /* _LTTNG_H */