projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rotation-api: pass session name explicitly
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
enable_rotation.c
diff --git
a/src/bin/lttng/commands/enable_rotation.c
b/src/bin/lttng/commands/enable_rotation.c
index 42aa45017d9b29b0eda022ccb5ace06b72399abf..81a55b24c8aaec4810cec9ce54bcbc1621d1a6ea 100644
(file)
--- a/
src/bin/lttng/commands/enable_rotation.c
+++ b/
src/bin/lttng/commands/enable_rotation.c
@@
-69,11
+69,6
@@
static int setup_rotate(char *session_name, uint64_t timer, uint64_t size)
goto error;
}
goto error;
}
- ret = lttng_rotation_schedule_attr_set_session_name(attr, session_name);
- if (ret < 0) {
- goto error;
- }
-
if (lttng_opt_mi) {
/* Open rotation_schedule element */
ret = mi_lttng_writer_open_element(writer,
if (lttng_opt_mi) {
/* Open rotation_schedule element */
ret = mi_lttng_writer_open_element(writer,
@@
-114,7
+109,7
@@
static int setup_rotate(char *session_name, uint64_t timer, uint64_t size)
}
}
}
}
- ret = lttng_rotation_set_schedule(attr);
+ ret = lttng_rotation_set_schedule(
session_name,
attr);
if (ret) {
ERR("%s", lttng_strerror(ret));
if (lttng_opt_mi) {
if (ret) {
ERR("%s", lttng_strerror(ret));
if (lttng_opt_mi) {
This page took
0.025202 seconds
and
4
git commands to generate.