sarusukh
Posts: 9
Joined: Wed Jul 03, 2019 1:48 am

Regarding installation of linux tool "perf" on raspbian

Tue Nov 19, 2019 1:31 pm

I am really struggling with installing linux tool "perf"; (I'm using raspberry pi zero and operating it via my laptop which has windows 10 installed)
My issue is as follows:

When i try to install perf using the following command, it says that its already installed.

sudo apt-get install linux-perf
linux-perf is already the newest version (4.9+80+deb9u4+rpi2).
linux-perf-4.9 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.


but when i try to run that command, it gives the error as mentioned below:
perf
/usr/bin/perf: line 13: exec: perf_4.19: not found
E: linux-perf-4.19 is not installed.

User avatar
B.Goode
Posts: 10191
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Regarding installation of linux tool "perf" on raspbian

Tue Nov 19, 2019 2:46 pm

sarusukh wrote:
Tue Nov 19, 2019 1:31 pm
I am really struggling with installing linux tool "perf"; (I'm using raspberry pi zero and operating it via my laptop which has windows 10 installed)
My issue is as follows:

When i try to install perf using the following command, it says that its already installed.

sudo apt-get install linux-perf
linux-perf is already the newest version (4.9+80+deb9u4+rpi2).
linux-perf-4.9 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.


but when i try to run that command, it gives the error as mentioned below:
perf
/usr/bin/perf: line 13: exec: perf_4.19: not found
E: linux-perf-4.19 is not installed.


What version, by name and date, of the Raspbian Operating System are you running on your RPi Zero board?

sarusukh
Posts: 9
Joined: Wed Jul 03, 2019 1:48 am

Re: Regarding installation of linux tool "perf" on raspbian

Tue Nov 19, 2019 4:43 pm

Linux raspberrypi 4.19.50+ #896 Thu Jun 20 16:09:52 BST 2019 armv6l GNU/Linux

sarusukh
Posts: 9
Joined: Wed Jul 03, 2019 1:48 am

Re: Regarding installation of linux tool "perf" on raspbian

Tue Nov 19, 2019 4:44 pm

B.Goode wrote:
Tue Nov 19, 2019 2:46 pm
sarusukh wrote:
Tue Nov 19, 2019 1:31 pm
I am really struggling with installing linux tool "perf"; (I'm using raspberry pi zero and operating it via my laptop which has windows 10 installed)
My issue is as follows:

When i try to install perf using the following command, it says that its already installed.

sudo apt-get install linux-perf
linux-perf is already the newest version (4.9+80+deb9u4+rpi2).
linux-perf-4.9 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.


but when i try to run that command, it gives the error as mentioned below:
perf
/usr/bin/perf: line 13: exec: perf_4.19: not found
E: linux-perf-4.19 is not installed.


What version, by name and date, of the Raspbian Operating System are you running on your RPi Zero board?
[Linux raspberrypi 4.19.50+ #896 Thu Jun 20 16:09:52 BST 2019 armv6l GNU/Linux
]

trejan
Posts: 1873
Joined: Tue Jul 02, 2019 2:28 pm

Re: Regarding installation of linux tool "perf" on raspbian

Tue Nov 19, 2019 8:29 pm

You need a kernel version specific package for the perf tools to work but it isn't packaged for the Raspberry Pi Trading modified kernel. The repo does have packages for 4.18_4.18.20-2+rpi1_armhf and 5.2_5.2.17-1+rpi1+b2_armhf which are the upstream kernels but they're not used normally in Raspbian.

You need to build it yourself or see if you can appeal to one of the Raspberry Pi engineers to build the missing package for 4.19.

sarusukh
Posts: 9
Joined: Wed Jul 03, 2019 1:48 am

Re: Regarding installation of linux tool "perf" on raspbian

Wed Nov 20, 2019 6:34 am

trejan wrote:
Tue Nov 19, 2019 8:29 pm
You need a kernel version specific package for the perf tools to work but it isn't packaged for the Raspberry Pi Trading modified kernel. The repo does have packages for 4.18_4.18.20-2+rpi1_armhf and 5.2_5.2.17-1+rpi1+b2_armhf which are the upstream kernels but they're not used normally in Raspbian.

You need to build it yourself or see if you can appeal to one of the Raspberry Pi engineers to build the missing package for 4.19.
Thank you for your response, I'l try to contact them !

Return to “Raspberry Pi OS”