projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't remove the config directory on destroy
[lttng-tools.git]
/
ltt-sessiond
/
trace.c
diff --git
a/ltt-sessiond/trace.c
b/ltt-sessiond/trace.c
index 297d04f29484087ad36c693f75f13c8db625d19b..f59c96f3f7c40f06596052dc415ee6051ae4a7b2 100644
(file)
--- a/
ltt-sessiond/trace.c
+++ b/
ltt-sessiond/trace.c
@@
-119,7
+119,7
@@
error:
*
* Return pointer to structure or NULL.
*/
*
* Return pointer to structure or NULL.
*/
-struct ltt_kernel_channel *trace_create_kernel_channel(struct lttng_channel *chan)
+struct ltt_kernel_channel *trace_create_kernel_channel(struct lttng_channel *chan
, char *path
)
{
int ret;
struct ltt_kernel_channel *lkc;
{
int ret;
struct ltt_kernel_channel *lkc;
@@
-144,7
+144,7
@@
struct ltt_kernel_channel *trace_create_kernel_channel(struct lttng_channel *cha
CDS_INIT_LIST_HEAD(&lkc->events_list.head);
CDS_INIT_LIST_HEAD(&lkc->stream_list.head);
/* Set default trace output path */
CDS_INIT_LIST_HEAD(&lkc->events_list.head);
CDS_INIT_LIST_HEAD(&lkc->stream_list.head);
/* Set default trace output path */
- ret = asprintf(&lkc->pathname, "%s",
DEFAULT_TRACE_OUTPUT
);
+ ret = asprintf(&lkc->pathname, "%s",
path
);
if (ret < 0) {
perror("asprintf kernel create channel");
goto error;
if (ret < 0) {
perror("asprintf kernel create channel");
goto error;
This page took
0.023104 seconds
and
4
git commands to generate.