[lttng-dev] BUG: lttng-ust enable-event with filter, tracing error

jia,fang fang.jia at windriver.com
Mon Aug 17 06:55:30 EDT 2015


Hi mathieu

Could you help me to inform this issue ??

Thanks a lot.


On 2015年08月14日 14:39, jia,fang wrote:
> Hi,
> 
> Could you help me to inform this issue ?
> 
> I found that if enable-event with filter and then start tracepoint,
> you can not stop your tracing even if you disable your event.
> 
> Do you have this problem ?
> 
> Thanks a lot.
> 
> 
> Here is my detail info:
> 
> My system is Ubuntu14.04, and Lttng-version is lttng version 2.7.0-pre - Gaia -
> v2.6.0-rc1-242-g60f7035.
> 
> I build user application "hello" as
> http://lttng.org/docs/v2.6/#doc-tracing-your-own-user-application told. And
> modify part of the hello.c as follow:
> for(;;)
> {
> sleep(2);
> for (x = 0; x < argc; ++x) {
>         tracepoint(hello_world, my_first_tracepoint, x, argv[x]);
>     }
> }
> 
> Then I do this:
> 1/ lttng create mysession
> 2/ lttng enable-event hello_world:my_first_tracepoint --filter '$ctx.procname ==
> "./hello*"' --session mysession -u -c channel
> 
> 3/ lttng enable-event hello_world:my_first_tracepoint --session mysession -u -c
> channel
> 
> 4/ ./hello
> I press Enter to start tracepoint
> 
> 5/ lttng disable-event --session mysession --channel channel --userspace
> hello_world:my_first_tracepoint
> 
> 6/ lttng start
> 
> 7/ lttng stop
> 
> 8/ lttng view
> 
> My detail log is as attachment
> 
> 
> 
> BR,
> Fang
> 
> 



More information about the lttng-dev mailing list