From: Paul Mackerras <paulus@samba.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>, linux-kernel@vger.kernel.org
Subject: Does perf_counter need to make mmap pages uptodate?
Date: Fri, 14 Aug 2009 16:00:35 +1000 [thread overview]
Message-ID: <19076.64899.915246.955189@drongo.ozlabs.ibm.com> (raw)
At a colleague's request, I did a backport of the perf_counter code to
2.6.30.3. When I tried "perf record ls" I hit the WARN_ON_ONCE in
__set_page_dirty (fs/buffer.c line 669):
WARN_ON_ONCE(warn && !PageUptodate(page));
and indeed we never mark the pages that we let userspace mmap as being
uptodate. To get around the problem I added
SetPageUptodate(vmf->page);
after the get_page call in perf_mmap_fault, but I can't see any
relevant changes between 2.6.30 and current upstream that would cause
this to be necessary for 2.6.30 but not for current upstream.
Should we in fact be marking the pages uptodate, or is there some
reason why we should never get to that WARN_ON_ONCE?
Paul.
next reply other threads:[~2009-08-14 6:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-14 6:00 Paul Mackerras [this message]
2009-08-14 8:33 ` Does perf_counter need to make mmap pages uptodate? Peter Zijlstra
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=19076.64899.915246.955189@drongo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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