enum lttng_error_code ret_code;
struct notification_thread_command cmd = {};
- assert(trigger);
+ LTTNG_ASSERT(trigger);
init_notification_thread_command(&cmd);
cmd.type = NOTIFICATION_COMMAND_TYPE_REGISTER_TRIGGER;
enum lttng_error_code ret_code;
struct notification_thread_command cmd = {};
- assert(tracer_event_source_fd >= 0);
+ LTTNG_ASSERT(tracer_event_source_fd >= 0);
init_notification_thread_command(&cmd);
enum lttng_error_code ret_code;
struct notification_thread_command cmd = {};
- assert(handle);
- assert(triggers);
+ LTTNG_ASSERT(handle);
+ LTTNG_ASSERT(triggers);
init_notification_thread_command(&cmd);
cmd.type = NOTIFICATION_COMMAND_TYPE_QUIT;
ret = run_command_wait(handle, &cmd);
- assert(!ret && cmd.reply_code == LTTNG_OK);
+ LTTNG_ASSERT(!ret && cmd.reply_code == LTTNG_OK);
}
int notification_thread_client_communication_update(
/*
* Takes ownership of the payload if present.
*/
-LTTNG_HIDDEN
struct lttng_event_notifier_notification *lttng_event_notifier_notification_create(
uint64_t tracer_token,
enum lttng_domain_type domain,
{
struct lttng_event_notifier_notification *notification = NULL;
- assert(domain != LTTNG_DOMAIN_NONE);
- assert((payload && payload_size) || (!payload && !payload_size));
+ LTTNG_ASSERT(domain != LTTNG_DOMAIN_NONE);
+ LTTNG_ASSERT((payload && payload_size) || (!payload && !payload_size));
notification = zmalloc(sizeof(struct lttng_event_notifier_notification));
if (notification == NULL) {
- ERR("[notification-thread] Error allocating notification");
+ ERR("Error allocating notification");
goto end;
}
return notification;
}
-LTTNG_HIDDEN
void lttng_event_notifier_notification_destroy(
struct lttng_event_notifier_notification *notification)
{