lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 02 Sep 2010 17:34:43 +0300
From:	Avi Kivity <avi@...hat.com>
To:	Steven Rostedt <rostedt@...dmis.org>
CC:	linux-kernel <linux-kernel@...r.kernel.org>,
	KVM list <kvm@...r.kernel.org>
Subject: Re: kernelshark plugins and ftrace array fields

  On 09/02/2010 05:25 PM, Steven Rostedt wrote:
> On Thu, 2010-09-02 at 15:19 +0300, Avi Kivity wrote:
>> I'd like to add enhance kvm_emulate_insn display in kernelshark to
>> show the disassembly of the instruction being emulated.  However,
>> pevent_get_field_val() doesn't support arrays (the instruction is
>> provided in a 15-byte array).
>>
>> Can you add support for arrays in the kernelshark API?  With that, it
>> looks like adding disassembly output to the kvm plugin should be quite
>> simple.
>>
> Sure, I could add a pevent_get_field_array() or something. Could you
> tell me the event and give me an example of what you want to do.

plugin_kvm.c:

kvm_emulate_insn_handler()
{
    fetch insn array and len field
    feed into disassembler
    trace_seq_printf() the disassembled instruction
}

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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