<p>
Thanks,now I understand the tracking policy of lttng.
</p>
<p>
And I want to know,do you have any plans for "exclusion set"?
</p>
<br>
<br>
<blockquote name="replyContent" class="ReferenceQuote" style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px solid;margin-right:0;">
-----原始邮件-----<br>
<b>发件人:</b><span id="rc_from">"Mathieu Desnoyers" <mathieu.desnoyers@efficios.com></span><br>
<b>发送时间:</b><span id="rc_senttime">2020-09-01 21:37:40 (星期二)</span><br>
<b>收件人:</b> "熊毓华" <xiongyuhua@zju.edu.cn><br>
<b>抄送:</b> lttng-dev <lttng-dev@lists.lttng.org>, "Geneviève Bastien" <gbastien@versatic.net><br>
<b>主题:</b> Re: How to use the lttng-untrack command<br>
<br>
<div style="font-family:arial, helvetica, sans-serif;font-size:12pt;color:#000000;">
<div>
<br data-mce-bogus="1">
</div>
<div>
<span id="zwchr" data-marker="__DIVIDER__">----- On Sep 1, 2020, at 5:13 AM, 熊毓华 <xiongyuhua@zju.edu.cn> 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;">
<p>
Hi,dear
</p>
<p>
<br>
</p>
<p>
Hello, I have encountered some problems in using LTTNG, which is briefly described as follows. I am eager to get your help.
</p>
<p>
<br>
About the use of the untrack command.It is reproduced as follows:
</p>
<p>
I type the following commands in turn to start LTTNG, and set up not to monitor a particular process.(For example, I input the "top" command in the terminal, the PID of the "top" process is 72598, now I want LTTNG not to monitor the "top" process)
</p>
<p>
<br>
</p>
<ol>
<li>
lttng create my-kernel-session --output=/tmp/my-kernel-trace
</li>
<li>
lttng add-context -k -t pid
</li>
<li>
<span style="white-space:normal;">lttng add-context -k -t tid</span>
</li>
<li>
lttng enable-event --kernel --all
</li>
<li>
lttng untrack --kernel --pid=72598
</li>
<li>
lttng start
</li>
<li>
lttng destroy
</li>
<li>
babeltrace2 /tmp/my-kernel-trace > babeltrace.txt
</li>
</ol>
<p>
<br>
</p>
<p>
Unfortunately, the output still contains the data for PID72598.<br>
Even after I changed "lttng untrack --kernel -- PID =72598" to "LTTNG untrack-u -- PID =72598", this phenomenon still occurred.<br>
<br>
How do I use the lttng-untrack command to achieve my goal?
</p>
</blockquote>
<div>
<br>
</div>
<div>
Based on the lttng-track(1) man page:<br data-mce-bogus="1">
</div>
<div>
<br data-mce-bogus="1">
</div>
<div>
The lttng track commands adds one or more values to a process attribute<br>
tracker.<br>
<br>
A process attribute tracker is an inclusion set of process attributes.<br>
Tracked processes are allowed to emit events, provided those events are<br>
targeted by enabled event rules (see lttng-enable-event(1)).<br>
<br>
Tracker values can be removed from an inclusion set with lttng-<br>
untrack(1).<br>
<br data-mce-bogus="1">
</div>
<div>
What you are looking for is a an "exclusion set", which does not exist at this point<br data-mce-bogus="1">
</div>
<div>
in LTTng.<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<br data-mce-bogus="1">
</div>
<div>
<br data-mce-bogus="1">
</div>
<div>
<br data-mce-bogus="1">
</div>
<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;">
<p>
<br>
</p>
<p>
Looking forward to your reply.<br>
thanks,<br>
yuhua
</p>
<p>
------------------<br>
Yuhua Xiong<br>
Lab for Internet and Security Technology<br>
School of Computer Science and Technology<br>
Zhejiang University<br>
Hangzhou, 310007, P.R. China<br>
<br>
<img src="cid:523c35b7$1$17451e15b0e$Coremail$xiongyuhua$zju.edu.cn" title="" alt="" width="1600" height="824" align=""><img src="cid:2660dba$2$17451e15b0e$Coremail$xiongyuhua$zju.edu.cn" title="" alt="" width="1600" height="820" align="">
</p>
<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>
</blockquote>