lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: 杨海 <hai.yang@magic-shield.com>
To: "Mathieu Desnoyers" <mathieu.desnoyers@efficios.com>
Cc: lttng-dev <lttng-dev@lists.lttng.org>
Subject: Re: 回复:Re:  documentation about CTF event payload
Date: Mon, 2 Dec 2019 10:16:20 +0800	[thread overview]
Message-ID: <tencent_064EB5153B4327BB6159CD04__18349.3812613719$1575253486$gmane$org@qq.com> (raw)
In-Reply-To: <733360507.225.1574779654690.JavaMail.zimbra@efficios.com>


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

Thanks&nbsp;Mathieu. If I understand correctly, lttng-modules output necessary information as&nbsp;lttng_statedump_file_descriptor, and it is a part of CTF. But when babeltrace parse CTF, it does not process those information.
lttng-analyses is post-processing python scripts while babeltrace is realtime C parser.
If we decide to extend babeltrace to support the filename-fd mapping like iolog functionality in lttng-analyses, any recommendation?


Regards
Hai
&nbsp;

------------------&nbsp;Original&nbsp;------------------
From: &nbsp;"Mathieu Desnoyers"<mathieu.desnoyers@efficios.com&gt;;
Date: &nbsp;Tue, Nov 26, 2019 10:47 PM
To: &nbsp;"杨海"<hai.yang@magic-shield.com&gt;; 
Cc: &nbsp;"lttng-dev"<lttng-dev@lists.lttng.org&gt;; "Matthew Khouzam"<matthew.khouzam@ericsson.com&gt;; "Geneviève Bastien"<gbastien@versatic.net&gt;; 
Subject: &nbsp;Re: 回复:Re: [lttng-dev] documentation about CTF event payload

&nbsp;

Hi,



(adding back lttng-dev in CC for the benefit of others)



Whenever possible, we try to augment the trace data with such additional

information at post-processing, because capturing it at run-time repeatedly ends
up being costly.



The lttng-analyses project contains state tracker which augment the trace data

with mapping from file descriptor to corresponding file names (see lttnganalyses/linuxautomaton/io.py).
I'm not sure if the Trace Compass project models this mapping between file descriptors and their

associated file, but if not, it would be an *extremely* useful addition.



lttng-modules already dumps the information needed to create that model:



- lttng_statedump_file_descriptor dumps all existing file descriptors for all processes,

- a few system calls (open, dup, dup2, dup3, close, clone(see CLONE_FILES flag), fork,
fcntl(cmd==F_DUPFD)) allow tracking the file descriptor table state changes during the trace.


Thanks,


Mathieu







----- On Nov 25, 2019, at 7:36 PM, 杨海 <hai.yang@magic-shield.com&gt; wrote:

Hi Mathieu

Thanks for quick response. Here let me give an example. For syscalls open, LTTng output filename in entry_open and output fd as ret in exit_open. It would be desired to output both filename and fd so we can correlate them. 
I am not sure whether there is a configuration that we can have the richest output regarding to syscalls. 
If not, we can modify lttng-modules to output what we need. Or any other recommendation?

Regards
Hai 

----------

该邮件从移动设备发送





--------------原始邮件--------------
发件人:"Mathieu Desnoyers "<mathieu.desnoyers@efficios.com&gt;;
发送时间:2019年11月20日(星期三) 晚上10:32
收件人:"杨海" <hai.yang@magic-shield.com&gt;;
抄送:"lttng-dev "<lttng-dev@lists.lttng.org&gt;;
主题:Re: [lttng-dev] documentation about CTF event payload
-----------------------------------

 For the system call payload documentation, you might want to refer to the Linux system call

man pages.


For internal kernel tracepoints like sched_switch, there is no documentation of the meaning of

each field at the moment. This state is the same as the upstream Linux kernel trace event. You'll
have to figure it out on your own. Documenting each field of the ~500-1000 Linux kernel tracepoints
is no small task.


Thanks,


Mathieu


----- On Nov 19, 2019, at 9:25 PM, 杨海 <hai.yang@magic-shield.com&gt; wrote:

To be more specific, I suppose we can refer to instrumentation\syscalls\3.10.0-rc7\x86-64-syscalls-3.10.0-rc7 for the payload format of syscall event. Is it exactly in the CTF syscall event?

Regards
Hai
&nbsp;
------------------ Original ------------------
From: &nbsp;"杨海"<hai.yang@magic-shield.com&gt;;
Date: &nbsp;Mon, Nov 18, 2019 09:54 AM
To: &nbsp;"lttng-dev"<lttng-dev@lists.lttng.org&gt;; 
Subject: &nbsp;documentation about CTF event payload

&nbsp;
Hi

As LTTng generated CTF and babeltrace parse it, we have the output as attached. We saw events such as sched_switch, but the payload cannot be understood easily. Where we can find the document to explain the LTTng payload and parameters?

Regards
Hai




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


-- 

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

 





-- 

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

[-- Attachment #1.2: Type: text/html, Size: 9657 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

  parent reply	other threads:[~2019-12-02  2:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tencent_5F6B34D931D7AD241AA8EF79@qq.com>
2019-11-26 14:47 ` 回复:Re: documentation about CTF event payload Mathieu Desnoyers
     [not found] ` <733360507.225.1574779654690.JavaMail.zimbra@efficios.com>
2019-12-02  2:16   ` 杨海 [this message]
2020-01-16  6:21   ` Any tips to retrieve the relationship between socket-related processes 杨海

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='tencent_064EB5153B4327BB6159CD04__18349.3812613719$1575253486$gmane$org@qq.com' \
    --to=hai.yang@magic-shield.com \
    --cc=lttng-dev@lists.lttng.org \
    --cc=mathieu.desnoyers@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).