From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754427Ab0CEQiu (ORCPT ); Fri, 5 Mar 2010 11:38:50 -0500 Received: from mail-fx0-f219.google.com ([209.85.220.219]:35224 "EHLO mail-fx0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752360Ab0CEQis (ORCPT ); Fri, 5 Mar 2010 11:38:48 -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=ZIUu9g37dXpzFlhCr6j2cHVrwKsw3bxsBCFy5fDXzKMQyDC4ng/73nAm9kPqSHwrXI b7jy54UBPht3m2tHi2I24TsKXZWhctGxh05PDR1xNmIOj80isiG7GCGrHnfaGLbLJLdI ktTEUhjMXDxwhmgNRq1iBUpxerFyb96nrmF3U= Date: Fri, 5 Mar 2010 17:38:41 +0100 From: Frederic Weisbecker To: Masami Hiramatsu Cc: Peter Zijlstra , LKML , Ingo Molnar , Thomas Gleixner , "H . Peter Anvin" , Paul Mackerras , Steven Rostedt , Arnaldo Carvalho de Melo , Jason Baron , Archs Subject: Re: [PATCH 1/2] perf: Introduce new perf_save_regs() for hot regs snapshot Message-ID: <20100305163838.GA5244@nowhere> References: <1267605529.25158.75.camel@laptop> <1267758486-30499-2-git-send-regression-fweisbec@gmail.com> <4B911E57.60004@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B911E57.60004@redhat.com> 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 Fri, Mar 05, 2010 at 10:08:07AM -0500, Masami Hiramatsu wrote: > > +void perf_arch_save_regs(struct pt_regs *regs, unsigned long ip, int skip) > > Hmm, why would you call it 'save_regs' ? > It seems that this function is just for fixing registers > instead of saving it into somewhere... > > Thank you, Hmm, save_regs() describes what it does: you pass a pt_regs and it saves registers inside. But it has also a kind of fixup thing as it also rewinds. I'm not sure using a fixup thing for the naming is correct as we are not starting with initial regs passed to the function (just a raw buffer). What about perf_save_caller_regs() ?