From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932194Ab0CDTBr (ORCPT ); Thu, 4 Mar 2010 14:01:47 -0500 Received: from mail-fx0-f219.google.com ([209.85.220.219]:43364 "EHLO mail-fx0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755274Ab0CDTBp (ORCPT ); Thu, 4 Mar 2010 14:01:45 -0500 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:in-reply-to:user-agent; b=dUTGRf51odIeUDab2w3vezp077aasODeWkN7I6I19O8gW1ey/N28HUO8US8iNjbfuH EQuRPLilPHx9FWy5Eno/mCsoCFZ+0nCE/YdyrA7OPgwOZdbv5fOKQQ4LCwUK9fjxDyQ3 Silbu5P5oDdHU0QIjXiIGKhI2OpQ0zOHXhoQM= Date: Thu, 4 Mar 2010 20:01:40 +0100 From: Frederic Weisbecker To: Peter Zijlstra Cc: Ingo Molnar , LKML , Thomas Gleixner , "H. Peter Anvin" , Paul Mackerras , Steven Rostedt , Arnaldo Carvalho de Melo Subject: Re: [RFC][PATCH 2/3] perf: Take a hot regs snapshot for trace events Message-ID: <20100304190135.GA28830@nowhere> References: <1267599302-2886-1-git-send-regression-fweisbec@gmail.com> <1267599302-2886-3-git-send-regression-fweisbec@gmail.com> <1267605529.25158.75.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1267605529.25158.75.camel@laptop> 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 Wed, Mar 03, 2010 at 09:38:49AM +0100, Peter Zijlstra wrote: > On Wed, 2010-03-03 at 07:55 +0100, Frederic Weisbecker wrote: > > /* > > + * Hot regs snapshot support -- arch specific > > + * This needs to be a macro because we want the current > > + * frame pointer. > > + */ > > +#ifndef PERF_SAVE_REGS > > +#define PERF_SAVE_REGS(regs) memset(regs, 0, sizeof(*regs)); > > +#endif > > It would be nice to have the fallback at least set the current or > calling IP, now you've basically wrecked stuff for everything !x86. Actually I can't, as there doesn't seem to be a way to write regs->ip in a generic way :-s