X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Flttng%2Flttng.h;h=2088864d254e9cb16b42ab31649ebf4603a1db81;hb=93ec662e687dc15a3601704a1e0c96c51ad228c9;hp=944675206bff11e6e3edb49d6cc416f8dd465ca6;hpb=ad6edca4fddcb0cde4e65512ec5619c4d7e1a45e;p=lttng-tools.git diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index 944675206..2088864d2 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -43,6 +43,11 @@ enum lttng_calibrate_type { LTTNG_CALIBRATE_FUNCTION = 0, }; +/* Machine interface output type */ +enum lttng_mi_output_type { + LTTNG_MI_XML = 1 /* XML output */ +}; + #define LTTNG_CALIBRATE_PADDING1 16 struct lttng_calibrate { enum lttng_calibrate_type type; @@ -154,6 +159,14 @@ extern int lttng_set_consumer_url(struct lttng_handle *handle, */ extern int lttng_data_pending(const char *session_name); +/* + * Trigger the regeneration of the metadata for a session. + * The new metadata overwrite the previous one locally or remotely (through + * the lttng-relayd). Only kernel, per-uid and non-live sessions are supported. + * Return 0 on success, a negative LTTng error code on error. + */ +extern int lttng_metadata_regenerate(const char *session_name); + #ifdef __cplusplus } #endif