public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Frederic Weisbecker <fweisbec@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Mike Galbraith <efault@gmx.de>, Paul Mackerras <paulus@samba.org>,
	Tom Zanussi <tzanussi@gmail.com>
Subject: Re: [PATCH v2] perf tools: Start the perf.data mapping at data offset in perf trace
Date: Wed, 7 Oct 2009 00:29:26 +0200	[thread overview]
Message-ID: <20091006222924.GA11007@nowhere> (raw)
In-Reply-To: <1254856886-10348-1-git-send-email-fweisbec@gmail.com>

On Tue, Oct 06, 2009 at 09:21:26PM +0200, Frederic Weisbecker wrote:
> Currently, we are mapping perf.data in the beginning of the file
> and use the data offset as a buffer offset. This may exceed the
> mapping area if the data offset is upper than page_size * mmap_window
> and result in a page fault (thing that happen if we merge trace.info
> in perf.data).
> 
> Instead, let's start the mapping in the page that matches our data
> offset.
> 
> v2: Drop a junk from another patch (trace_report() removal)
> 
> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> Cc: Mike Galbraith <efault@gmx.de>
> Cc: Paul Mackerras <paulus@samba.org>
> Cc: Tom Zanussi <tzanussi@gmail.com>


I just tested the trace.info drop with perf sched, and we have the same bug
with mmap.

I guess we should rather have a common helper to use mmap on perf.data
and rely on a callback to process the events.
I'm putting this in my TODO list.


  reply	other threads:[~2009-10-06 22:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-06 19:17 [PATCH] perf tools: Start the perf.data mapping at data offset in perf trace Frederic Weisbecker
2009-10-06 19:21 ` [PATCH v2] " Frederic Weisbecker
2009-10-06 22:29   ` Frederic Weisbecker [this message]
2009-10-07  7:31   ` [tip:perf/core] " tip-bot for Frederic Weisbecker

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=20091006222924.GA11007@nowhere \
    --to=fweisbec@gmail.com \
    --cc=acme@redhat.com \
    --cc=efault@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=paulus@samba.org \
    --cc=peterz@infradead.org \
    --cc=tzanussi@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox