linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@infradead.org>
To: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org, David Ahern <dsahern@gmail.com>,
	Arnaldo Carvalho de Melo <acme@redhat.com>
Subject: [PATCH 1/6] perf tools: Add default handler for mmap2 events
Date: Mon,  7 Oct 2013 16:02:24 -0300	[thread overview]
Message-ID: <1381172549-3210-2-git-send-email-acme@infradead.org> (raw)
In-Reply-To: <1381172549-3210-1-git-send-email-acme@infradead.org>

From: David Ahern <dsahern@gmail.com>

Commands that do not implement an mmap2 handler should at least not die
with a segfault when processing files with MMAP2 events.

Signed-off-by: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/1379900700-5186-5-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/util/session.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index 70ffa41518f3..37c4718f6be1 100644
--- 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)
-- 
1.8.1.4


  reply	other threads:[~2013-10-07 19:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-07 19:02 [GIT PULL 0/6] perf/urgent fixes Arnaldo Carvalho de Melo
2013-10-07 19:02 ` Arnaldo Carvalho de Melo [this message]
2013-10-07 19:02 ` [PATCH 2/6] perf stat: Set child_pid after perf_evlist__prepare_workload() Arnaldo Carvalho de Melo
2013-10-07 19:02 ` [PATCH 3/6] perf tools: Fix libaudit test Arnaldo Carvalho de Melo
2013-10-07 19:02 ` [PATCH 4/6] perf probe: Fix to find line information for probe list Arnaldo Carvalho de Melo
2013-10-07 19:02 ` [PATCH 5/6] perf tools: Fix installation of libexec components Arnaldo Carvalho de Melo
2013-10-07 19:02 ` [PATCH 6/6] perf session: Fix infinite loop on invalid perf.data file Arnaldo Carvalho de Melo
2013-10-08  5:32 ` [GIT PULL 0/6] perf/urgent fixes Ingo Molnar

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=1381172549-3210-2-git-send-email-acme@infradead.org \
    --to=acme@infradead.org \
    --cc=acme@redhat.com \
    --cc=dsahern@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).