lttng-analyses icon indicating copy to clipboard operation
lttng-analyses copied to clipboard

Can't run LTTng analysis on traced data

Open vecxim opened this issue 5 years ago • 3 comments
trafficstars

I tried using LTTng analysis for tracing and started with the given samples from the manual:

I use ubuntu on a VM and installed all necessary packages. I used the given example to collect the trace data as described within the manual:

lttng-analyses-record

After I recorded some events I tried analysing them:

sudo lttng-cputop lttng-analysis-17045-20200818-174021

When executing this command I will get tons of warnings and an error at the end:

[warning] Unknown value 0 in enum.
[warning] Unknown value 0 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 1569 in enum.
[warning] Unknown value 1569 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
[warning] Unknown value 33 in enum.
Error: Cannot run analysis: 'pid'  

I also tried the same command on the sample trace provided in the manual and it works flawless.

Im really not sure what I am doing wrong here, I also used a clean VM and reinstalled all neccessary packages without success.

vecxim avatar Aug 18 '20 15:08 vecxim

hello, I meet this problem today. After one day test, I finally find that when using Ubuntu, you can not follow the STEP 1, just start form step 2. Hope this will solve your problem too

In general, Just do not do the following three X sudo apt-get install -y software-properties-common X sudo apt-add-repository -y ppa:lttng/ppa X sudo apt-get update

do not !

weijk2533 avatar Sep 07 '21 11:09 weijk2533

That's cause the PPA will give you lttng 2.13+. If you add --debug to the analyze commands you get to the actual error, pid got removed from lttng_statedump_file_descriptor, though it's unclear in which version: https://lwn.net/Articles/816142/, https://lttng.org/docs/v2.13/#doc-whats-new

Trass3r avatar Feb 27 '22 13:02 Trass3r

Adding the following command to the manual tracing steps before running lttng start can work-around this issue:

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

kienanstewart avatar Oct 31 '23 20:10 kienanstewart