All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <srostedt@redhat.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCHv2] trace-cmd: add kvm_mmu_prepare_zap_page even and fix kvm_mmu_get_page event output in kvm plugin
Date: Mon, 28 Jan 2013 09:59:52 -0500	[thread overview]
Message-ID: <1359385192.3123.94.camel@fedora> (raw)
In-Reply-To: <20130128111248.GB22871@redhat.com>

On Mon, 2013-01-28 at 13:12 +0200, Gleb Natapov wrote:
> Ping.

Please send email (especially patches) to my rostedt@goodmis.org
account. I don't always read my RH email, except to skim it for RH
related work.

I may miss a patch in my goodmis account, but I will periodically purge
it (go through each email one by one and put them into special folders
or delete them). A patch missed will eventually be hit there. But that's
not the same for my RH account. A patch missed there, will never be seen
again.

Note, I'm still in November of my "purge" so a December patch will
probably take a week or two to see now ;-)

Anyway, I'll take a look at this patch and let you know.

Thanks,

-- Steve

> 
> On Thu, Dec 27, 2012 at 01:34:15PM +0200, Gleb Natapov wrote:
> > kvm_mmu_zap_page event was renamed to kvm_mmu_prepare_zap_page. Add new
> > even, but leave the old one to parse older traces.  Print out "created"
> > field for kvm_mmu_get_page event.
> > 
> > Signed-off-by: Gleb Natapov <gleb@redhat.com>
> > diff --git a/plugin_kvm.c b/plugin_kvm.c
> > index 55812ef..9b376d8 100644
> > --- a/plugin_kvm.c
> > +++ b/plugin_kvm.c
> > @@ -382,7 +382,7 @@ static int kvm_mmu_print_role(struct trace_seq *s, struct pevent_record *record,
> >  	} else
> >  		trace_seq_printf(s, "WORD: %08x", role.word);
> >  
> > -	pevent_print_num_field(s, " root %u",  event,
> > +	pevent_print_num_field(s, " root %u ",  event,
> >  			       "root_count", record, 1);
> >  
> >  	if (pevent_get_field_val(s, event, "unsync", record, &val, 1) < 0)
> > @@ -397,6 +397,11 @@ static int kvm_mmu_get_page_handler(struct trace_seq *s, struct pevent_record *r
> >  {
> >  	unsigned long long val;
> >  
> > +	if (pevent_get_field_val(s, event, "created", record, &val, 1) < 0)
> > +		return -1;
> > +
> > +	trace_seq_printf(s, "%s ", val ? "new" : "existing");
> > +
> >  	if (pevent_get_field_val(s, event, "gfn", record, &val, 1) < 0)
> >  		return -1;
> >  
> > @@ -433,5 +438,9 @@ int PEVENT_PLUGIN_LOADER(struct pevent *pevent)
> >  	pevent_register_event_handler(pevent, -1, "kvmmmu", "kvm_mmu_zap_page",
> >  				      kvm_mmu_print_role, NULL);
> >  
> > +	pevent_register_event_handler(pevent, -1, "kvmmmu",
> > +			"kvm_mmu_prepare_zap_page", kvm_mmu_print_role,
> > +			NULL);
> > +
> >  	return 0;
> >  }
> > --
> > 			Gleb.
> > --
> > To unsubscribe from this list: send the line "unsubscribe kvm" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> --
> 			Gleb.



  reply	other threads:[~2013-01-28 14:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-27 11:34 [PATCHv2] trace-cmd: add kvm_mmu_prepare_zap_page even and fix kvm_mmu_get_page event output in kvm plugin Gleb Natapov
2013-01-28 11:12 ` Gleb Natapov
2013-01-28 14:59   ` Steven Rostedt [this message]
2013-01-28 15:23   ` Steven Rostedt
2013-01-28 17:00     ` Gleb Natapov
2013-01-28 17:22       ` Steven Rostedt

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=1359385192.3123.94.camel@fedora \
    --to=srostedt@redhat.com \
    --cc=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    /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.