All of lore.kernel.org
 help / color / mirror / Atom feed
* [lttng-dev] lttng-analysis error
@ 2023-10-31 11:44 姜涛 Tao(AD) via lttng-dev
  2023-10-31 19:36 ` Kienan Stewart via lttng-dev
  0 siblings, 1 reply; 3+ messages in thread
From: 姜涛 Tao(AD) via lttng-dev @ 2023-10-31 11:44 UTC (permalink / raw)
  To: lttng-dev


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

Hi everyone, I use lttng-analysis tools to parse the trace files but get error as below:
[cid:image001.png@01DA0C2F.792A9140]
[cid:image002.png@01DA0C2F.8B2FE8E0]
[cid:image003.png@01DA0C2F.942D8BA0]

I try two methods to catch the trace data: “automatic” using lttng-analysis-record and “manual” using lttng create/enable-event/start/stop/destroy, but always get the errors when using lttng-analysis tools(0.6.0 and 0.6.1 version).
I load the lttng modules(2.12.14 version) successfully:
[cid:image004.png@01DA0C30.DE034250]

[文本  描述已自?生成]
The environment is as below: Ubuntu20.04 aarch64, kernel version: 5.10.120 rt patch.
Any help will be appreciated! Thanks!
免?声明:本?件所包含信息??指定个人或机?,?件可能包含保密或?属信息。未?接收者?可,不得??、??或?播?件内容,或根据?件内容采取任何相?行?。如果??地收到了此?件,?与收件人?系并自行?除?件内容。 Disclaimer:The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error , please contact the sender and delete the material from any computer.

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

[-- Attachment #1.2: image001.png --]
[-- Type: image/png, Size: 52794 bytes --]

[-- Attachment #1.3: image002.png --]
[-- Type: image/png, Size: 46789 bytes --]

[-- Attachment #1.4: image003.png --]
[-- Type: image/png, Size: 62777 bytes --]

[-- Attachment #1.5: image004.png --]
[-- Type: image/png, Size: 74021 bytes --]

[-- Attachment #1.6: image005.png --]
[-- Type: image/png, Size: 353306 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] 3+ messages in thread

* Re: [lttng-dev] lttng-analysis error
  2023-10-31 11:44 [lttng-dev] lttng-analysis error 姜涛 Tao(AD) via lttng-dev
@ 2023-10-31 19:36 ` Kienan Stewart via lttng-dev
       [not found]   ` <ZQ0PR01MB1062F47CF4B19FF30D81FAFD97A7A@ZQ0PR01MB1062.CHNPR01.prod.partner.outlook.cn>
  0 siblings, 1 reply; 3+ messages in thread
From: Kienan Stewart via lttng-dev @ 2023-10-31 19:36 UTC (permalink / raw)
  To: 姜涛 Tao(AD), lttng-dev

Hi Tao,

based on a quick test I performed, there may be a work-around that will 
work for you.

The issue that I see is that at least the 
`lttng_statedump_file_descriptor` events no longer have a pid field 
which the older lttng-analyses code assumes is present.

To find this out
When running the manual recording steps, could you add the following 
command before running `lttng start`:

```
lttng add-context --kernel --type=pid
```

To pinpoint the source of the error, I used the `--debug` parameter for 
`lttng-analyses` as follows:

```
# lttng-schedtop --debug 
lttng-traces/lttng-analysis-27010-20231031-182735/
Checking the trace for lost events... 

Traceback (most recent call last): 
                            ] ETA:  --:--:--
   File 
"/usr/local/lib/python3.7/dist-packages/lttnganalyses/cli/command.py", 
line 73, in _run_step
     fn() 

   File 
"/usr/local/lib/python3.7/dist-packages/lttnganalyses/cli/command.py", 
line 365, in _run_analysis
     self._automaton.process_event(event) 

   File 
"/usr/local/lib/python3.7/dist-packages/lttnganalyses/linuxautomaton/automaton.py", 
line 81, in process_event
     sp.process_event(ev)
   File 
