Skip to content

Commit 278b8c2

Browse files
authored
Perf - Remove support for perf.data as converted CTF files and rename appropriately (#119)
* Perf - Remove support for perf.data as CTF files and rename appropiately. CTF (LTTng format) support never worked that well (like cpu sample stacks) and relied on conversion that was very niche. Perf would have to be optionally compiled with this conversion support and is quite rare. This will be replaced by native support of perf.data binary format in a future PR
1 parent 95e7700 commit 278b8c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+10
-2966
lines changed

LinuxTraceLogCapture.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -154,23 +154,6 @@ $ sudo perf report --header-only -i perf_cpu.data | grep "captured on"
154154

155155
Place the "captured on" timestamp for example "Thu Oct 17 15:37:36 2019" in a timestamp.txt file next to the trace folder. The timestamp will be interpreted as UTC
156156

157-
### Convert to CTF (Optional) (requires CTF enabled perf)
158-
We have optional support for perf CTF conversion. It it currently NOT RECOMMENDED to use this though as you get less features (like KM/UM stacks) than perf.data.txt support which resolves callstacks on the box.
159-
This only supports KM symbols (for now) supplied by kallsyms. Microsoft-Linux-Perf-Tools support for the perf CTF trace is experimental given lack of UM symbols
160-
161-
```bash
162-
$ perf data convert -i perf_cpu.data --all --to-ctf ./perf_cpu.data-ctf
163-
```
164-
165-
You will need the perf file in converted CTF format which you can do with a custom compiled perf (unless some distro compiled the support in). [Custom build instructions here](https://stackoverflow.com/questions/43576997/building-perf-with-babeltrace-for-perf-to-ctf-conversion)
166-
167-
## Save Kernel Symbols (Optional) (for use with CTF enabled perf)
168-
This is only needed for a perf CTF trace
169-
170-
```bash
171-
$ sudo cat /proc/kallsyms > kallsyms
172-
```
173-
174157
# Transferring the files to Windows UI (optional)
175158
You then need to transfer the perf files to a Windows box where WPA runs. The most important file is perf.data.txt
176159

@@ -180,12 +163,10 @@ $ sudo chmod 777 -R perf*
180163

181164
- Copy files from Linux to Windows box with WinSCP/SCP OR
182165
```bash
183-
$ tar -czvf perf_cpu-ctf.tar.gz perf*
166+
$ tar -czvf perf_cpu.tar.gz perf*
184167
```
185168
- (Optional if you want absolute timestamps) Place timestamp.txt next to perf.data.txt
186169
- Open perf.data.txt with WPA
187-
- For the perf CTF file (optional) On Windows, Zip the folder up and rename to .ctf extension. E.g. perf_cpu-ctf.ctf (which is really a .zip file)
188-
- CTF (Optional) Kallsyms needs to be on your Desktop
189170

190171

191172
# Presentations

Microsoft-Perf-Tools-Linux-Android.sln

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LTTngDataExtensions", "LTTn
1111
EndProject
1212
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CtfUnitTest", "CtfUnitTest\CtfUnitTest.csproj", "{FC2236A8-FBE7-43BC-86A1-CBC364DFDF91}"
1313
EndProject
14-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PerfCds", "PerfCds\PerfCds.csproj", "{DF90DB4D-93B8-498F-8DA9-557495BBFCB6}"
15-
EndProject
16-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PerfDataExtensions", "PerfDataExtensions\PerfDataExtensions.csproj", "{B381F72E-335C-4842-9DB2-615D5C18A943}"
14+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PerfDataTxtExtension", "PerfDataTxtExtension\PerfDataTxtExtension.csproj", "{B381F72E-335C-4842-9DB2-615D5C18A943}"
1715
EndProject
1816
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "LinuxLogParsers", "LinuxLogParsers", "{9B2D4167-1CC7-4D8B-A01C-E9919E809A0A}"
1917
EndProject
@@ -97,10 +95,6 @@ Global
9795
{FC2236A8-FBE7-43BC-86A1-CBC364DFDF91}.Debug|Any CPU.Build.0 = Debug|Any CPU
9896
{FC2236A8-FBE7-43BC-86A1-CBC364DFDF91}.Release|Any CPU.ActiveCfg = Release|Any CPU
9997
{FC2236A8-FBE7-43BC-86A1-CBC364DFDF91}.Release|Any CPU.Build.0 = Release|Any CPU
100-
{DF90DB4D-93B8-498F-8DA9-557495BBFCB6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
101-
{DF90DB4D-93B8-498F-8DA9-557495BBFCB6}.Debug|Any CPU.Build.0 = Debug|Any CPU
102-
{DF90DB4D-93B8-498F-8DA9-557495BBFCB6}.Release|Any CPU.ActiveCfg = Release|Any CPU
103-
{DF90DB4D-93B8-498F-8DA9-557495BBFCB6}.Release|Any CPU.Build.0 = Release|Any CPU
10498
{B381F72E-335C-4842-9DB2-615D5C18A943}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
10599
{B381F72E-335C-4842-9DB2-615D5C18A943}.Debug|Any CPU.Build.0 = Debug|Any CPU
106100
{B381F72E-335C-4842-9DB2-615D5C18A943}.Release|Any CPU.ActiveCfg = Release|Any CPU

PerfCds/CookerData/ICursor.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

PerfCds/CookerData/PerfConstants.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

PerfCds/CookerData/PerfContext.cs

Lines changed: 0 additions & 67 deletions
This file was deleted.

PerfCds/CookerData/PerfEvent.cs

Lines changed: 0 additions & 106 deletions
This file was deleted.

PerfCds/CtfExtensions/DescriptorInterfaces/IEventDescriptor.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)