Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1154223yba; Thu, 9 May 2019 11:37:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpRaAl90QgULcaM3bvx7il2CNxXKQn9ltPvrUO2p5/iqNtALXXLDiJZr6eUZTqyvOD6ahS X-Received: by 2002:a62:38cc:: with SMTP id f195mr7545703pfa.15.1557427077079; Thu, 09 May 2019 11:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557427077; cv=none; d=google.com; s=arc-20160816; b=bIKKZlkmwOFy/D+o6l8AapcbOvKAaBzbxBasg8Wy3gFXxcQfXHJAFcXh64mrFiNbCg krbFTUnhGEiF3wcnrTLHjbbam+AvCIJsswIYkqO0oSSXM3mb7kmNlZKDh395GAwKB7vB NIqe+UuFbcB1DV3doizkPVxKXYRxVfLwJnuIvJbC1l/zZs3xOGupu+9ZCfyp21HEsWOV Yh9f9bKfAxPyHBaYHTQsmMzBx2ASpNhH+XyWJvnBnefbi6+wRCMaNF/8GtMNKux5g7Fp VbEbJjc40WfaX7Kpr7+8b4Mq6j3O6Gj9DJ19Di9hRuxuv2rBIzbth72j2n9EtYfGX7D3 oyGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=T79aHUrvZKHHBEFmZfq8JmrxyCSetr0COTfsAhySSEs=; b=FwWPiZpbkFmZliXxi5yi7/g+gFrPSzLpxMv3y2vD+cFcAvVCF/IuEKx1VDZNHRyIge LXnP28EZDmev0m2gwUAmpy+rtGwjHpLprhhuMMSLwSxjCrnsdJAkcWGnUNm+bD25bnTz AFmrzNpxOSUEtG1KdE7/ARBxLTNkxAlVm58O+YOTDC2//7bIa1eBj4hqvA3B77WiHffs YGPi1fY9lgXvxRPeqc1b9Svb5SFv/k1Dw1XM/PMlGjexaZXm/P0ISUygDrspR4CKPzFV xlX01K2iIhtE2LPSecXsJqz7YG5azWkMUxQuWDnTPSFXiEe0N2sa13n4E7JKSqDT/WPV dzUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si4008079plz.198.2019.05.09.11.37.41; Thu, 09 May 2019 11:37:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbfEISge (ORCPT + 99 others); Thu, 9 May 2019 14:36:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:32998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbfEISge (ORCPT ); Thu, 9 May 2019 14:36:34 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3EB76217D6; Thu, 9 May 2019 18:36:31 +0000 (UTC) Date: Thu, 9 May 2019 14:36:29 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Masami Hiramatsu , Josh Poimboeuf , linux-kernel@vger.kernel.org, Linus Torvalds , Ingo Molnar , Andrew Morton , Andy Lutomirski , Nicolai Stange , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , Shuah Khan , Konrad Rzeszutek Wilk , Tim Chen , Sebastian Andrzej Siewior , Mimi Zohar , Juergen Gross , Nick Desaulniers , Nayna Jain , Masahiro Yamada , Joerg Roedel , linux-kselftest@vger.kernel.org Subject: Re: [PATCH 2/4] x86/kprobes: Fix frame pointer annotations Message-ID: <20190509143629.5c104011@gandalf.local.home> In-Reply-To: <20190509182622.GB2623@hirez.programming.kicks-ass.net> References: <20190508074901.982470324@infradead.org> <20190508080612.721269814@infradead.org> <20190508115416.nblx7c2kocidpytm@treble> <20190508120416.GL2589@hirez.programming.kicks-ass.net> <20190508124248.u5ukpbhnh4wpiccq@treble> <20190508153907.GM2589@hirez.programming.kicks-ass.net> <20190508184848.qerg3flv3ej3xsev@treble> <20190509102030.dfa62e058f09d0d8cbdd6053@kernel.org> <20190509081431.GO2589@hirez.programming.kicks-ass.net> <20190509173741.pfvecznqdndihxzg@home.goodmis.org> <20190509182622.GB2623@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 May 2019 20:26:22 +0200 Peter Zijlstra wrote: > Still, maybe we can wrap the thing in a .macro and reuse things that > way. Because I really hate there are at least 3 (x2 for x86_64) copies > of this around. I'm good with something like this. Have a single place that does the pt_regs saving would be great. Then I could separate ftrace_regs_caller from ftrace_caller, and simplify them both, as I would only need to make sure frame pointers still work for ftrace_caller, and ftrace_regs_caller would depend on the macro to make sure it works. -- Steve