X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fchannel.c;fp=ltt-sessiond%2Fchannel.c;h=10635536c0fbcf5726a666ad9a25ce8d5897752b;hp=350bab6ab5a87b96fc12934d3b88cc4df73eba96;hb=f6cd6b0faf5227d5b4a191ef7e6be84047be9bbd;hpb=917216f6fc1127ff23152e541492d28a6dbce344 diff --git a/ltt-sessiond/channel.c b/ltt-sessiond/channel.c index 350bab6ab..10635536c 100644 --- a/ltt-sessiond/channel.c +++ b/ltt-sessiond/channel.c @@ -30,7 +30,7 @@ /* * Return allocated channel attributes. */ -static struct lttng_channel *init_default_attr(int dom) +struct lttng_channel *channel_new_default_attr(int dom) { struct lttng_channel *chan; @@ -164,7 +164,7 @@ int channel_kernel_create(struct ltt_kernel_session *ksession, /* Creating channel attributes if needed */ if (attr == NULL) { - attr = init_default_attr(LTTNG_DOMAIN_KERNEL); + attr = channel_new_default_attr(LTTNG_DOMAIN_KERNEL); if (attr == NULL) { ret = LTTCOMM_FATAL; goto error; @@ -202,7 +202,7 @@ int channel_ust_create(struct ltt_ust_session *usession, /* Creating channel attributes if needed */ if (attr == NULL) { - attr = init_default_attr(LTTNG_DOMAIN_UST_PID); + attr = channel_new_default_attr(LTTNG_DOMAIN_UST_PID); if (attr == NULL) { ret = LTTCOMM_FATAL; goto error;