projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sessiond-comm: prefix lttcomm_sessiond_command entries
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
rotate.cpp
diff --git
a/src/lib/lttng-ctl/rotate.cpp
b/src/lib/lttng-ctl/rotate.cpp
index 106b8fb489947be591f31e6e44ab863f815ee9d3..240b8c9ad3ffc5769e12382812c90dd9e8f3cf81 100644
(file)
--- a/
src/lib/lttng-ctl/rotate.cpp
+++ b/
src/lib/lttng-ctl/rotate.cpp
@@
-33,7
+33,7
@@
enum lttng_rotation_status ask_rotation_info(
}
memset(&lsm, 0, sizeof(lsm));
}
memset(&lsm, 0, sizeof(lsm));
- lsm.cmd_type = LTT
NG
_ROTATION_GET_INFO;
+ lsm.cmd_type = LTT
COMM_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,
lsm.u.get_rotation_info.rotation_id = rotation_handle->rotation_id;
ret = lttng_strncpy(lsm.session.name, rotation_handle->session_name,
@@
-217,7
+217,7
@@
int lttng_rotate_session(const char *session_name,
}
memset(&lsm, 0, sizeof(lsm));
}
memset(&lsm, 0, sizeof(lsm));
- lsm.cmd_type = LTT
NG
_ROTATE_SESSION;
+ lsm.cmd_type = LTT
COMM_SESSIOND_COMMAND
_ROTATE_SESSION;
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
@@
-283,7
+283,7
@@
enum lttng_rotation_status lttng_rotation_update_schedule(
}
memset(&lsm, 0, sizeof(lsm));
}
memset(&lsm, 0, sizeof(lsm));
- lsm.cmd_type = LTT
NG
_ROTATION_SET_SCHEDULE;
+ lsm.cmd_type = LTT
COMM_SESSIOND_COMMAND
_ROTATION_SET_SCHEDULE;
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
/* Source length already validated. */
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
/* Source length already validated. */
@@
-376,7
+376,7
@@
int get_schedules(const char *session_name,
}
memset(&lsm, 0, sizeof(lsm));
}
memset(&lsm, 0, sizeof(lsm));
- lsm.cmd_type = LTT
NG
_SESSION_LIST_ROTATION_SCHEDULES;
+ lsm.cmd_type = LTT
COMM_SESSIOND_COMMAND
_SESSION_LIST_ROTATION_SCHEDULES;
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
if (ret) {
ret = lttng_strncpy(lsm.session.name, session_name,
sizeof(lsm.session.name));
if (ret) {
@@
-487,9
+487,8
@@
lttng_rotation_schedule_size_threshold_get_threshold(
goto end;
}
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 {
if (size_schedule->size.set) {
*size_threshold_bytes = size_schedule->size.bytes;
} else {
@@
-515,9
+514,8
@@
lttng_rotation_schedule_size_threshold_set_threshold(
goto end;
}
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:
size_schedule->size.bytes = size_threshold_bytes;
size_schedule->size.set = true;
end:
@@
-553,9
+551,8
@@
lttng_rotation_schedule_periodic_get_period(
goto 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 {
if (periodic_schedule->period.set) {
*period_us = periodic_schedule->period.us;
} else {
@@
-580,9
+577,8
@@
lttng_rotation_schedule_periodic_set_period(
goto 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);
periodic_schedule->period.us = period_us;
periodic_schedule->period.set = true;
end:
periodic_schedule->period.us = period_us;
periodic_schedule->period.set = true;
end:
This page took
0.025937 seconds
and
4
git commands to generate.