Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Can't run LTTng analysis on traced data #92

Open
vecxim opened this issue Aug 18, 2020 · 3 comments
Open

Can't run LTTng analysis on traced data #92

vecxim opened this issue Aug 18, 2020 · 3 comments

Comments

@vecxim
Copy link

vecxim commented Aug 18, 2020

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.

@weijk2533
Copy link

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 !

@Trass3r
Copy link

Trass3r commented Feb 27, 2022

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

@kienanstewart
Copy link
Contributor

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants