Comments (5)
We now know what this issue is and will be working on a fix. LTTngDriver doesn't support LTTng CTF folders (yet) and WPA UI needs a separate fix to interact with this plugin and open folders.
from microsoft-performance-tools-linux-android.
I am new to CTF. I have found from a LTTNG tutorial a sample file https://lttng.org/blog/2018/03/21/lttng-scope-0.3-a-basic-tutorial/ which has a tarball of https://github.com/lttng/lttng-ref-traces/raw/master/traces/basic-kernel-analysis.tar.xz
The trace data generated by lttng is a folder of channel files
To make it ctf it is sufficient to zip the complete folder, rename to ctf and load it in WPA? I have tried that but I get then
Unable to process 'file:///C:/basic-kernel-analysis/kernel.ctf': System.Exception: No events - failure processing .ctf
at PerfCds.PerfSourceParser.ProcessSource(ISourceDataProcessor`3 dataProcessor, ILogger logger, IProgress`1 progress, CancellationToken cancellationToken) in D:\a\1\s\Microsoft-Performance-Tools-Linux\PerfCds\PerfSourceParser.cs:line 132
at Microsoft.Performance.SDK.Runtime.Extensibility.SourceProcessingSession`3.ProcessSource(ILogger logger, IProgress`1 progress, CancellationToken cancellationToken)
at Microsoft.Performance.SDK.Processing.CustomDataProcessorBaseWithSourceParser`3.ProcessAsyncCore(IProgress`1 progress, CancellationToken cancellationToken)
at Microsoft.Performance.SDK.Processing.CustomDataProcessorBase.ProcessAsync(IProgress`1 progress, CancellationToken cancellationToken)
at Microsoft.Performance.SDK.Runtime.CustomDataSourceExecutor.ExecuteAsync(CancellationToken cancellationToken)
Unable to process 'file:///C:/basic-kernel-analysis/kernel.ctf': System.Exception: No events - failure processing .ctf
at LTTngCds.LTTngSourceParser.ProcessSource(ISourceDataProcessor`3 dataProcessor, ILogger logger, IProgress`1 progress, CancellationToken cancellationToken) in D:\a\1\s\Microsoft-Performance-Tools-Linux\LTTngCds\LTTngSourceParser.cs:line 135
at Microsoft.Performance.SDK.Runtime.Extensibility.SourceProcessingSession`3.ProcessSource(ILogger logger, IProgress`1 progress, CancellationToken cancellationToken)
at Microsoft.Performance.SDK.Processing.CustomDataProcessorBaseWithSourceParser`3.ProcessAsyncCore(IProgress`1 progress, CancellationToken cancellationToken)
at Microsoft.Performance.SDK.Processing.CustomDataProcessorBase.ProcessAsync(IProgress`1 progress, CancellationToken cancellationToken)
at Microsoft.Performance.SDK.Runtime.CustomDataSourceExecutor.ExecuteAsync(CancellationToken cancellationToken)
Unable to process any data sources.
I have copied the extensions of your drop to "C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\CustomDataSources\MicrosoftPerfToolkitAddins". WPA comes then up properly.
from microsoft-performance-tools-linux-android.
Hey @Alois-xx I think you were doing the workaround (zip/rename to ctf) the right way, but there does indeed seem to be an issue reading that trace. I can repro as well with the same error you got. We will look into it @ndecarli
I was able to open the Trace with another OSS tool (Trace Compass) so the trace itself looks fine. Maybe you should open another GitHub issue for this specific issue with "No Events"?
I know you were new to LTTng / CTF and trying to open an existing reference trace from the tutorial which we want to work. However, we haven't had any issues (that we know of) opening newer LTTng traces from systems using instructions like these. Perhaps you want to give it a try capturing your own trace as well?
https://github.com/microsoft/Microsoft-Performance-Tools-Linux/blob/develop/LinuxTraceLogCapture.md
P.S. Hopefully in the near term this workaround for this issue will be solved and you can open folders in Microsoft-Performance-Tools-Linux. The SDK changes that support this are almost ready, and then we can consume the SDK update with a fix for this issue #6 opening folders.
from microsoft-performance-tools-linux-android.
@ivberg: Can I record lttng with WSL2 on Windows 10 1909? I am preparing some slides for an internal dev conference where I wanted to show this working at least once on my machine. Or is a VM the only option here?
The post microsoft/WSL#6137 mentions that I need to compile a kernel on my own. Is it really that complicated?
I have compiled a kernel but the instruction to build lttng seem not to be complete.
xx:~/WSL2/WSL2-Linux-Kernel/lttng-modules$ make
make -C /lib/modules/5.4.72-microsoft-standard-WSL2/build M=/home/alois/WSL2/WSL2-Linux-Kernel/lttng-modules CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m modules
make[1]: *** /lib/modules/5.4.72-microsoft-standard-WSL2/build: No such file or directory. Stop.
make: *** [Makefile:111: modules] Error 2
xx:~/WSL2/WSL2-Linux-Kernel/lttng-modules$
I have got lttng running inside a VM and exported data over a SMB Share. That works nicely. And yes WPA can read these LTNG traces without issues.
from microsoft-performance-tools-linux-android.
Yes you should be able to record on WSL2 but you will need to follow the custom compile instructions that you linked. You don't need the compile the whole kernel, just the enough for the module to be linked. Hopefully we can improve this in the future.
The other option is to test in a VM where LTTng is available as a package - https://lttng.org/download/
P.S. This is a separate issue than this thread. I would recommend putting any WSL2 LTTng discussions under that other issue under the WSL2 project.
from microsoft-performance-tools-linux-android.
Related Issues (20)
- LTTngDataExtensions unable to process traces from NET6.0+ project
- Lack of LTTngCds implementation? HOT 1
- Loading perf artifact is not well documented, or not flexible HOT 2
- WPA sometimes fails to load perf data HOT 3
- perf artifact recorded without -a option failed to be loaded HOT 1
- error while load trace with perf HOT 2
- WPA cannot find this plugin even SET WPA_ADDITIONAL_SEARCH_DIRECTORIES HOT 2
- [Feature Request] Add resolved callstacks to Execution Events HOT 3
- [Feature] Perfetto - Support Android 12 CPU Scheduling CallStacks
- [Feature] Perfetto - GPU Counters tables HOT 1
- Linux "perf" traces give a confusing error if the trace is not named "perf.data.txt" HOT 1
- Linux "perf" traces should allow multiple file names, not just "perf.data.txt" HOT 2
- LTTng traces do not show the thread id
- Zooming in the LTTng graph view does not filter the events in the table view
- WPA crashes on data from latest lttng HOT 22
- No Graphs visible HOT 10
- [Feature request] Perfetto - Display browser tab title alongside renderer view HOT 1
- "Open Unified" button not showing HOT 3
- hello HOT 2
- LTTng Parsing Library to Use HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft-performance-tools-linux-android.