Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp749113ybh; Wed, 22 Jul 2020 12:10:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAWVnFwBhzDIREidjBDjyVwPhNUBeQax8kezX+uUiRsxxUGsFXLIyloPfcfj6pht302vpm X-Received: by 2002:a17:906:1491:: with SMTP id x17mr1048997ejc.416.1595445023472; Wed, 22 Jul 2020 12:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595445023; cv=none; d=google.com; s=arc-20160816; b=lXm2OpdfCi1Lr2hj+K56xpr7zETCgt/ZkBjEl4oqoMUPfXfip9E8d9rtPYO6ZnXBu+ duZCQnVtfURB6PXSz8/GYM4RREqxIHea21DMD0h0gN+IJRO7lWCNIs1awKf8Si9h/5Sp UxDG6gaJwtJnViI9zXPY/hDKJc5KyAtKV5ONV7MzblYGyl8xCOB5r8dYj1lexDgqtj+S rZLOfcJO0JN1FNwpuzc+tuW0VFDzKSr+XYcukN4RyW0xAbBverCZ6kZfH6x2XGi9VFyq eR2EDhEVSaVuvhoP/GZpryYorIPv1bylHOR5pXQd8sgWFC1SxdVfGqV6uJjp/HXvxGyn z5Dw== 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=rqOrtWj/tuaI6qvLYHwwa/YODpZHwAkaR7yTmtlPi2M=; b=AQ7O3uHRgH8EiVH5tX99RiK63GRrplFAokKjGYmmB2f29syZJSvAGosum8/Mvr8jdN WyRRhyrUYqGw9aBq+XMDPUSqvdNWPF4we9oGhdqK5LiMc6V2t6tbrGpWMntZTNCa2Rkw yPMepMRcjThrq6uGCFe6tLulhyPATLqnZvrOk2YpDrgXdXnnd7EZIUEjmEtpvi7UsRnA w4bcNICkdf1doiJzqEEiJIwqGWoikiovqlSqY4GpXJoBnN03hBP5RIqYYR9FnoVeS83+ bmBcXA15BIXhMUhZXfJIaO5YldA3WoJNqAnK2zSpvU2ESlhoBvakzA/i0WZ9c6jdVY+b +iHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mc14si559097ejb.282.2020.07.22.12.09.58; Wed, 22 Jul 2020 12:10:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726841AbgGVTJr (ORCPT + 99 others); Wed, 22 Jul 2020 15:09:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:53230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgGVTJq (ORCPT ); Wed, 22 Jul 2020 15:09:46 -0400 Received: from oasis.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 D81D320714; Wed, 22 Jul 2020 19:09:44 +0000 (UTC) Date: Wed, 22 Jul 2020 15:09:43 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Sami Tolvanen , Masahiro Yamada , Will Deacon , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org, Josh Poimboeuf Subject: Re: [RFC][PATCH] objtool,x86_64: Replace recordmcount with objtool Message-ID: <20200722150943.53046592@oasis.local.home> In-Reply-To: <20200722184137.GP10769@hirez.programming.kicks-ass.net> References: <20200624203200.78870-1-samitolvanen@google.com> <20200624203200.78870-5-samitolvanen@google.com> <20200624212737.GV4817@hirez.programming.kicks-ass.net> <20200624214530.GA120457@google.com> <20200625074530.GW4817@hirez.programming.kicks-ass.net> <20200625161503.GB173089@google.com> <20200625200235.GQ4781@hirez.programming.kicks-ass.net> <20200625224042.GA169781@google.com> <20200626112931.GF4817@hirez.programming.kicks-ass.net> <20200722135542.41127cc4@oasis.local.home> <20200722184137.GP10769@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 Wed, 22 Jul 2020 20:41:37 +0200 Peter Zijlstra wrote: > > That said, Andi Kleen added an option to gcc called -mnop-mcount which > > will have gcc do both create the mcount section and convert the calls > > into nops. When doing so, it defines CC_USING_NOP_MCOUNT which will > > tell ftrace to expect the calls to already be converted. > > That seems like the much easier solution, then we can forget about > recordmcount / objtool entirely for this. Of course that was only for some gcc compilers, and I'm not sure if clang can do this. Or do you just see all compilers doing this in the future, and not worrying about record-mcount at all, and bothering with objtool? -- Steve