[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100512195945.GE10028@nowhere>
Date: Wed, 12 May 2010 21:59:49 +0200
From: Frederic Weisbecker <fweisbec@...il.com>
To: Taras Glek <tglek@...illa.com>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: Re: How to use perf to log page faults
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?
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists