Skip to contentSkip to conversation

[xenoprofile, oprofile 0.9.5 problem]

xenoprofile, oprofile 0.9.5 problem 박은병 1 participant 1 message Dec 24, 2009

lore
Share & tools
lore

박은병

author
#0 lore raw

Hello, I have some problem using xenoprof, patched oprofile 0.9.5.

xen 3.4.2, dom0 is jeremy's pvops 2.6.31.6 kernel, dom0 is vanila kernel 2.6.32
linux distribution is ubuntu 9.10 karmic server i386.

I've built xen, dom0 domU successful and works well including booting dom0 and network configuration

So I've been trying to use xenoprofile for analyzing application behavior

But, xenoprof seems to be some tricky.

I've patch the oprofile 0.9.5 and built it successfully. because of my distribution is ubuntu, so opcontrol's basic shell have been modified from /bin/sh to /bin/bash. (I found that ubuntu's basic shell is not agreed with opcontrol shell script on internet)

and then, Now opcontrol shell script is works without any error message.

# opcontrol --start-daemon --xen=/boot/xen-syms-3.4.2
--vmlinux=/boot/vmlinux-2.6.31.6-xen
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.
---------------------------------------------------------------------------------------

but oprofile does not work well. right after above command dmesg reported some problematic message

[  653.518735] oprofile: using NMI interrupt.
[  654.110729] ------------[ cut here ]------------
[  654.110744] WARNING: at arch/x86/xen/enlighten.c:720
xen_apic_write+0x12/0x20()
[  654.110752] Hardware name: Macmini1,1
[  654.110760] Modules linked in: oprofile bridge stp snd_hda_codec_idt

fbcon tileblit font bitblit softcursor snd_hda_intel snd_hda_codec arc4 snd_hwdep ecb i915 snd_pcm ath5k snd_timer drm iptable_filter mac80211 i2c_algo_bit snd ath ip_tables soundcore video x_tables intel_agp snd_page_alloc output lp applesmc cfg80211 btusb agpgart parport led_class input_polldev tpm_infineon tpm tpm_bios usbhid ohci1394 ieee1394 sky2 aacraid

[  654.111009] Pid: 0, comm: swapper Not tainted 2.6.31.6 #11
[  654.111017] Call Trace:
[  654.111034]  [<c014d3bd>] warn_slowpath_common+0x6d/0xa0
[  654.111047]  [<c0103b22>] ? xen_apic_write+0x12/0x20
[  654.111059]  [<c0103b22>] ? xen_apic_write+0x12/0x20
[  654.111073]  [<c014d405>] warn_slowpath_null+0x15/0x20
[  654.111086]  [<c0103b22>] xen_apic_write+0x12/0x20
[  654.111104]  [<ee23658d>] nmi_cpu_setup+0x6d/0x80 [oprofile]
[  654.111120]  [<c01772e0>]
generic_smp_call_function_single_interrupt+0x70/0x90
[  654.111134]  [<c010832d>] xen_call_function_single_interrupt+0xd/0x30
[  654.111148]  [<c019720c>] handle_IRQ_event+0x4c/0x140
[  654.111161]  [<c0108a40>] ? xen_spin_lock+0xa0/0x100
[  654.111174]  [<c0199ea4>] ? move_native_irq+0x14/0x50
[  654.111187]  [<c01992bf>] handle_level_irq+0x6f/0xe0
[  654.111201]  [<c010e638>] handle_irq+0x18/0x30
[  654.111215]  [<c03809e9>] xen_evtchn_do_upcall+0x159/0x180
[  654.111228]  [<c010cd1f>] xen_do_upcall+0x7/0xc
[  654.111241]  [<c01023a7>] ? hypercall_page+0x3a7/0x1010
[  654.111254]  [<c0107362>] ? xen_safe_halt+0x12/0x20
[  654.111267]  [<c010470f>] xen_idle+0x1f/0x40
[  654.111279]  [<c010addc>] cpu_idle+0x8c/0xd0
[  654.111293]  [<c057e228>] cpu_bringup_and_idle+0xd/0xf
[  654.111302] ---[ end trace 8f0f8eae293425de ]---
[  654.111332] ------------[ cut here ]------------
[  654.111343] WARNING: at arch/x86/xen/enlighten.c:720
xen_apic_write+0x12/0x20()
[  654.111351] Hardware name: Macmini1,1
[  654.111358] Modules linked in: oprofile bridge stp snd_hda_codec_idt

fbcon tileblit font bitblit softcursor snd_hda_intel snd_hda_codec arc4 snd_hwdep ecb i915 snd_pcm ath5k snd_timer drm iptable_filter mac80211 i2c_algo_bit snd ath ip_tables soundcore video x_tables intel_agp snd_page_alloc output lp applesmc cfg80211 btusb agpgart parport led_class input_polldev tpm_infineon tpm tpm_bios usbhid ohci1394 ieee1394 sky2 aacraid

[  654.111607] Pid: 1415, comm: oprofiled Tainted: G        W  2.6.31.6 #11
[  654.111615] Call Trace:
[  654.111629]  [<c014d3bd>] warn_slowpath_common+0x6d/0xa0
[  654.111642]  [<c0103b22>] ? xen_apic_write+0x12/0x20
[  654.111654]  [<c0103b22>] ? xen_apic_write+0x12/0x20
[  654.111668]  [<c014d405>] warn_slowpath_null+0x15/0x20
[  654.111680]  [<c0103b22>] xen_apic_write+0x12/0x20
[  654.111698]  [<ee23658d>] nmi_cpu_setup+0x6d/0x80 [oprofile]
[  654.111715]  [<ee236520>] ? nmi_cpu_setup+0x0/0x80 [oprofile]
[  654.111728]  [<c0153136>] on_each_cpu+0x26/0x40
[  654.111745]  [<ee236852>] nmi_setup+0x192/0x1c0 [oprofile]
[  654.111761]  [<ee2341aa>] oprofile_setup+0x3a/0xd0 [oprofile]
[  654.111778]  [<ee2353b4>] event_buffer_open+0x54/0x70 [oprofile]
[  654.111791]  [<c01ebeb9>] __dentry_open+0xb9/0x230
[  654.111804]  [<c01ec115>] nameidata_to_filp+0x55/0x70
[  654.111820]  [<ee235360>] ? event_buffer_open+0x0/0x70 [oprofile]
[  654.111834]  [<c01f97fa>] do_filp_open+0x54a/0x930
[  654.111847]  [<c0108a40>] ? xen_spin_lock+0xa0/0x100
[  654.111862]  [<c01ebc8f>] do_sys_open+0x4f/0x110
[  654.111876]  [<c058b46b>] ? do_page_fault+0x19b/0x380
[  654.111888]  [<c01ebdb9>] sys_open+0x29/0x40
[  654.111901]  [<c010c13c>] syscall_call+0x7/0xb
[  654.111909] ---[ end trace 8f0f8eae293425df ]---

I don't know what the problem is.

And, bellow error is also found.

# opcontrol --start-daemon --xen=/boot/xen-syms-3.4.2
--vmlinux=/boot/vmlinux-2.6.31.6-xen *--active-domains=1*
*/usr/local/bin/opcontrol: line 1391: /dev/oprofile/active_domains:
Permission denied*
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.

I've not found /dev/oprofile/active_domains and
/dev/oprofile/passive_domains

Is there anyone who knows the problem?? :)
I attached my full dmesg.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel