projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused header file
[lttng-tools.git]
/
ltt-sessiond
/
trace.c
diff --git
a/ltt-sessiond/trace.c
b/ltt-sessiond/trace.c
index 297d04f29484087ad36c693f75f13c8db625d19b..25276696a87bcb3ba5300d98a161ae37b66e7153 100644
(file)
--- a/
ltt-sessiond/trace.c
+++ b/
ltt-sessiond/trace.c
@@
-24,7
+24,6
@@
#include <urcu/list.h>
#include "lttngerr.h"
#include <urcu/list.h>
#include "lttngerr.h"
-#include "ltt-sessiond.h"
#include "trace.h"
/*
#include "trace.h"
/*
@@
-119,7
+118,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
+143,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;
@@
-217,7
+216,7
@@
error:
*
* Return pointer to structure or NULL.
*/
*
* Return pointer to structure or NULL.
*/
-struct ltt_kernel_metadata *trace_create_kernel_metadata(
void
)
+struct ltt_kernel_metadata *trace_create_kernel_metadata(
char *path
)
{
int ret;
struct ltt_kernel_metadata *lkm;
{
int ret;
struct ltt_kernel_metadata *lkm;
@@
-242,7
+241,7
@@
struct ltt_kernel_metadata *trace_create_kernel_metadata(void)
lkm->fd = 0;
lkm->conf = chan;
/* Set default metadata path */
lkm->fd = 0;
lkm->conf = chan;
/* Set default metadata path */
- ret = asprintf(&lkm->pathname, "%s/metadata",
DEFAULT_TRACE_OUTPUT
);
+ ret = asprintf(&lkm->pathname, "%s/metadata",
path
);
if (ret < 0) {
perror("asprintf kernel metadata");
goto error;
if (ret < 0) {
perror("asprintf kernel metadata");
goto error;
This page took
0.023586 seconds
and
4
git commands to generate.