X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Flttng.h;fp=include%2Flttng%2Flttng.h;h=404a80117d50188f4d48491c7e65324862197087;hp=929ce014e10b752f133c87589ff492bfb27e7efd;hb=49cddecdbb1e042877ca3855b177ade68151030f;hpb=c1896e2d809e0d32d2d9b8a840755de6d5d70eaf diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index 929ce014e..404a80117 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -53,6 +53,7 @@ #include #include #include +#include #include #include #include @@ -194,6 +195,13 @@ lttng_set_consumer_url(struct lttng_handle *handle, const char *control_url, con */ LTTNG_EXPORT extern int lttng_data_pending(const char *session_name); +/* + * Gets the status of the kernel tracer. + * + * Sets the value of the argument, which must not be null. + */ +LTTNG_EXPORT extern enum lttng_error_code lttng_get_kernel_tracer_status(enum lttng_kernel_tracer_status *status); + /* * Deprecated, replaced by lttng_regenerate_metadata. */