[lttng-dev] 回复: 回复: some tracepoints not exist in metadata?

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed Jul 1 08:07:20 EDT 2020


Hi, 

Make sure you use single quotes in your shell around wildcards, else the 
shell will try to expand them to files in the current directory, e.g., you need to do: 

lttng enable-event -u 'system_event*' -c channel0 -s misc_data 

This could very well explain why sometimes your events don't get enabled: if the 
wildcard matches files in the current directory. 

Thanks, 

Mathieu 

----- On Jun 30, 2020, at 11:56 PM, zhenyu.ren <zhenyu.ren at aliyun.com> wrote: 

> Ah, I have to say that I use the wildcard in tracepoint name when enable-event
> to the channel, i.e. ./lttng enable-event -u system_event* -c channel0 -s
> misc_data. Of course, there are the other tracepoints with wildcard succeed in
> registring.

>> ------------------------------------------------------------------
>> 发件人:zhenyu.ren via lttng-dev <lttng-dev at lists.lttng.org>
>> 发送时间:2020年7月1日(星期三) 11:44
>> 收件人:lttng-dev <lttng-dev at lists.lttng.org>; mathieu.desnoyers
>> <mathieu.desnoyers at efficios.com>
>> 主 题:[lttng-dev] 回复: some tracepoints not exist in metadata?

>> I'd like to add that both "lttng list -u" and "lttng list $session_name" can get
>> those tracepoints' names...
>> ------------------------------------------------------------------
>> 发件人:zhenyu.ren via lttng-dev <lttng-dev at lists.lttng.org>
>> 发送时间:2020年7月1日(星期三) 11:05
>> 收件人:lttng-dev <lttng-dev at lists.lttng.org>; mathieu.desnoyers
>> <mathieu.desnoyers at efficios.com>
>> 主 题:[lttng-dev] some tracepoints not exist in metadata?

>> Hi,
>> I find sometimes there are some tracepoints not exist in metadata file(but they
>> are in the list of lttng list -u) and the end result is they can NOT be logged.
>> I can not always reproduce it. It bothered me for 2 days.
>> The lttng version is 2.7, I know it is not the latest version but there are some
>> reasons I can't update it. So, is this a known bug? If yes, It will be very
>> appreciated if you can give me any advice about the bug info(I can cherry pick
>> the correspond fix). Otherwise, maybe I have to give up my favoriate Lttng....

>> Thank you in advance!
>> zhenyu.ren

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20200701/df329399/attachment-0001.htm>


More information about the lttng-dev mailing list