X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fkernel-ctl.c;h=02b01414a4f76296cb4a9b97a2fd7661dbe9aab7;hp=95463aa50fc96c6d6dfc67b8837fc08daa507dbf;hb=8e68d1c8b15ef989f1abac8a241827013a5d4623;hpb=7d452e122923ade6f4dc7a6e21bef105851d79e3 diff --git a/ltt-sessiond/kernel-ctl.c b/ltt-sessiond/kernel-ctl.c index 95463aa50..02b01414a 100644 --- a/ltt-sessiond/kernel-ctl.c +++ b/ltt-sessiond/kernel-ctl.c @@ -491,8 +491,8 @@ int kernel_open_channel_stream(struct ltt_kernel_channel *channel) perror("fcntl session fd"); } - ret = asprintf(&lks->pathname, "%s/trace_%d", - channel->pathname, channel->stream_count); + ret = asprintf(&lks->pathname, "%s/%s_%d", + channel->pathname, channel->channel->name, channel->stream_count); if (ret < 0) { perror("asprintf kernel create stream"); goto error;