Analyzers
Community support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
4826 Discussions

Command-line equivalent of perf script

Nikulichev__Vladimir
260 Views

Is it possible to produce output similar to perf script from a trace collected with Intel PT (with timestamps) in Linux command line?

Example perf commands:

perf record -e intel_pt// ls
perf script --ns

Output:

ls 10068 [001] 385286.629487960: 1 branches: 7fc98ffbcec2 dl_main (/lib/x86_64-linux-gnu/ld-2.27.so) =>     7fc98ffc6090 _dl_new_object (/lib/x86_64-linux-gnu/ld-2.27.so)
ls 10068 [001] 385286.629487960: 1 branches: 7fc98ffc60bc _dl_new_object (/lib/x86_64-linux-gnu/ld-2.27.so) =>     7fc98ffd92f0 strlen (/lib/x86_64-linux-gnu/ld-2.27.so)
ls 10068 [001] 385286.629487960: 1 branches: 7fc98ffd9329 strlen (/lib/x86_64-linux-gnu/ld-2.27.so) =>     7fc98ffc60c1 _dl_new_object (/lib/x86_64-linux-gnu/ld-2.27.so)
ls 10068 [001] 385286.629487960: 1 branches: 7fc98ffc60fc _dl_new_object (/lib/x86_64-linux-gnu/ld-2.27.so) =>     7fc98ffbaec0 calloc@plt (/lib/x86_64-linux-gnu/ld-2.27.so)
ls 10068 [001] 385286.629487960: 1 branches: 7fc98ffbaec0 calloc@plt (/lib/x86_64-linux-gnu/ld-2.27.so) =>     7fc98ffd55e0 calloc (/lib/x86_64-linux-gnu/ld-2.27.so)
ls 10068 [001] 385286.629487960: 1 branches: 7fc98ffd55f5 calloc (/lib/x86_64-linux-gnu/ld-2.27.so) =>     7fc98ffd55fc calloc (/lib/x86_64-linux-gnu/ld-2.27.so)
ls 10068 [001] 385286.629487960: 1 branches: 7fc98ffd55fc calloc (/lib/x86_64-linux-gnu/ld-2.27.so) =>     7fc98ffbaea0 malloc@plt (/lib/x86_64-linux-gnu/ld-2.27.so)
0 Kudos
0 Replies
Reply