Distributions typically install vmlinux gzipped but oprofile_start
assumes it is not gzipped because that is what would occur for a
manual kernel install. oprofile can work with a gzipped vmlinux
so check for it it.

Signed-off-by: Mel Gorman <mgor...@suse.de>
---
 oprofile_start.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/oprofile_start.sh b/oprofile_start.sh
index 9c2d95d..f54690c 100755
--- a/oprofile_start.sh
+++ b/oprofile_start.sh
@@ -39,6 +39,12 @@ while true ; do
   esac
 done
 
+# It's very easy for the default vmlinux file to be gzipped, particularly
+# for distro deployed kernels. Check for it
+if [ ! -e $VMLINUX -a -e $VMLINUX.gz ]; then
+       VMLINUX=$VMLINUX.gz
+fi
+
 # Map the events
 for EVENT in $EVENTS; do
        LOWLEVEL_EVENT="$LOWLEVEL_EVENT --event `oprofile_map_events.pl 
$EVENT_FACTOR $CYCLE_FACTOR --event $EVENT`"

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to