11#include <lttng/domain.h>
12#include <lttng/lttng-error.h>
13#include <lttng/lttng-export.h>
143 const char *channel_name,
145 uint64_t older_than_us,
lttng_reclaim_channel_memory_status
Return type of lttng_reclaim_channel_memory().
Definition reclaim.h:38
enum lttng_reclaim_handle_status lttng_reclaim_handle_get_reclaimed_subbuffer_count(const struct lttng_reclaim_handle *handle, uint64_t *count)
Sets *count to the total number of sub-buffers successfully reclaimed by the channel memory reclaim o...
enum lttng_reclaim_handle_status lttng_reclaim_handle_get_pending_subbuffer_count(const struct lttng_reclaim_handle *handle, uint64_t *count)
Sets *count to the total number of sub-buffers pending reclamation from the channel memory reclaim op...
void lttng_reclaim_handle_destroy(struct lttng_reclaim_handle *handle)
Destroys the channel memory reclaim operation handle handle.
enum lttng_reclaim_channel_memory_status lttng_reclaim_channel_memory(const char *session_name, const char *channel_name, enum lttng_domain_type domain, uint64_t older_than_us, struct lttng_reclaim_handle **handle)
Initiates an immediate memory reclaim operation for the channel named channel_name within the recordi...
enum lttng_reclaim_handle_status lttng_reclaim_handle_wait_for_completion(struct lttng_reclaim_handle *handle, int timeout_ms)
Waits for the channel memory reclaim operation identified by handle to complete.
lttng_reclaim_handle_status
Return type of channel memory reclaim handle functions.
Definition reclaim.h:67
@ LTTNG_RECLAIM_CHANNEL_MEMORY_STATUS_RECLAMATION_IN_PROGRESS
A memory reclamation request is already in progress for this channel.
Definition reclaim.h:49
@ LTTNG_RECLAIM_CHANNEL_MEMORY_STATUS_NOT_SUPPORTED
Memory reclamation is not supported for this channel.
Definition reclaim.h:52
@ LTTNG_RECLAIM_CHANNEL_MEMORY_STATUS_INVALID_PARAMETER
Unsatisfied precondition.
Definition reclaim.h:46
@ LTTNG_RECLAIM_CHANNEL_MEMORY_STATUS_ERROR
Error.
Definition reclaim.h:43
@ LTTNG_RECLAIM_CHANNEL_MEMORY_STATUS_OK
Success.
Definition reclaim.h:40
@ LTTNG_RECLAIM_CHANNEL_MEMORY_STATUS_CHANNEL_NOT_FOUND
Channel not found.
Definition reclaim.h:58
@ LTTNG_RECLAIM_CHANNEL_MEMORY_STATUS_SESSION_NOT_FOUND
Session not found.
Definition reclaim.h:55
@ LTTNG_RECLAIM_HANDLE_STATUS_INVALID
Unsatisfied precondition.
Definition reclaim.h:78
@ LTTNG_RECLAIM_HANDLE_STATUS_ERROR
Other error.
Definition reclaim.h:81
@ LTTNG_RECLAIM_HANDLE_STATUS_COMPLETED
Reclamation operation completed.
Definition reclaim.h:72
@ LTTNG_RECLAIM_HANDLE_STATUS_TIMEOUT
Timeout reached.
Definition reclaim.h:75
@ LTTNG_RECLAIM_HANDLE_STATUS_OK
Success.
Definition reclaim.h:69
lttng_domain_type
Tracing domain type (tracer type).
Definition domain.h:27
Channel memory reclaim operation handle (opaque type).