}
memset(&lsm, 0, sizeof(lsm));
- lsm.cmd_type = LTTNG_ROTATION_GET_INFO;
+ lsm.cmd_type = LTTCOMM_SESSIOND_COMMAND_ROTATION_GET_INFO;
lsm.u.get_rotation_info.rotation_id = rotation_handle->rotation_id;
ret = lttng_strncpy(lsm.session.name, rotation_handle->session_name,
}
memset(&lsm, 0, sizeof(lsm));
- lsm.cmd_type = LTTNG_ROTATE_SESSION;
+ lsm.cmd_type = LTTCOMM_SESSIOND_COMMAND_ROTATE_SESSION;
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
}
memset(&lsm, 0, sizeof(lsm));
- lsm.cmd_type = LTTNG_ROTATION_SET_SCHEDULE;
+ lsm.cmd_type = LTTCOMM_SESSIOND_COMMAND_ROTATION_SET_SCHEDULE;
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
/* Source length already validated. */
}
memset(&lsm, 0, sizeof(lsm));
- lsm.cmd_type = LTTNG_SESSION_LIST_ROTATION_SCHEDULES;
+ lsm.cmd_type = LTTCOMM_SESSIOND_COMMAND_SESSION_LIST_ROTATION_SCHEDULES;
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
if (ret) {
goto end;
}
- size_schedule = container_of(schedule,
- struct lttng_rotation_schedule_size_threshold,
- parent);
+ size_schedule = lttng::utils::container_of(schedule,
+ <tng_rotation_schedule_size_threshold::parent);
if (size_schedule->size.set) {
*size_threshold_bytes = size_schedule->size.bytes;
} else {
goto end;
}
- size_schedule = container_of(schedule,
- struct lttng_rotation_schedule_size_threshold,
- parent);
+ size_schedule = lttng::utils::container_of(schedule,
+ <tng_rotation_schedule_size_threshold::parent);
size_schedule->size.bytes = size_threshold_bytes;
size_schedule->size.set = true;
end:
goto end;
}
- periodic_schedule = container_of(schedule,
- struct lttng_rotation_schedule_periodic,
- parent);
+ periodic_schedule = lttng::utils::container_of(schedule,
+ <tng_rotation_schedule_periodic::parent);
if (periodic_schedule->period.set) {
*period_us = periodic_schedule->period.us;
} else {
goto end;
}
- periodic_schedule = container_of(schedule,
- struct lttng_rotation_schedule_periodic,
- parent);
+ periodic_schedule = lttng::utils::container_of(schedule,
+ <tng_rotation_schedule_periodic::parent);
periodic_schedule->period.us = period_us;
periodic_schedule->period.set = true;
end: