logo       

[BUG] "No events given." Problem of opcontrol or ophelp?: msg#00065

Subject: [BUG] "No events given." Problem of opcontrol or ophelp?
Hi, all,

I tried with oprofile 0.9.1 and 0.9.2 both with a existing setup file 
/root/.oprofile/daemonrc,
CHOSEN_EVENTS[0]=PM_BR_UNCOND_GRP43:500000:0:1:1
CHOSEN_EVENTS[1]=PM_BR_PRED_TA_GRP43:500000:0:1:1
CHOSEN_EVENTS[2]=PM_BR_PRED_CR_GRP43:500000:0:1:1
CHOSEN_EVENTS[3]=PM_BR_PRED_CR_TA_GRP43:500000:0:1:1
CHOSEN_EVENTS[4]=PM_RUN_INST_CMPL_GRP43:500000:0:1:1
CHOSEN_EVENTS[5]=PM_RUN_CYC_GRP43:500000:0:1:1
NR_CHOSEN=6
SEPARATE_LIB=0
SEPARATE_KERNEL=0
SEPARATE_THREAD=0
SEPARATE_CPU=0
VMLINUX=/boot/vmlinux-2.6.19-rc2-pr28252
IMAGE_FILTER=
CPU_BUF_SIZE=0
CALLGRAPH=0
XENIMAGE=none

But when issue "opcontrol --start", 0.9.1 version will start well, 0.9.2 will 
complains "No events given."
instead.

Here is the verbose output of 0.9.2 opcontrol, 
[root@tc1 bin]# opcontrol --start
+ SYSCTL=do_sysctl
+ BINDIR=/usr/bin
++ /usr/bin/which /kernel/autotest-zyf/profilers/oprofile/src/bin/opcontrol
+ OPCONTROL=/kernel/autotest-zyf/profilers/oprofile/src/bin/opcontrol
++ /usr/bin/dirname /kernel/autotest-zyf/profilers/oprofile/src/bin/opcontrol
+ OPDIR=/kernel/autotest-zyf/profilers/oprofile/src/bin
+ PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ check_version_help --start
+ OPHELP=/kernel/autotest-zyf/profilers/oprofile/src/bin/ophelp
+ for i in '$@'
+ case "$i" in
+ test -z --start
++ id -u
+ test 0 = 0
+ load_module
+ OPROFILE_AVAILABLE=no
+ load_module_26
+ grep oprofilefs /proc/filesystems
+ test 0 -ne 0
+ mkdir /dev/oprofile
+ grep oprofilefs /etc/mtab
+ test 0 -ne 0
+ KERNEL_SUPPORT=yes
+ OPROFILE_AVAILABLE=yes
+ test yes '!=' yes
+ test yes '!=' yes
+ check_version
+ OPROFILE_AVAILABLE=no
+ grep oprofilefs /etc/mtab
+ test 0 -eq 0
+ KERNEL_SUPPORT=yes
+ OPROFILE_AVAILABLE=yes
+ return
+ do_init_daemon_vars
+ DIR=/var/lib/oprofile
+ LOCK_FILE=/var/lib/oprofile/lock
+ LOG_FILE=/var/lib/oprofile/oprofiled.log
+ SAMPLES_DIR=/var/lib/oprofile/samples
+ CURRENT_SAMPLES_DIR=/var/lib/oprofile/samples/current
+ decide_oprofile_device
+ test yes = yes
+ MOUNT=/dev/oprofile
+ DEVICE_FILE=/dev/oprofile/buffer
++ id -u
+ test 0 '!=' 0
+ do_init
+ BUF_SIZE=0
+ BUF_WATERSHED=0
+ CPU_BUF_SIZE=0
+ NOTE_SIZE=0
+ VMLINUX=
+ XENIMAGE=none
+ VERBOSE=
+ SEPARATE_LIB=0
+ SEPARATE_KERNEL=0
+ SEPARATE_THREAD=0
+ SEPARATE_CPU=0
+ CALLGRAPH=0
+ OPROFILED=/kernel/autotest-zyf/profilers/oprofile/src/bin/oprofiled
+ SETUP_DIR=/root/.oprofile
+ SETUP_FILE=/root/.oprofile/daemonrc
++ cat /dev/oprofile/cpu_type
+ CPUTYPE=ppc64/power5+
++ ls /dev/oprofile/
++ grep '^[0-9]\+$'
++ tr '\n' ' '
+ OP_COUNTERS='0 1 2 3 4 5 '
+ NR_CHOSEN=0
++ /kernel/autotest-zyf/profilers/oprofile/src/bin/ophelp --get-default-event
+ DEFAULT_EVENT=CYCLES:100000:0:1:1
+ IS_TIMER=0
+ IS_PERFMON=0
+ test ppc64/power5+ = timer
+ case "$CPUTYPE" in
+ do_options --start
+ EXCLUSIVE_ARGC=0
+ SETUP=no
+ NEED_SETUP=no
+ SEEN_EVENT=0
+ do_load_setup
+ test -f /root/.oprofile/daemonrc
+ . /root/.oprofile/daemonrc
++ CHOSEN_EVENTS[0]=PM_BR_UNCOND_GRP43:500000:0:1:1
++ CHOSEN_EVENTS[1]=PM_BR_PRED_TA_GRP43:500000:0:1:1
++ CHOSEN_EVENTS[2]=PM_BR_PRED_CR_GRP43:500000:0:1:1
++ CHOSEN_EVENTS[3]=PM_BR_PRED_CR_TA_GRP43:500000:0:1:1
++ CHOSEN_EVENTS[4]=PM_RUN_INST_CMPL_GRP43:500000:0:1:1
++ CHOSEN_EVENTS[5]=PM_RUN_CYC_GRP43:500000:0:1:1
++ NR_CHOSEN=6
++ SEPARATE_LIB=0
++ SEPARATE_KERNEL=0
++ SEPARATE_THREAD=0
++ SEPARATE_CPU=0
++ VMLINUX=/boot/vmlinux-2.6.19-rc2-pr28252
++ IMAGE_FILTER=
++ CPU_BUF_SIZE=0
++ CALLGRAPH=0
++ XENIMAGE=none
+ vecho 'Parameters used:'
+ test -n ''
+ vecho 'CPUTYPE ppc64/power5+'
+ test -n ''
+ test 0 '!=' 0
+ vecho 'BUF_SIZE default value'
+ test -n ''
+ test 0 '!=' 0
+ vecho 'BUF_WATERSHED default value'
+ test -n ''
+ test yes = yes
+ test 0 '!=' 0
+ vecho 'CPU_BUF_SIZE default value'
+ test -n ''
+ vecho 'SEPARATE_LIB 0'
+ test -n ''
+ vecho 'SEPARATE_KERNEL 0'
+ test -n ''
+ vecho 'SEPARATE_THREAD 0'
+ test -n ''
+ vecho 'SEPARATE_CPU 0'
+ test -n ''
+ vecho 'CALLGRAPH 0'
+ test -n ''
+ vecho 'VMLINUX /boot/vmlinux-2.6.19-rc2-pr28252'
+ test -n ''
+ vecho 'KERNEL_RANGE '
+ test -n ''
+ vecho 'XENIMAGE none'
+ test -n ''
+ vecho 'XEN_RANGE '
+ test -n ''
+ '[' 1 -ne 0 ']'
++ printf %s --start
++ awk -F= '{print $1}'
+ arg=--start
++ printf %s --start
++ awk -F= '{print $2}'
+ val=
+ shift
+ test -z ''
+ local possibleval=
+ printf %s ''
+ grep '^-'
+ test 1 '!=' 0
+ val=
+ '[' 0 -ge 1 ']'
+ case "$arg" in
+ START=yes
++ expr 0 + 1
+ EXCLUSIVE_ARGC=1
+ EXCLUSIVE_ARGV=--start
+ '[' 0 -ne 0 ']'
+ normalise_events
+ test 6 -le 0
++ seq 0 5
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 0
++ eval 'echo $CHOSEN_EVENTS_0'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 1
++ eval 'echo $CHOSEN_EVENTS_1'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 2
++ eval 'echo $CHOSEN_EVENTS_2'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 3
++ eval 'echo $CHOSEN_EVENTS_3'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 4
++ eval 'echo $CHOSEN_EVENTS_4'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 5
++ eval 'echo $CHOSEN_EVENTS_5'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ verify_counters
+ test 0 = 1
+ OPHELP_ARGS=
+ test 6 '!=' 0
++ seq 0 5
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 0
++ eval 'echo $CHOSEN_EVENTS_0'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 1
++ eval 'echo $CHOSEN_EVENTS_1'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 2
++ eval 'echo $CHOSEN_EVENTS_2'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 3
++ eval 'echo $CHOSEN_EVENTS_3'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 4
++ eval 'echo $CHOSEN_EVENTS_4'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
+ for f in '`seq 0 $((NR_CHOSEN - 1))`'
+ get_event 5
++ eval 'echo $CHOSEN_EVENTS_5'
+++ echo
+ GOTEVENT=
+ test '' '!=' ''
++ /kernel/autotest-zyf/profilers/oprofile/src/bin/ophelp --check-events 
--callgraph=0
No events given.
+ HW_CTRS=
+ test 1 '!=' 0
+ exit 1


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
oprofile-list mailing list
oprofile-list@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/oprofile-list
<Prev in Thread] Current Thread [Next in Thread>