Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754857AbZFMIpA (ORCPT ); Sat, 13 Jun 2009 04:45:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750929AbZFMIov (ORCPT ); Sat, 13 Jun 2009 04:44:51 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.142]:52577 "EHLO e2.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750782AbZFMIot (ORCPT ); Sat, 13 Jun 2009 04:44:49 -0400 Message-ID: <4A336700.3060309@linux.vnet.ibm.com> Date: Sat, 13 Jun 2009 01:44:48 -0700 From: Corey Ashford User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Paul Mackerras CC: LKML , Ingo Molnar , Peter Zijlstra Subject: Re: perf_counters: page fault trace record References: <4A330022.3070105@linux.vnet.ibm.com> <18995.8319.322002.917595@cargo.ozlabs.ibm.com> In-Reply-To: <18995.8319.322002.917595@cargo.ozlabs.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 958 Lines: 25 Paul Mackerras wrote: > Corey Ashford writes: > >> One of the tools we are working on needs to be able to look not only at counts >> of page faults, but where they are occurring (ip and faulting page address). >> >> What would you think about adding a new bit to the config record, something like: > > Can't you do what you need just using a page fault software counter > with sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_ADDR and > sample_period = 1? I thought about that, but I was under the (incorrect?) impression that on Power, the PERF_SAMPLE_ADDR would be set by the value of the SDAR register, which wouldn't be correct for the case of a page fault. I need to go look at the kernel code :) - Corey -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/