From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: kernelshark plugins and ftrace array fields Date: Sun, 05 Sep 2010 10:08:17 +0300 Message-ID: <4C8341E1.7050605@redhat.com> References: <4C7F9639.7000804@redhat.com> <1283437521.2356.136.camel@gandalf.stny.rr.com> <4C7FB603.60609@redhat.com> <1283451398.2356.360.camel@gandalf.stny.rr.com> <1283452736.2356.388.camel@gandalf.stny.rr.com> <1283455443.2356.433.camel@gandalf.stny.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-kernel , KVM list To: Steven Rostedt Return-path: In-Reply-To: <1283455443.2356.433.camel@gandalf.stny.rr.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 09/02/2010 10:24 PM, Steven Rostedt wrote: > > I just pushed out the changes and my new example looks like this: > > static int > kvm_emulate_insn_handler(struct trace_seq *s, struct record *record, > struct event_format *event, void *context) > { > unsigned char *data; > int len; > int i; > > data = pevent_get_field_raw(s, event, "insn", record, > &len, 1); > if (!data) > return -1; > > trace_seq_puts(s, "insn: "); > for (i = 0; i< len; i++) { > trace_seq_printf(s, "%s%02x", > i ? "," : "", > data[i]); > } > > return 0; > } > That looks perfect. But on which branch can I find it? -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.