Unable to run Perfcollector .NET 8 core
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 19h 10m
- Merged PRs (30d)
- 268
Description
### Type of issue
Missing information
### Description
To enable the perf collector on K8 Linux container, on Linux VM (in AKS Linux Gen05 nodes) for .NET Core 8, we followed the following steps (following this guide https://learn.microsoft.com/en-us/dotnet/core/diagnostics/trace-perfcollect-lttng) still we are getting following error.
Running "/usr/bin/lttng add-context --kernel -t pid -t procname"
Error: pid: Kernel tracer not available
Error: procname: Kernel tracer not available
Here are the steps for reference:
1 curl -OL https://aka.ms/perfcollect
2 apt updat
3 apt update
4 apt install curl
5 curl -OL https://aka.ms/perfcollect
6 chmod +x perfcollect
7 sudo ./perfcollect install
8 dotnet tool install --global dotnet-symbol
9 mkdir mySymbolsNet8
10 ~/.dotnet/tools/dotnet-symbol --output ./mySymbolsNet8/ /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.0/lib*.so
11 cp ./mySymbolsNet8/* /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.0/
12 apt-get install linux-tools-5.15.0-1041-azure -y
13 cp /usr/lib/linux-tools/5.15.0-1041-azure/perf /usr/bin/perf
14 ps -ef | grep -i dotnet
15 export DOTNET_EnableWriteXorExecute=0
16 sudo ./perfcollect collect a -pid 166
[perfcollector.log](https://github.com/dotnet/docs/files/13817098/perfcollector.log)
Please provide us the missing/updated steps
### Page URL
https://learn.microsoft.com/en-us/dotnet/core/diagnostics/trace-perfcollect-lttng
### Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/diagnostics/trace-perfcollect-lttng.md
### Document Version Independent Id
ac6cc555-a033-766d-0597-bd9bda98820f
### Article author
@tommcdon
### Metadata
* ID: 7dd230f8-907f-5f07-e3ab-7ad37fee3aa4
* Product: **dotnet-fundamentals**
Contributor guide
Assessment
This issue has not been assessed yet.