Comment 9 for bug 364656

Revision history for this message
David Sugar (dyfet-deactivatedaccount) wrote :

This is a patch, for Karmic procps 3.2.8-1ubuntu1, that fixes the issue the way suggested at the end of the debian bug list, by assuring the linux version detection actually occurs before init_libproc, hence removing the hack calculation for modern kernels with elf notes. Originally, both init_Linux_version() and init_libproc() were attribute constructor functions, and hence depended on elf loader side effects as to whether the linux version code would happen to be called first. This patch resolves that issue, and I have verified the elf note method returns correctly, and with the 100hz tick value, for ARM kernels. One will also have to use update-initramfs to update the boot ramdisk image with the correct copy of procps binaries.