<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi,<br></div><div><br data-mce-bogus="1"></div><div>Make sure you use single quotes in your shell around wildcards, else the<br data-mce-bogus="1"></div><div>shell will try to expand them to files in the current directory, e.g., you need to do:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>lttng enable-event -u 'system_event*' -c channel0 -s misc_data<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>This could very well explain why sometimes your events don't get enabled: if the<br data-mce-bogus="1"></div><div>wildcard matches files in the current directory.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu</div><div><br data-mce-bogus="1"></div><div><span id="zwchr" data-marker="__DIVIDER__">----- On Jun 30, 2020, at 11:56 PM, zhenyu.ren <zhenyu.ren@aliyun.com> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div class="__aliyun_email_body_block"><div><span style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">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.</span></div><blockquote style="margin-right:0;margin-top:0;margin-bottom:0"><div><span style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">------------------------------------------------------------------</span></div><div><span style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">发件人:zhenyu.ren via lttng-dev <lttng-dev@lists.lttng.org></span></div><div><span style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">发送时间:2020年7月1日(星期三) 11:44</span></div><div><span style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">收件人:lttng-dev <lttng-dev@lists.lttng.org>; mathieu.desnoyers <mathieu.desnoyers@efficios.com></span></div><div><span style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">主 题:[lttng-dev] 回复: some tracepoints not exist in metadata?</span></div><div><span style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000"><br></span></div><div><font face="Tahoma, Arial, STHeiti, SimSun" color="#000000">I'd like to add that </font><span class=" __aliyun_node_has_color" style="color:#000000;font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun'">both "lttng list -u" and "lttng list $session_name" can get those tracepoints' names... </span></div><div><span class=" __aliyun_node_has_color" style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">------------------------------------------------------------------</span></div><div><span class=" __aliyun_node_has_color" style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">发件人:zhenyu.ren via lttng-dev <lttng-dev@lists.lttng.org></span></div><div><span class=" __aliyun_node_has_color" style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">发送时间:2020年7月1日(星期三) 11:05</span></div><div><span class=" __aliyun_node_has_color" style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">收件人:lttng-dev <lttng-dev@lists.lttng.org>; mathieu.desnoyers <mathieu.desnoyers@efficios.com></span></div><div><span class=" __aliyun_node_has_color" style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">主 题:[lttng-dev] some tracepoints not exist in metadata?</span></div><div><span class=" __aliyun_node_has_color" style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000"><br></span></div><div><span class=" __aliyun_node_has_color __aliyun_node_has_color" style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000">Hi,</span></div><div><span class=" __aliyun_node_has_color __aliyun_node_has_color" style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000"> 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. </span></div><div><span class=" __aliyun_node_has_color __aliyun_node_has_color" style="font-family:'tahoma' , 'arial' , 'stheiti' , 'simsun';font-size:14px;color:#000000"></span> 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....</div><br><div>Thank you in advance!</div><div>zhenyu.ren</div></blockquote></div><br></blockquote></div><div><br></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>