X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libtracectl%2Ftracectl.c;h=2101d5c4c3725e8de547fbf815237cbff988a3b3;hb=0ce2af7f6372336d520847b4745da781344ba743;hp=1edd1948ca7f4c73a90d8702842e3066cb88749c;hpb=f20de35f1c38dbf27ea37f083e3ec94b70c14e56;p=lttng-ust.git diff --git a/libtracectl/tracectl.c b/libtracectl/tracectl.c index 1edd1948..2101d5c4 100644 --- a/libtracectl/tracectl.c +++ b/libtracectl/tracectl.c @@ -312,12 +312,15 @@ int listener_main(void *p) for(i=0; inr_channels; i++) { struct rchan *rchan = trace->channels[i].trans_channel_data; struct rchan_buf *rbuf = rchan->buf; + struct ltt_channel_struct *ltt_channel = (struct ltt_channel_struct *)rchan->private_data; + struct ltt_channel_buf_struct *ltt_buf = ltt_channel->buf; if(!strcmp(trace->channels[i].channel_name, channel_name)) { char *reply; DBG("the shmid for the requested channel is %d", rbuf->shmid); - asprintf(&reply, "%d", rbuf->shmid); + DBG("the shmid for its buffer structure is %d", ltt_channel->buf_shmid); + asprintf(&reply, "%d %d", rbuf->shmid, ltt_channel->buf_shmid); result = ustcomm_send_reply(&ustcomm_app.server, reply, &src); if(result) {