All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: George Dunlap <george.dunlap@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir@xen.org>
Subject: Re: [PATCH 4 of 4] Add a trace hypercall to allow tracing from dom0 or domU
Date: Fri, 15 Jul 2011 22:45:52 +0200	[thread overview]
Message-ID: <20110715204551.GA14265@aepfle.de> (raw)
In-Reply-To: <1310748546.448.106.camel@elijah>

On Fri, Jul 15, George Dunlap wrote:

> On Fri, 2011-07-15 at 16:38 +0100, Olaf Hering wrote:
> > @@ -65,6 +67,7 @@
> >  #define TRC_LOST_RECORDS        (TRC_GEN + 1)
> >  #define TRC_TRACE_WRAP_BUFFER  (TRC_GEN + 2)
> >  #define TRC_TRACE_CPU_CHANGE    (TRC_GEN + 3)
> > +#define TRC_TRACE_GUEST_HYPERCALL (TRC_GEN + 4)
> 
> Looks like perhaps a leftover from an earlier patch? :-)

Yes, thats true. It was a domctrl a few weeks ago.

> > diff -r 6e4aef7b5051 -r f72dcd1b8bbd xen/include/public/xen.h
> > --- a/xen/include/public/xen.h
> > +++ b/xen/include/public/xen.h
> > @@ -94,6 +94,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_pfn_t);
> >  #define __HYPERVISOR_kexec_op             37
> >  #define __HYPERVISOR_tmem_op              38
> >  #define __HYPERVISOR_xc_reserved_op       39 /* reserved for XenClient */
> > +#define __HYPERVISOR_xentrace_op          40
> 
> Seems unnecessary to make a whole hypercall just for this one thing, but
> I'll defer to Keir's judgement on that.  At very least, it should accept
> an "op" command, of which "trace" is just one, so that it's expandable
> in the future without breaking backwards compatibility.

One reason is that trace_hypercall() should not trace itself.

Olaf

  reply	other threads:[~2011-07-15 20:45 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 [this message]
2011-07-18  8:56   ` Tim Deegan
2011-07-18 11:17     ` George Dunlap
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=20110715204551.GA14265@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=george.dunlap@citrix.com \
    --cc=keir@xen.org \
    --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.