Activity log for bug #555130

Date Who What changed Old value New value Message
2010-04-04 12:46:58 Ulrik Mikaelsson bug added bug
2010-04-22 17:05:17 Ulrik Mikaelsson attachment added perf-pae-fix.patch http://launchpadlibrarian.net/45032848/perf-pae-fix.patch
2010-04-22 17:43:37 Andy Whitcroft attachment added X http://launchpadlibrarian.net/45035036/X
2010-04-22 17:44:12 Andy Whitcroft linux (Ubuntu): importance Undecided Low
2010-04-22 17:44:15 Andy Whitcroft linux (Ubuntu): assignee Andy Whitcroft (apw)
2010-04-22 17:44:19 Andy Whitcroft linux (Ubuntu): status New Fix Committed
2010-04-22 17:49:54 Andy Whitcroft description Binary package hint: linux-tools-common linux-tools-common contains a small redirection-script (/usr/bin/perf), for dispatching to the perf-version corresponding to the running kernel. This script uses basically ${`uname -r`%-*} to figure the running kernel version, where %-* strips the last dash-delimited component of the kernel name. This breaks for -generic-pae. Examples of uname "-r": 2.6.32-19-generic # Works today 2.6.32-19-generic-pae # Breaks, since the TWO last components needs to be stripped. A proposed solution could be to instead use "%%-[a-z-]*", which would remove ALL trailing letters, and dashes, up to the last digit in the string (the package-release-number). However, since I don't know kernel-release names for other architectures, it needs to be verified first. Suggested new perf, change only on line 3 ---------------- #!/bin/bash version=`uname -r` version=${version%%-[a-z-]*} exec "perf_$version" "$@" SRU Justification Justification: by default the perf command will not work correctly on any flavour which contains a - in its name Impact: unable to use the perf command to debug applications when using generic-paeetc Fix Description: change flavour removal to work with all flavours through use of the known shape version number Patch: http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-lucid.git;a=commit;h=6ec3efb32496eafa8be998507d26f7ffbe0747c4 Risks: low, this only changes the perf wrapper which has been tested with all known flavours TEST CASE: attempt to use perf on a generic-pae install note it fails, install patch, note it now works as expected === Binary package hint: linux-tools-common linux-tools-common contains a small redirection-script (/usr/bin/perf), for dispatching to the perf-version corresponding to the running kernel. This script uses basically ${`uname -r`%-*} to figure the running kernel version, where %-* strips the last dash-delimited component of the kernel name. This breaks for -generic-pae. Examples of uname "-r": 2.6.32-19-generic # Works today 2.6.32-19-generic-pae # Breaks, since the TWO last components needs to be stripped. A proposed solution could be to instead use "%%-[a-z-]*", which would remove ALL trailing letters, and dashes, up to the last digit in the string (the package-release-number). However, since I don't know kernel-release names for other architectures, it needs to be verified first. Suggested new perf, change only on line 3 ---------------- #!/bin/bash version=`uname -r` version=${version%%-[a-z-]*} exec "perf_$version" "$@"
2010-06-09 17:05:31 Nigel Babu removed subscriber Ubuntu Review Team
2010-06-10 08:46:06 Stefan Bader nominated for series Ubuntu Lucid
2010-06-10 08:46:06 Stefan Bader bug task added linux (Ubuntu Lucid)
2010-06-10 08:46:43 Stefan Bader linux (Ubuntu Lucid): importance Undecided Low
2010-06-10 08:46:43 Stefan Bader linux (Ubuntu Lucid): status New Fix Committed
2010-06-11 07:42:10 Martin Pitt nominated for series Ubuntu Maverick
2010-06-11 07:42:10 Martin Pitt bug task added linux (Ubuntu Maverick)
2010-06-11 07:43:30 Martin Pitt linux (Ubuntu Maverick): milestone maverick-alpha-2
2010-06-11 07:53:29 Martin Pitt tags verification-needed
2010-06-18 10:32:17 Launchpad Janitor branch linked lp:ubuntu/lucid-proposed/linux-mvl-dove
2010-06-18 11:25:31 Launchpad Janitor branch linked lp:ubuntu/lucid-proposed/linux-ec2
2010-06-18 17:21:23 Andy Whitcroft linux (Ubuntu Maverick): status Fix Committed Fix Released
2010-06-30 12:28:25 Launchpad Janitor linux (Ubuntu Lucid): status Fix Committed Fix Released