Public bug reported: The Linux perf tool has many useful scripts in the tools/perf/scripts/ directory tree. A normal installation of perf includes them:
$ perf script -l List of available trace scripts: rwtop [interval] system-wide r/w top rw-by-file <comm> r/w activity for a program, by file rw-by-pid system-wide r/w activity wakeup-latency system-wide min/max/avg wakeup latency failed-syscalls [comm] system-wide failed syscalls powerpc-hcalls syscall-counts [comm] system-wide syscall counts event_analyzing_sample analyze all perf samples failed-syscalls-by-pid [comm] system-wide failed syscalls, by pid mem-phys-addr resolve physical address samples export-to-postgresql [database name] [columns] [calls] export perf data to a postgresql database sctop [comm] [interval] syscall top compaction-times [-h] [-u] [-p|-pv] [-t | [-m] [-fs] [-ms]] [pid|pid-range|comm-regex] display time taken by mm compaction sched-migration sched migration overview flamegraph create flame graphs export-to-sqlite [database name] [columns] [calls] export perf data to a sqlite3 database netdev-times [tx] [rx] [dev=] [debug] display a process of packet and processing time intel-pt-events print Intel PT Events including Power Events and PTWRITE futex-contention futext contention measurement stackcollapse produce callgraphs in short form for scripting use syscall-counts-by-pid [comm] system-wide syscall counts, by pid net_dropmonitor display a table of dropped frames On Ubuntu, it just prints an error like this: $ perf script -l open(/usr/libexec/perf-core/scripts) failed. Check "PERF_EXEC_PATH" env to set scripts dir. ProblemType: Bug DistroRelease: Ubuntu 24.10 Package: linux-tools-common 6.11.0-9.9 ProcVersionSignature: Ubuntu 6.11.0-9.9-generic 6.11.0 Uname: Linux 6.11.0-9-generic x86_64 ApportVersion: 2.30.0-0ubuntu4 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/seq: benjamin 2564 F.... pipewire /dev/snd/controlC0: benjamin 2564 F.... pipewire benjamin 2571 F.... wireplumber CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Tue Nov 19 08:58:16 2024 Dependencies: hwdata 0.387-1 lsb-release 12.1-1 pci.ids 0.0~2024.09.12-1 usb.ids 2024.07.04-1 InstallationDate: Installed on 2024-03-22 (242 days ago) InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1) IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig' MachineType: LENOVO 20XWCTO1WW PackageArchitecture: all ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.11.0-9-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet splash crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M vt.handoff=7 RelatedPackageVersions: linux-restricted-modules-6.11.0-9-generic N/A linux-backports-modules-6.11.0-9-generic N/A linux-firmware 20240913.gita34e7a5f-0ubuntu2 SourcePackage: linux UpgradeStatus: Upgraded to oracular on 2024-10-10 (40 days ago) dmi.bios.date: 02/02/2024 dmi.bios.release: 1.67 dmi.bios.vendor: LENOVO dmi.bios.version: N32ET91W (1.67 ) dmi.board.asset.tag: Not Available dmi.board.name: 20XWCTO1WW dmi.board.vendor: LENOVO dmi.board.version: SDK0T76538 WIN dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: None dmi.ec.firmware.release: 1.36 dmi.modalias: dmi:bvnLENOVO:bvrN32ET91W(1.67):bd02/02/2024:br1.67:efr1.36:svnLENOVO:pn20XWCTO1WW:pvrThinkPadX1CarbonGen9:rvnLENOVO:rn20XWCTO1WW:rvrSDK0T76538WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20XW_BU_Think_FM_ThinkPadX1CarbonGen9: dmi.product.family: ThinkPad X1 Carbon Gen 9 dmi.product.name: 20XWCTO1WW dmi.product.sku: LENOVO_MT_20XW_BU_Think_FM_ThinkPad X1 Carbon Gen 9 dmi.product.version: ThinkPad X1 Carbon Gen 9 dmi.sys.vendor: LENOVO ** Affects: linux (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug oracular wayland-session -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/2089047 Title: perf tool not packaged with its scripts Status in linux package in Ubuntu: New Bug description: The Linux perf tool has many useful scripts in the tools/perf/scripts/ directory tree. A normal installation of perf includes them: $ perf script -l List of available trace scripts: rwtop [interval] system-wide r/w top rw-by-file <comm> r/w activity for a program, by file rw-by-pid system-wide r/w activity wakeup-latency system-wide min/max/avg wakeup latency failed-syscalls [comm] system-wide failed syscalls powerpc-hcalls syscall-counts [comm] system-wide syscall counts event_analyzing_sample analyze all perf samples failed-syscalls-by-pid [comm] system-wide failed syscalls, by pid mem-phys-addr resolve physical address samples export-to-postgresql [database name] [columns] [calls] export perf data to a postgresql database sctop [comm] [interval] syscall top compaction-times [-h] [-u] [-p|-pv] [-t | [-m] [-fs] [-ms]] [pid|pid-range|comm-regex] display time taken by mm compaction sched-migration sched migration overview flamegraph create flame graphs export-to-sqlite [database name] [columns] [calls] export perf data to a sqlite3 database netdev-times [tx] [rx] [dev=] [debug] display a process of packet and processing time intel-pt-events print Intel PT Events including Power Events and PTWRITE futex-contention futext contention measurement stackcollapse produce callgraphs in short form for scripting use syscall-counts-by-pid [comm] system-wide syscall counts, by pid net_dropmonitor display a table of dropped frames On Ubuntu, it just prints an error like this: $ perf script -l open(/usr/libexec/perf-core/scripts) failed. Check "PERF_EXEC_PATH" env to set scripts dir. ProblemType: Bug DistroRelease: Ubuntu 24.10 Package: linux-tools-common 6.11.0-9.9 ProcVersionSignature: Ubuntu 6.11.0-9.9-generic 6.11.0 Uname: Linux 6.11.0-9-generic x86_64 ApportVersion: 2.30.0-0ubuntu4 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/seq: benjamin 2564 F.... pipewire /dev/snd/controlC0: benjamin 2564 F.... pipewire benjamin 2571 F.... wireplumber CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Tue Nov 19 08:58:16 2024 Dependencies: hwdata 0.387-1 lsb-release 12.1-1 pci.ids 0.0~2024.09.12-1 usb.ids 2024.07.04-1 InstallationDate: Installed on 2024-03-22 (242 days ago) InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1) IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig' MachineType: LENOVO 20XWCTO1WW PackageArchitecture: all ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.11.0-9-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet splash crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M vt.handoff=7 RelatedPackageVersions: linux-restricted-modules-6.11.0-9-generic N/A linux-backports-modules-6.11.0-9-generic N/A linux-firmware 20240913.gita34e7a5f-0ubuntu2 SourcePackage: linux UpgradeStatus: Upgraded to oracular on 2024-10-10 (40 days ago) dmi.bios.date: 02/02/2024 dmi.bios.release: 1.67 dmi.bios.vendor: LENOVO dmi.bios.version: N32ET91W (1.67 ) dmi.board.asset.tag: Not Available dmi.board.name: 20XWCTO1WW dmi.board.vendor: LENOVO dmi.board.version: SDK0T76538 WIN dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: None dmi.ec.firmware.release: 1.36 dmi.modalias: dmi:bvnLENOVO:bvrN32ET91W(1.67):bd02/02/2024:br1.67:efr1.36:svnLENOVO:pn20XWCTO1WW:pvrThinkPadX1CarbonGen9:rvnLENOVO:rn20XWCTO1WW:rvrSDK0T76538WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20XW_BU_Think_FM_ThinkPadX1CarbonGen9: dmi.product.family: ThinkPad X1 Carbon Gen 9 dmi.product.name: 20XWCTO1WW dmi.product.sku: LENOVO_MT_20XW_BU_Think_FM_ThinkPad X1 Carbon Gen 9 dmi.product.version: ThinkPad X1 Carbon Gen 9 dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2089047/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp