lttng_list_sessions does not set the passed pointer to NULL on empty
return. This lead to deallocation of non-allocated memory (segfault).
For returns of size 0, the value of the passed argument should be
considered "undefined".
Refactor error handling a bit by removing the "error" jump. Always c
The load code still use the "old" API to create and configure network
session output (lttng_create_session followed by
lttng_set_consumer_url). The session base_path is only set in the
cmd_create_session_from_descriptor function. This results in invalid
network output path when using a loaded sessi
Signed-off-by: Jonathan Rajotte
---
.../base-path/load-stream-extra-path.lttng| 66 +++
tests/regression/tools/base-path/test_ust | 29 +++-
2 files changed, 92 insertions(+), 3 deletions(-)
create mode 100644
tests/regression/tools/base-path/load-stream-extra-path.l
Signed-off-by: Jonathan Rajotte
---
Feel free to squash this into the previous commit.
---
src/bin/lttng-sessiond/cmd.c | 64 +---
1 file changed, 44 insertions(+), 20 deletions(-)
diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c
index 1d
Signed-off-by: Jonathan Rajotte
---
Feel free to squash this into the previous commits.
---
include/lttng/session-descriptor-internal.h | 4
src/common/session-descriptor.c | 23 -
2 files changed, 27 deletions(-)
diff --git a/include/lttng/session-descrip
No need to use random string for session name here, use the test name.
Signed-off-by: Jonathan Rajotte
---
tests/regression/tools/base-path/test_ust | 36 ++-
1 file changed, 15 insertions(+), 21 deletions(-)
diff --git a/tests/regression/tools/base-path/test_ust
b/tests/re