Pibben
Posts: 12
Joined: Wed Feb 11, 2015 11:53 am

Bad version of linux-perf in Jessie

Mon Dec 18, 2017 12:47 pm

(RPi3 with Rasbian Jessie. Fully updated.)

I'm using the "perf" tool from the "linux-perf-4.9" package. However, it contains a bug (https://lkml.org/lkml/2016/12/20/599) that was fixed in December 2016. As far as I can understand the fix has been in Mainline kernel since 4.9.2 and in the Rasbian kernel (atl least) since 4.9.24. But the perf tool in Rasbian (version 4.9.53) still has the bug.

The strange thing is that if I build the package from source:

Code: Select all

$ apt-get source linux-perf-4.9
$ make -C linux-4.9-4.9.51/tools/perf/perf
And then run the resulting program, it works! So somehow the packaged version of perf still gets the bug.

Could anyone try to explain this? Thanks!

fruitoftheloom
Posts: 20118
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Bad version of linux-perf in Jessie

Mon Dec 18, 2017 1:02 pm

Pibben wrote:
Mon Dec 18, 2017 12:47 pm
(RPi3 with Rasbian Jessie. Fully updated.)

I'm using the "perf" tool from the "linux-perf-4.9" package. However, it contains a bug (https://lkml.org/lkml/2016/12/20/599) that was fixed in December 2016. As far as I can understand the fix has been in Mainline kernel since 4.9.2 and in the Rasbian kernel (atl least) since 4.9.24. But the perf tool in Rasbian (version 4.9.53) still has the bug.

The strange thing is that if I build the package from source:

Code: Select all

$ apt-get source linux-perf-4.9
$ make -C linux-4.9-4.9.51/tools/perf/perf
And then run the resulting program, it works! So somehow the packaged version of perf still gets the bug.

Could anyone try to explain this? Thanks!

Raspbian Jessie was suprseeded by Stretch 4 months ago:

https://www.raspberrypi.org/blog/raspbian-stretch/


Raspbian Stretch should be linux-perf-4.9 (4.9.65-3) afaiaa

https://packages.debian.org/stretch/linux-perf-4.9
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

Pibben
Posts: 12
Joined: Wed Feb 11, 2015 11:53 am

Re: Bad version of linux-perf in Jessie

Tue Dec 19, 2017 9:57 am

Sorry, my mistake, I meant to write Stretch. I tried the latest package you pointed out, but it still fails. =(

mrs
Posts: 3
Joined: Wed Dec 13, 2017 4:35 pm

Re: Bad version of linux-perf in Jessie

Tue Jan 02, 2018 9:10 pm

I believe it happens to me on stretch as well:

Code: Select all

0x48f60 [0x8]: failed to process type: 68

Return to “Raspbian”