All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@citrix.com>
To: Tim Deegan <Tim.Deegan@eu.citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
	Olaf Hering <olaf@aepfle.de>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 4 of 4] Add a trace hypercall to allow tracing from dom0 or domU
Date: Mon, 18 Jul 2011 12:17:36 +0100	[thread overview]
Message-ID: <1310987856.3401.23.camel@elijah> (raw)
In-Reply-To: <20110718085611.GA18276@whitby.uk.xensource.com>

On Mon, 2011-07-18 at 09:56 +0100, Tim Deegan wrote:
> Hi, 
> 
> At 17:38 +0200 on 15 Jul (1310751488), Olaf Hering wrote:
> > diff -r 6e4aef7b5051 -r f72dcd1b8bbd xen/arch/x86/x86_32/entry.S
> > --- a/xen/arch/x86/x86_32/entry.S
> > +++ b/xen/arch/x86/x86_32/entry.S
> > @@ -699,6 +699,7 @@ ENTRY(hypercall_table)
> >          .long do_domctl
> >          .long do_kexec_op
> >          .long do_tmem_op
> > +        .long do_xentrace_op
> >          .rept __HYPERVISOR_arch_0-((.-hypercall_table)/4)
> >          .long do_ni_hypercall
> >          .endr
> > @@ -747,6 +748,7 @@ ENTRY(hypercall_args_table)
> >          .byte 1 /* do_domctl            */
> >          .byte 2 /* do_kexec_op          */
> >          .byte 1 /* do_tmem_op           */
> > +        .byte 0 /* do_xentrace_op       */
> >          .rept __HYPERVISOR_arch_0-(.-hypercall_args_table)
> >          .byte 0 /* do_ni_hypercall      */
> >          .endr
> > diff -r 6e4aef7b5051 -r f72dcd1b8bbd xen/arch/x86/x86_64/entry.S
> > --- a/xen/arch/x86/x86_64/entry.S
> > +++ b/xen/arch/x86/x86_64/entry.S
> > @@ -694,6 +694,7 @@ ENTRY(hypercall_table)
> >          .quad do_domctl
> >          .quad do_kexec_op
> >          .quad do_tmem_op
> > +        .quad do_xentrace_op
> >          .rept __HYPERVISOR_arch_0-((.-hypercall_table)/8)
> >          .quad do_ni_hypercall
> >          .endr
> > @@ -742,6 +743,7 @@ ENTRY(hypercall_args_table)
> >          .byte 1 /* do_domctl            */
> >          .byte 2 /* do_kexec             */
> >          .byte 1 /* do_tmem_op           */
> > +        .byte 0 /* do_xentrace_op       */
> >          .rept __HYPERVISOR_arch_0-(.-hypercall_args_table)
> >          .byte 0 /* do_ni_hypercall      */
> >          .endr
> 
> You need to do the same in x86/x86_64/compat/entry.S for 32-on-64 guests
> to be able to call it too.
> 
> Also, can you add some comments somewhere (say, public/trace.h) to say
> exactly what the new hypercall does and how to use it?  A patch to
> docs/src/interface.tex would be great too, even if the rest of that doc
> is quite out of date. 
> 
> George, is it worth trying to merge this into the existing HVMOP that
> does the same thing?

I'm not sure what you mean by "merging this into the existing HVMOP".
Do you mean just having dom0 (or whoever) call HVMOP_trace instead of
making a separate hypercall?

 -George

  reply	other threads:[~2011-07-18 11:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-15 15:38 [PATCH 0 of 4] xentrace fixes for xen-unstable Olaf Hering
2011-07-15 15:38 ` [PATCH 1 of 4] hvm: remove cast from trace_var call for HVMOP_xentrace Olaf Hering
2011-07-15 15:48   ` George Dunlap
2011-07-15 15:38 ` [PATCH 2 of 4] xentrace: replace ASSERT with printk in __trace_var Olaf Hering
2011-07-15 16:31   ` George Dunlap
2011-07-16  8:20     ` Keir Fraser
2011-07-18  9:04       ` Olaf Hering
2011-07-18  9:37         ` Keir Fraser
2011-07-18 10:41       ` George Dunlap
2011-07-18 11:12         ` Keir Fraser
2011-07-15 15:38 ` [PATCH 3 of 4] xentrace: reduce size of extradata in trace_irq_mask() Olaf Hering
2011-07-15 16:28   ` George Dunlap
2011-07-16  8:25   ` Keir Fraser
2011-07-15 15:38 ` [PATCH 4 of 4] Add a trace hypercall to allow tracing from dom0 or domU Olaf Hering
2011-07-15 16:49   ` George Dunlap
2011-07-15 20:45     ` Olaf Hering
2011-07-18  8:56   ` Tim Deegan
2011-07-18 11:17     ` George Dunlap [this message]
2011-07-18 12:22       ` Tim Deegan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1310987856.3401.23.camel@elijah \
    --to=george.dunlap@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Tim.Deegan@eu.citrix.com \
    --cc=olaf@aepfle.de \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.