From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933391Ab0JRWgU (ORCPT ); Mon, 18 Oct 2010 18:36:20 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:63473 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932169Ab0JRWgS (ORCPT ); Mon, 18 Oct 2010 18:36:18 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=uhIQ0ZYLsmCoTKM0knlMQcmHIKhWORc+8GNBH1THWJSAKZPVMpURLRDpLf8j7wnxkm HpWmoyWC9q8ri8ZHIjDlmJSU4av3vXAqISGr7XYB7eFQnVq+t6aOi6fdjmH9G83aFQ/H 0cuK+9X9+bL1eEoR4dXnqbVJHhwfZfJ5BtQSg= Date: Tue, 19 Oct 2010 00:35:42 +0200 From: Frederic Weisbecker To: Stephane Eranian Cc: Peter Zijlstra , LKML , Ingo Molnar , Arnaldo Carvalho de Melo , Paul Mackerras , Cyrill Gorcunov , Tom Zanussi , Masami Hiramatsu , Steven Rostedt , Robert Richter , David Miller Subject: Re: [RFC PATCH 2/9] perf: Add ability to dump user regs Message-ID: <20101018223539.GB5370@nowhere> References: <1286946421-32202-1-git-send-regression-fweisbec@gmail.com> <1286946421-32202-3-git-send-regression-fweisbec@gmail.com> <1286954453.29097.58.camel@twins> <20101014112000.GA5336@nowhere> <20101015225722.GA5354@nowhere> <1287310023.1998.150.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 18, 2010 at 12:01:18PM +0200, Stephane Eranian wrote: > On Sun, Oct 17, 2010 at 12:07 PM, Peter Zijlstra wrote: > > On Sat, 2010-10-16 at 00:58 +0200, Frederic Weisbecker wrote: > >> > Yes, PEBS does not capture the entire state. > >> > > >> > Here is what you get on Intel Core: > >> >         u64 flags, ip; > >> >         u64 ax, bx, cx, dx; > >> >         u64 si, di, bp, sp; > >> >         u64 r8,  r9,  r10, r11; > >> >         u64 r12, r13, r14, r15; > > > >> Ok, that seems to cover most of the state. I guess few people care > >> about cs, ds, es, fs, gs, most of the time. > > > > Yeah, except if you want to profile wine or something like that ;-) > > > That means that if you want the segment registers, then you cannot > use PEBS. I think you could catch that when the event is created. > > The other problem here is how to name registers at the API level. > You would be introducing architecture-specific register names > in perf_event.h. There is no such a thing today. That can go into an asm/perf_regs.h or something. It's up to the arch to name its registers.