From: John L. <mov...@us...> - 2001-09-02 01:08:48
|
Update of /cvsroot/oprofile/oprofile/dae In directory usw-pr-cvs1:/tmp/cvs-serv23855/dae Modified Files: op_dump Log Message: small improvement to op_dump Index: op_dump =================================================================== RCS file: /cvsroot/oprofile/oprofile/dae/op_dump,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- op_dump 2001/08/11 01:45:54 1.1 +++ op_dump 2001/09/02 01:08:45 1.2 @@ -2,8 +2,13 @@ # useful for dumping ... -if [ ! -f /proc/sys/dev/oprofile/dump ]; then +if [ ! -d /proc/sys/dev/oprofile ]; then echo "You must have the oprofile module loaded to dump data." + exit 1 +fi + +if [ ! -w /proc/sys/dev/oprofile/dump ]; then + echo "Must be root." exit 1 fi |