All of lore.kernel.org
 help / color / mirror / Atom feed
From: Taras Glek <tglek@mozilla.com>
To: lkml <linux-kernel@vger.kernel.org>
Subject: How to use perf to log page faults
Date: Wed, 12 May 2010 12:38:30 -0700	[thread overview]
Message-ID: <4BEB03B6.6080706@mozilla.com> (raw)

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

             reply	other threads:[~2010-05-12 19:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-12 19:38 Taras Glek [this message]
2010-05-12 19:59 ` How to use perf to log page faults Frederic Weisbecker
2010-05-12 21:18   ` Taras Glek
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=4BEB03B6.6080706@mozilla.com \
    --to=tglek@mozilla.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.