"/usr/local/lib/python3.7/dist-packages/lttnganalyses/linuxautomaton/sp.py", 
line 33, in process_event
     self._cbs[name](ev) 

   File 
"/usr/local/lib/python3.7/dist-packages/lttnganalyses/linuxautomaton/statedump.py", 
line 91, in _process_lttng_statedump_file_descriptor
     pid = event['pid']
   File 
"/usr/local/lib/python3.7/dist-packages/babeltrace/babeltrace.py", line 
912, in __getitem__
     raise KeyError(field_name) 

KeyError: 'pid' 

Error: Cannot run analysis: 'pid'
```

thanks,
kienan

On 2023-10-31 07:44, 姜涛 Tao(AD) via lttng-dev wrote:
> Hi everyone, I use lttng-analysis tools to parse the trace files but get 
> error as below:
> 
> I try two methods to catch the trace data: “automatic” using 
> lttng-analysis-record and “manual” using lttng 
> create/enable-event/start/stop/destroy, but always get the errors when 
> using lttng-analysis tools(0.6.0 and 0.6.1 version).
> 
> I load the lttng modules(2.12.14 version) successfully:
> 
> 文本 描述已自动生成
> 
> The environment is as below: Ubuntu20.04 aarch64, kernel version: 
> 5.10.120 rt patch.
> 
> Any help will be appreciated! Thanks!
> 
> 免责声明:本邮件所包含信息发给指定个人或机构,邮件可能包含保密或专属信 
> 息。未经接收者许可,不得阅读、转发或传播邮件内容,或根据邮件内容采取任何 
> 相关行动。如果错误地收到了此邮件,请与收件人联系并自行删除邮件内容。 
> Disclaimer:The information transmitted is intended only for the person 
> or entity to which it is addressed and may contain confidential and/or 
> privileged material. Any review, retransmission, dissemination or other 
> use of, or taking of any action in reliance upon, this information by 
> persons or entities other than the intended recipient is prohibited. If 
> you received this in error , please contact the sender and delete the 
> material from any computer.
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: [lttng-dev]  答复:  lttng-analysis error
       [not found]   ` <ZQ0PR01MB1062F47CF4B19FF30D81FAFD97A7A@ZQ0PR01MB1062.CHNPR01.prod.partner.outlook.cn>
@ 2023-11-01 15:11     ` Kienan Stewart via lttng-dev
  0 siblings, 0 replies; 3+ messages in thread
From: Kienan Stewart via lttng-dev @ 2023-11-01 15:11 UTC (permalink / raw)
  To: 姜涛 Tao(AD), lttng-dev

Hi Tao,

could you keep lttng-dev@lists.lttng.org in CC: on replies in the future?

On 2023-10-31 23:39, 姜涛 Tao(AD) wrote:
> Hi Kienan,
> 
> Thank you very much! It works! By the way,  which version of 
> lttng-analysis could handle the ‘pid’ error?
> 

There's no version of lttng-analyses available that includes a fix or 
work-around by default.

The project is experimental and isn't currently being maintained. If 
your employer is interested in supporting either this project or others 
please don't hesitate to reach out to EfficiOS.

thanks,
kienan

> *发件人**:*Kienan Stewart <kstewart@efficios.com>
> *日期**:*星期三, 2023年11月1日03:36
> *收件人**:*姜涛Tao(AD) <tao.jiang@jiduauto.com>, 
> lttng-dev@lists.lttng.org <lttng-dev@lists.lttng.org>
> *主题**:*Re: [lttng-dev] lttng-analysis error
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

end of thread, other threads:[~2023-11-01 15:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-31 11:44 [lttng-dev] lttng-analysis error 姜涛 Tao(AD) via lttng-dev
2023-10-31 19:36 ` Kienan Stewart via lttng-dev
     [not found]   ` <ZQ0PR01MB1062F47CF4B19FF30D81FAFD97A7A@ZQ0PR01MB1062.CHNPR01.prod.partner.outlook.cn>
2023-11-01 15:11     ` [lttng-dev] 答复: " Kienan Stewart via lttng-dev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.