Skip to contentSkip to conversation

OProfile patch for Linux 3.2

DISCUSSION W. Michael Petullo 2 participants 4 messages Jan 28, 2012 – Feb 17, 2012

lore
Share & tools
lore
#0 lore raw

I have ported Anil's passive profile-capable OProfile patch to Linux 3.2. I have be able to hobble this patch along to new kernel versions, but it is in need of additional work if it is to be submitted upstream. Please see:

http://www.flyn.org/patches/linux-xen-passive-oprofile/linux-3.2-xen-passive-oprofile.patch.gz

With this patch applied to Linux 3.2, I can perform passive profiling of an unprivileged Xen domain.

Signature · 3 lines
Mike

:wq
#1 lore raw
Quoted 9 lines · W. Michael Petullo

I have ported Anil's passive profile-capable OProfile patch to Linux 3.2. I have be able to hobble this patch along to new kernel versions, but it is in need of additional work if it is to be submitted upstream. Please see:

http://www.flyn.org/patches/linux-xen-passive-oprofile/linux-3.2-xen-passive-oprofile.patch.gz

With this patch applied to Linux 3.2, I can perform passive profiling of an unprivileged Xen domain.

What version of oprofile did you use?

Quoted 10 lines
Signature · 9 lines
-- 
Mike

:wq

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
#2 lore raw
Quoted 11 lines
Quoted 9 lines

I have ported Anil's passive profile-capable OProfile patch to Linux 3.2. I have be able to hobble this patch along to new kernel versions, but it is in need of additional work if it is to be submitted upstream. Please see:

http://www.flyn.org/patches/linux-xen-passive-oprofile/linux-3.2-xen-passive-oprofile.patch.gz

With this patch applied to Linux 3.2, I can perform passive profiling of an unprivileged Xen domain.

What version of oprofile did you use?

Fedora's oprofile-0.9.6-21.fc16.x86_64.

Signature · 3 lines
Mike

:wq
#3 lore raw
Quoted 5 lines · W. Michael Petullo
Quoted 5 lines
Quoted 5 lines

I have ported Anil's passive profile-capable OProfile patch to Linux 3.2. I have be able to hobble this patch along to new kernel versions, but it is in need of additional work if it is to be submitted upstream. Please see:

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

http://www.flyn.org/patches/linux-xen-passive-oprofile/linux-3.2-xen-passive-oprofile.patch.gz

With this patch applied to Linux 3.2, I can perform passive profiling of an unprivileged Xen domain.

What version of oprofile did you use?

Fedora's oprofile-0.9.6-21.fc16.x86_64.

So I took a spin at this - it applies nicely and cleanly to 3.2, and was wondering how you profile passive domains?

I do something like this:

opcontrol --vmlinux=/mnt/lab/vmlinux-dom0 --xen=/mnt/lab/xen-syms --passive-domains=3,2 --callgraph=10 --passive-images=/mnt/lab/10gb/tiny-vmlinux -p=cpu opcontrol --start-daemon

opcontrol --start
/mnt/lab/10gb/create_csv.sh 1
opcontrol --stop

The little create_csv.sh makes the two domains talk to each other (netperf) and I want to get a feel for what it is happening.

But what I get is exclusivly to domain0 and to xen. Nothing about the guests?

Are you doing something speciail to profile the passive domains?

Thanks.