lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] How to use the lttng-untrack command
@ 2020-09-01  9:13 熊毓华 via lttng-dev
  2020-09-01 13:37 ` Mathieu Desnoyers via lttng-dev
  0 siblings, 1 reply; 4+ messages in thread
From: 熊毓华 via lttng-dev @ 2020-09-01  9:13 UTC (permalink / raw)
  To: lttng-dev, mathieu.desnoyers, gbastien


[-- Attachment #1.1.1: Type: text/plain, Size: 1191 bytes --]

Hi,dear




Hello, I have encountered some problems in using LTTNG, which is briefly described as follows. I am eager to get your help.


About the use of the untrack command.It is reproduced as follows:

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)




lttng create my-kernel-session --output=/tmp/my-kernel-trace
lttng add-context -k -t pid
lttng add-context -k -t tid
lttng enable-event --kernel --all
lttng untrack --kernel --pid=72598
lttng start
lttng destroy
babeltrace2 /tmp/my-kernel-trace > babeltrace.txt




Unfortunately, the output still contains the data for PID72598.
Even after I changed "lttng untrack --kernel -- PID =72598" to "LTTNG untrack-u -- PID =72598", this phenomenon still occurred.

How do I use the lttng-untrack command to achieve my goal?




Looking forward to your reply.
thanks,
yuhua

------------------
Yuhua Xiong
Lab for Internet and Security Technology
School of Computer Science and Technology
Zhejiang University
Hangzhou, 310007, P.R. China


[-- Attachment #1.1.2: Type: text/html, Size: 1769 bytes --]

[-- Attachment #1.2: 1598951079297.png --]
[-- Type: image/png, Size: 228995 bytes --]

[-- Attachment #1.3: 1598951286057.png --]
[-- Type: image/png, Size: 382880 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lttng-dev] How to use the lttng-untrack command
  2020-09-01  9:13 [lttng-dev] How to use the lttng-untrack command 熊毓华 via lttng-dev
@ 2020-09-01 13:37 ` Mathieu Desnoyers via lttng-dev
  2020-09-03  2:53   ` 熊毓华 via lttng-dev
  0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2020-09-01 13:37 UTC (permalink / raw)
  To: 熊毓华; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 2022 bytes --]

----- On Sep 1, 2020, at 5:13 AM, 熊毓华 <xiongyuhua@zju.edu.cn> wrote: 

> Hi,dear

> Hello, I have encountered some problems in using LTTNG, which is briefly
> described as follows. I am eager to get your help.

> About the use of the untrack command.It is reproduced as follows:

> 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)

>     1. lttng create my-kernel-session --output=/tmp/my-kernel-trace
>     2. lttng add-context -k -t pid
>     3. lttng add-context -k -t tid
>     4. lttng enable-event --kernel --all
>     5. lttng untrack --kernel --pid=72598
>     6. lttng start
>     7. lttng destroy
>     8. babeltrace2 /tmp/my-kernel-trace > babeltrace.txt

> Unfortunately, the output still contains the data for PID72598.
> Even after I changed "lttng untrack --kernel -- PID =72598" to "LTTNG untrack-u
> -- PID =72598", this phenomenon still occurred.

> How do I use the lttng-untrack command to achieve my goal?
Based on the lttng-track(1) man page: 

The lttng track commands adds one or more values to a process attribute 
tracker. 

A process attribute tracker is an inclusion set of process attributes. 
Tracked processes are allowed to emit events, provided those events are 
targeted by enabled event rules (see lttng-enable-event(1)). 

Tracker values can be removed from an inclusion set with lttng- 
untrack(1). 

What you are looking for is a an "exclusion set", which does not exist at this point 
in LTTng. 

Thanks, 

Mathieu 

> Looking forward to your reply.
> thanks,
> yuhua

> ------------------
> Yuhua Xiong
> Lab for Internet and Security Technology
> School of Computer Science and Technology
> Zhejiang University
> Hangzhou, 310007, P.R. China

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 

[-- Attachment #1.2.1: Type: text/html, Size: 3911 bytes --]

[-- Attachment #1.2.2: 1598951079297.png --]
[-- Type: image/png, Size: 228995 bytes --]

[-- Attachment #1.2.3: 1598951286057.png --]
[-- Type: image/png, Size: 382880 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lttng-dev] How to use the lttng-untrack command
  2020-09-01 13:37 ` Mathieu Desnoyers via lttng-dev
