mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@redhat.com>
To: Stephane Eranian <eranian@google.com>
Cc: Ingo Molnar <mingo@kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Mike Galbraith <bitbucket@online.de>,
	Peter Zijlstra <peterz@infradead.org>,
	"mingo@elte.hu" <mingo@elte.hu>
Subject: Re: [PATCH] perf tools: fix missing default initialization for tool->mmap2
Date: Tue, 8 Oct 2013 09:28:05 -0300	[thread overview]
Message-ID: <20131008122805.GB3955@infradead.org> (raw)
In-Reply-To: <CABPqkBSiWcAZ4CxjJ8fvQ6Jm7Y242-ehHd-X4y0T70wY_dy+Zw@mail.gmail.com>

Em Tue, Oct 08, 2013 at 02:02:06PM +0200, Stephane Eranian escreveu:
> On Tue, Oct 8, 2013 at 1:59 PM, Ingo Molnar <mingo@kernel.org> wrote:
> >> --- a/tools/perf/util/session.c
> >> +++ b/tools/perf/util/session.c
> >> @@ -256,6 +256,8 @@ void perf_tool__fill_defaults(struct perf_tool *tool)
> >>               tool->sample = process_event_sample_stub;
> >>       if (tool->mmap == NULL)
> >>               tool->mmap = process_event_stub;
> >> +     if (tool->mmap2 == NULL)
> >> +             tool->mmap2 = process_event_stub;
> >>       if (tool->comm == NULL)
> >>               tool->comm = process_event_stub;
> >>       if (tool->fork == NULL)

> > I think it's already fixed in tip:perf/urgent:

> >   6adb0b0ae26f perf tools: Add default handler for mmap2 events

> Ok, it's good then.
> Thanks for checking.

Yeah, since 'perf sched' doesn't use mmap records, just relying on the
stub default handler is enough.

- Arnaldo

  reply	other threads:[~2013-10-08 12:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-08 10:50 Stephane Eranian
2013-10-08 11:59 ` Ingo Molnar
2013-10-08 12:02   ` Stephane Eranian
2013-10-08 12:28     ` Arnaldo Carvalho de Melo [this message]
2013-10-08 12:46       ` Stephane Eranian

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=20131008122805.GB3955@infradead.org \
    --to=acme@redhat.com \
    --cc=bitbucket@online.de \
    --cc=eranian@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®