[lttng-dev] [PATCH] Fix: truncate the metadata file in shm-path

2016-11-28 Thread Liguang Li
o truncate and regenerate the metadata file. Signed-off-by: Liguang Li --- src/bin/lttng-sessiond/cmd.c | 28 1 file changed, 28 insertions(+) diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 325ffd2..ba83226 100644 --- a/src/bin/lttn

Re: [lttng-dev] [PATCH] Fix: truncate the metadata file in shm-path

2016-11-28 Thread Liguang Li
ncate() to truncate and regenerate the metadata file. Signed-off-by: Liguang Li --- src/bin/lttng-sessiond/cmd.c | 28 1 file changed, 28 insertions(+) diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 325ffd2..ba83226 100644 --- a/src

[lttng-dev] Babeltrace bug in lttng-live mode

2017-03-09 Thread Liguang Li
Hi, A babeltrace BUG is found in the lttng-live mode, after analyze the backtrace and the source code, i found this issue maybe a defect of design. The reproduce steps is as following: #cat test.sh #!/bin/sh lttng -n create session --live 100 -U net://localhost/ lttng enable-channel channel

[lttng-dev] [PATCH lttng-ust] Fix: Expand the shmobj size for the sequence number

2017-06-22 Thread Liguang Li
This patch fixes a bug which was introduced by: 1ff31389b ("Generate and export the sequence number") Signed-off-by: Liguang Li --- libringbuffer/ring_buffer_backend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libringbuffer/ring_buffer_backend.c b/lib

[lttng-dev] Babeltrace performance issue in live-reading mode

2017-09-18 Thread liguang li
Hi, Create a session in live-reading mode, run a application which having very high event throughput, then prints the events with babeltrace. We found the live trace viewer are viewing events a few seconds ago, and as time goes on, the delay will be bigger and bigger. I checked the source code, f

Re: [lttng-dev] Babeltrace performance issue in live-reading mode

2017-09-19 Thread liguang li
Hi, On Mon, Sep 18, 2017 at 11:18 PM, Jonathan Rajotte-Julien < jonathan.rajotte-jul...@efficios.com> wrote: > Hi, > > On Mon, Sep 18, 2017 at 11:32:07AM +0800, liguang li wrote: > >Hi, > > > >Create a session in live-reading mode, run a application whic

Re: [lttng-dev] Babeltrace performance issue in live-reading mode

2017-09-20 Thread liguang li
On Tue, Sep 19, 2017 at 10:57 PM, Jonathan Rajotte-Julien < jonathan.rajotte-jul...@efficios.com> wrote: > On Tue, Sep 19, 2017 at 03:53:27PM +0800, liguang li wrote: > >Hi, > >On Mon, Sep 18, 2017 at 11:18 PM, Jonathan Rajotte-Julien > ><[1]jonathan.rajo

[lttng-dev] Missing discarded events message in live-reading mode

2017-09-20 Thread liguang li
Hi, Babeltrace in live mode is not displaying the discarded events message. But on CTF traces the discarded events message will be printed on stderr. Why? Is there any restriction? I added the following patch into the ctf_live_packet_seek() function, and found it works well. Is there any side ef

Re: [lttng-dev] Babeltrace performance issue in live-reading mode

2017-09-21 Thread liguang li
Hi, On Wed, Sep 20, 2017 at 10:58 PM, Jonathan Rajotte Julien < jonathan.rajotte-jul...@efficios.com> wrote: > Hi, > > On 2017-09-20 05:12 AM, liguang li wrote: > > > > > > On Tue, Sep 19, 2017 at 10:57 PM, Jonathan Rajotte-Julien < > jonathan.rajotte-jul..

[lttng-dev] [PATCH lttng-tools] Fix: lttng-consumerd crash due to double free metadata stream

2017-09-27 Thread Liguang Li
When setup metadata failed, the exception handling function will free the metadata stream twice. Signed-off-by: Liguang Li --- src/common/ust-consumer/ust-consumer.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/common/ust-consumer/ust-consumer.c b/src

Re: [lttng-dev] Babeltrace performance issue in live-reading mode

2017-10-11 Thread liguang li
Hi, On Thu, Sep 21, 2017 at 11:03 PM, Jonathan Rajotte Julien < jonathan.rajotte-jul...@efficios.com> wrote: > Hi, > > On 2017-09-21 05:34 AM, liguang li wrote: > > Hi, > > > > On Wed, Sep 20, 2017 at 10:58 PM, Jonathan Rajotte Julien < &g

[lttng-dev] Race condition between lttng destroy and lttng load commands

2018-06-06 Thread liguang li
Hi, I found there is a race condition between lttng destroy and lttng load commands in deleting and creating the shared memory path. lttng -V lttng (LTTng Trace Control) 2.8.6 - Isseki Nicho - v2.8.6 The test commands are as following: 1) lttng create rcs --shm-path=/var/log/lttng/shm 2) lttng