@ 2020-09-03  2:53   ` 熊毓华 via lttng-dev
  2020-09-03 14:17     ` Mathieu Desnoyers via lttng-dev
  0 siblings, 1 reply; 4+ messages in thread
From: 熊毓华 via lttng-dev @ 2020-09-03  2:53 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: lttng-dev


[-- Attachment #1.1.1: Type: text/plain, Size: 2361 bytes --]

Thanks,now I understand the tracking policy of lttng.

And I want to know,do you have any plans for "exclusion set"?



-----原始邮件-----
发件人:"Mathieu Desnoyers" <mathieu.desnoyers@efficios.com>
发送时间:2020-09-01 21:37:40 (星期二)
收件人: "熊毓华" <xiongyuhua@zju.edu.cn>
抄送: lttng-dev <lttng-dev@lists.lttng.org>, "Geneviève Bastien" <gbastien@versatic.net>
主题: Re: How to use the lttng-untrack command




----- On Sep 1, 2020, at 5:13 AM, 熊毓华 <xiongyuhua@zju.edu.cn> wrote:


Hi,dear




Hello, I have encountered some problems in using LTTNG, which is briefly described as follows. I am eager to get your help.


About the use of the untrack command.It is reproduced as follows:

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)




lttng create my-kernel-session --output=/tmp/my-kernel-trace
lttng add-context -k -t pid
lttng add-context -k -t tid
lttng enable-event --kernel --all
lttng untrack --kernel --pid=72598
lttng start
lttng destroy
babeltrace2 /tmp/my-kernel-trace > babeltrace.txt




Unfortunately, the output still contains the data for PID72598.
Even after I changed "lttng untrack --kernel -- PID =72598" to "LTTNG untrack-u -- PID =72598", this phenomenon still occurred.

How do I use the lttng-untrack command to achieve my goal?



Based on the lttng-track(1) man page:



       The lttng track commands adds one or more values to a process attribute
       tracker.

       A process attribute tracker is an inclusion set of process attributes.
       Tracked processes are allowed to emit events, provided those events are
       targeted by enabled event rules (see lttng-enable-event(1)).

       Tracker values can be removed from an inclusion set with lttng-
       untrack(1).


What you are looking for is a an "exclusion set", which does not exist at this point

in LTTng.



Thanks,



Mathieu









Looking forward to your reply.
thanks,
yuhua

------------------
Yuhua Xiong
Lab for Internet and Security Technology
School of Computer Science and Technology
Zhejiang University
Hangzhou, 310007, P.R. China







--

Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

[-- Attachment #1.1.2: Type: text/html, Size: 5090 bytes --]

[-- Attachment #1.2: 1598951079297.png --]
[-- Type: image/png, Size: 228995 bytes --]

[-- Attachment #1.3: 1598951286057.png --]
[-- Type: image/png, Size: 382880 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lttng-dev] How to use the lttng-untrack command
  2020-09-03  2:53   ` 熊毓华 via lttng-dev
@ 2020-09-03 14:17     ` Mathieu Desnoyers via lttng-dev
  0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2020-09-03 14:17 UTC (permalink / raw)
  To: 熊毓华; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 387 bytes --]

----- On Sep 2, 2020, at 10:53 PM, 熊毓华 <xiongyuhua@zju.edu.cn> wrote: 

> Thanks,now I understand the tracking policy of lttng.

> And I want to know,do you have any plans for "exclusion set"?
Not at this point. None of our customers expressed interest in that feature so far. 

Thanks, 

Mathieu 

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 

[-- Attachment #1.2: Type: text/html, Size: 1326 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-03 14:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-01  9:13 [lttng-dev] How to use the lttng-untrack command 熊毓华 via lttng-dev
2020-09-01 13:37 ` Mathieu Desnoyers via lttng-dev
2020-09-03  2:53   ` 熊毓华 via lttng-dev
2020-09-03 14:17     ` Mathieu Desnoyers via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).