X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Frotate-internal.h;h=f5e4dc950b4875ef5e239e2ec497042d34643c59;hb=706714a04a982946177ce2b36e1b3abe3ed5c26f;hp=265148376fa744e493edcd0bd1a57c235957a089;hpb=d68c9a04537b683991a7355b812b0af954008cf1;p=lttng-tools.git diff --git a/include/lttng/rotate-internal.h b/include/lttng/rotate-internal.h index 265148376..f5e4dc950 100644 --- a/include/lttng/rotate-internal.h +++ b/include/lttng/rotate-internal.h @@ -38,6 +38,20 @@ struct lttng_rotation_immediate_attr { uint64_t rotate_id; }; +/* + * Object used as input parameter to the lttng_rotate_schedule API for + * automatic rotations. + * This is opaque to the public library. + */ +struct lttng_rotation_schedule_attr { + /* Session name to rotate. */ + char session_name[LTTNG_NAME_MAX]; + /* > 0 if a timer is set. */ + uint64_t timer_us; + /* > 0 if the session should rotate when it has written that many bytes. */ + uint64_t size; +} LTTNG_PACKED; + /* * Object returned by the rotate session API. * This is opaque to the public library. @@ -83,4 +97,14 @@ struct lttng_session_get_current_output_return { char path[LTTNG_PATH_MAX]; } LTTNG_PACKED; +/* For the LTTNG_ROTATION_SCHEDULE_GET_TIMER_PERIOD command. */ +struct lttng_rotation_schedule_get_timer_period { + uint64_t rotate_timer; +} LTTNG_PACKED; + +/* For the LTTNG_ROTATION_SCHEDULE_GET_SIZE command. */ +struct lttng_rotation_schedule_get_size { + uint64_t rotate_size; +} LTTNG_PACKED; + #endif /* LTTNG_ROTATE_INTERNAL_ABI_H */