Re: [PATCH -tip 0/6 V4] tracing: kprobe-based event tracer

2009-04-06 Thread Avi Kivity
Pekka Paalanen wrote: Not just emulation but address diversion, i.e. modifying the operation (not the text) before executing it. Mmiotrace could do something like this: 1. a blob calls ioremap 2. mmiotrace maps the MMIO area privately 3. the blob receives a dummy map from ioremap, that will

Re: [PATCH -tip 0/6 V4] tracing: kprobe-based event tracer

2009-04-05 Thread Pekka Paalanen
On Fri, 03 Apr 2009 09:52:09 -0400 Masami Hiramatsu mhira...@redhat.com wrote: Vegard Nossum wrote: 2009/4/3 Ingo Molnar mi...@elte.hu: * Avi Kivity a...@redhat.com wrote: Ingo Molnar wrote: kvm has three requirements not needed by kprobes: - it wants to execute instructions, not

Re: [PATCH -tip 0/6 V4] tracing: kprobe-based event tracer

2009-04-03 Thread Andi Kleen
I'm wondering about something i suggested many moons ago: to look into the KVM decoder+emulator (arch/x86/kvm/x86_emulate.c). Hi Ingo, Me and Masami just discussed this a few emails ago in this thread:) -Andi -- a...@linux.intel.com -- Speaking for myself only. -- To unsubscribe from this

Re: [PATCH -tip 0/6 V4] tracing: kprobe-based event tracer

2009-04-03 Thread Vegard Nossum
2009/4/3 Ingo Molnar mi...@elte.hu: * Avi Kivity a...@redhat.com wrote: Ingo Molnar wrote: kvm has three requirements not needed by kprobes: - it wants to execute instructions, not just decode them, including   generating faults where appropriate - it is performance critical - it needs to

Re: [PATCH -tip 0/6 V4] tracing: kprobe-based event tracer

2009-04-03 Thread Masami Hiramatsu
Avi Kivity wrote: Ingo Molnar wrote: ok, the structure and concept looks quite good now, really nice! I'm wondering about something i suggested many moons ago: to look into the KVM decoder+emulator (arch/x86/kvm/x86_emulate.c). I remember there were some issues with that (one problem being

Re: [PATCH -tip 0/6 V4] tracing: kprobe-based event tracer

2009-04-03 Thread Ingo Molnar
* Masami Hiramatsu mhira...@redhat.com wrote: Hmm, I'd like to know actually kvm aims to emulate all kinds of instructions. If so, I might find some bugs in x86_emulate.c. However, I don't know all bugs. To find all of them, we have to port x86_emulate.c to user-space, decode binaries

Re: [PATCH -tip 0/6 V4] tracing: kprobe-based event tracer

2009-04-03 Thread Avi Kivity
Masami Hiramatsu wrote: Hmm, I'd like to know actually kvm aims to emulate all kinds of instructions. We're less interested in fpu/sse. The interesting instructions are those used for page table management, mmio, and real mode execution. If so, I might find some bugs in x86_emulate.c.

Re: [PATCH -tip 0/6 V4] tracing: kprobe-based event tracer

2009-04-03 Thread Masami Hiramatsu
Ingo Molnar wrote: * Masami Hiramatsu mhira...@redhat.com wrote: Hmm, I'd like to know actually kvm aims to emulate all kinds of instructions. If so, I might find some bugs in x86_emulate.c. However, I don't know all bugs. To find all of them, we have to port x86_emulate.c to user-space,

Re: [PATCH -tip 0/6 V4] tracing: kprobe-based event tracer

2009-04-03 Thread Jim Keniston
On Fri, 2009-04-03 at 12:55 -0400, Masami Hiramatsu wrote: Ingo Molnar wrote: * Masami Hiramatsu mhira...@redhat.com wrote: Hmm, I'd like to know actually kvm aims to emulate all kinds of instructions. If so, I might find some bugs in x86_emulate.c. However, I don't know all bugs. To

[PATCH -tip 0/6 V4] tracing: kprobe-based event tracer

2009-04-02 Thread Masami Hiramatsu
Hi, Here are the patches of kprobe-based event tracer for x86, version 4. This version supports only x86(-32/-64) (If someone is interested in porting this to other architectures, he just needs to port kprobes/kretprobes and ptrace enhancement[PATCH 2/6]). I added x86 insn decoder on this