From: Taras Glek <tglek@mozilla.com>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: How to use perf to log page faults
Date: Wed, 12 May 2010 14:18:08 -0700 [thread overview]
Message-ID: <4BEB1B10.40200@mozilla.com> (raw)
In-Reply-To: <20100512195945.GE10028@nowhere>
On 05/12/2010 12:59 PM, Frederic Weisbecker wrote:
> On Wed, May 12, 2010 at 12:38:30PM -0700, Taras Glek wrote:
>
>> Hi,
>> From the docs it seems that perf may be useful for logging page faults.
>> I tried
>> perf record -g -d -f -e page-faults<mycommand>
>> but all I got were PERF_RECORD_MMAP events.
>>
>> I'm using 2.6.32. Ideally I'd like to collect fault addresses and
>> userspace stacks that caused them. Isn't this what the page-fault event
>> is for?
>>
>> Taras
>>
>
> Could you try with -c 1 ?
>
> Otherwise, does that work on the latest kernel?
>
this just gets me PERF_RECORD_SAMPLE events which don't seem to be
related to page-faults(ie they show up with/without -e page-faults).
I don't have the latest kernel installed here. Can you get perf
page-fault events on your system?
Taras
next prev parent reply other threads:[~2010-05-12 21:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-12 19:38 How to use perf to log page faults Taras Glek
2010-05-12 19:59 ` Frederic Weisbecker
2010-05-12 21:18 ` Taras Glek [this message]
2010-05-12 21:29 ` Frederic Weisbecker
2010-05-12 20:07 ` Andi Kleen
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=4BEB1B10.40200@mozilla.com \
--to=tglek@mozilla.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@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 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).