lkml.org 
[lkml]   [2010]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH trace-cmd] plugin_kvm: disassemble instructions for kvm_emulate_insn
      On 09/19/2010 04:33 PM, Avi Kivity wrote:
    > Override kvm_emulate_insn formatting to use a disassembler to format
    > the emulated instruction. If a disassembler (udis86) is not available,
    > fall back to showing the instruction bytes in hex.
    >
    > Signed-off-by: Avi Kivity<avi@redhat.com>
    > ---
    >
    > Note 1: on top of 'master' with 'trace-cmd-kvm' cherry-picked on top.
    >
    > Note 2: I get output of the form
    >
    > ... kvm_emulate_insn: 0:fffff800010527b5: mov $0x0, 0xfffe00b0CAN'T FIND FIELD "guest_rip"
    >
    > which leads me to believe there is a bug in trace_seq_printf when the input
    > to %s is "".
    >
    >

    Note 3: this is not thread safe. If trace-cmd wants to be (or is)
    multithreaded, we need some kind of plugin context that is passed to all
    plugin methods, which is initialized separately for each thread.

    Or we can be lazy and use thread local storage.

    --
    error compiling committee.c: too many arguments to function



    \
     
     \ /
      Last update: 2010-09-20 11:55    [W:2.672 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site