Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp779616ybh; Wed, 22 Jul 2020 13:04:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv8ETFfrFvDp3dd76Eh9wQWh/4QxgTf6SzudJGrTWFHpJgaSxvdxigxLC7brW+OW9cBysK X-Received: by 2002:a17:906:2c18:: with SMTP id e24mr1216144ejh.335.1595448243735; Wed, 22 Jul 2020 13:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595448243; cv=none; d=google.com; s=arc-20160816; b=GaSmFV8q7toCm/NC48xgaz3l1D5aw6TgDHaJY4USjqxFJeLErIuUb2UdzsJfT7zB7l l6Lm2doOz0qsgkM6PITCkc0kAk4fIUP8LZ2Gu2EwAEXIqE8XJr4e6/c2PT/4e8/j+551 WmF58YLbdQ6tYi+RoAVRp41cAVP8MrXNY85ACK3Jdo5YFJ2aj4hToewtBhxiMRZ9pl3Y FdLroPvRP1KMCRDbJR9vDomRr+ShbWNDGvMBqdWpmtrRJHzcairIf1ltjX85C6G7M8Vm P8yZnQWwP7uPNAoBpJVIsYjnn3kuVHY8aGvrsq91OXW8QAzM/NfeVjV8qhTb/xi7fTjw ZlOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Q5uho8c111Sif1rjA6es7LKqax+bTf/baHAxUzEgiBs=; b=lRXxsUgz4EXKBfYtHjetbJhk0Ru9FNkYebkJhvnSzHGsxI26Sa1JkR/fGkWYuukbJ1 cumE/zE6LqUYGZio2pzy9KX+CIQJ17yHZU27fBRY5HUtjps1dV26pIw8pWy+9JGoGjyc fnJBCAxrt/1zG2bABOjG8c2GRY48g/UiS8GtVc1BVy31BON5/VUcrAEGnA80LguNUPky N/sa41sJI72BvZaB6r3VYJMS+vMNSHvAG3IONcULnHvCi+Sx1hXMArpfO8oiVajTO2KH EzxSumInLAM9z/ocyIp3az7jT4igmtpn89cyzRVR9bsvn/nS6YlezpXJNodmjSNcMtZf Vasw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PPTfc7of; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si627301ejs.1.2020.07.22.13.03.40; Wed, 22 Jul 2020 13:04:03 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=PPTfc7of; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732815AbgGVUD0 (ORCPT + 99 others); Wed, 22 Jul 2020 16:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732775AbgGVUDZ (ORCPT ); Wed, 22 Jul 2020 16:03:25 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7997C0619E2 for ; Wed, 22 Jul 2020 13:03:24 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id w9so3596700ejc.8 for ; Wed, 22 Jul 2020 13:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q5uho8c111Sif1rjA6es7LKqax+bTf/baHAxUzEgiBs=; b=PPTfc7ofS2HU2+xEOjMWN0IYf6fcp270Om5s7QJSfrzzNXmADk8v71ZGdMdkkRTAax NVRK3DHJsdFwMwSaAys3u2BAf0La4VMtXlTOgADR6wEvMjklDRaoFIIB6Xum7WpF7uMQ ypktKp91IyG4RD00YrogGN1sYM6Y8KY9L91rR0XwVxsd0mRtoQ39Rx8npPbZlXihy3El gQYTvwonVqPerONvAG74ahVIgSQWcPvCwjduf5+9xHV+7YMEbE4BqNZBDUUsFY0g/lAi Fhhu/daQvEaSVXc8eCAcO9yxTSxiStt0pOyIX7T+9RbyWTUKOKqDIxXbNEB2Xr4GLpHV BD7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q5uho8c111Sif1rjA6es7LKqax+bTf/baHAxUzEgiBs=; b=FXWfoYnP3GCfDDgCJ+wTehTNFwaFaS3TpjAq/QztvFZTyxZha5Tsh0q6qwBf+pI2BU Q9O0KOTgCAmLpPkQzp7S2IubLI7MU3+hhfFkyEUVS7RxpBvbaU/B7VDYW9TqTPZ9ziSf z480wSYQ/XiPPrZR9bXZNIrb0UmuLsU95r8Yx5W9CEp1jxhVHfwGKbzTrC4LmpBM3qVv E27vUeJ0ISkJnwPeh3GeYDV29IlJ8++Tv/avl+uQXn6QEgu+hDxsn1hWAKs24gZnn2nc d587KpLnl6OYyWe4cbeyonpjCGOkzqDh7g2YNAuw8Mak3h6SnnnzSHzSkGeQbwUrE1Sj xPwA== X-Gm-Message-State: AOAM532BpgCKKM8zKA5GXMQRR5vO11yuo/6jq/C8O5g+eGCtx+7/G83A XQDR4yHM61pXVgbiPJO3FcWbmzffMWvQHVsFJQzBWw== X-Received: by 2002:a17:906:6959:: with SMTP id c25mr1128516ejs.375.1595448203126; Wed, 22 Jul 2020 13:03:23 -0700 (PDT) MIME-Version: 1.0 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> <20200722150943.53046592@oasis.local.home> In-Reply-To: <20200722150943.53046592@oasis.local.home> From: Sami Tolvanen Date: Wed, 22 Jul 2020 13:03:12 -0700 Message-ID: Subject: Re: [RFC][PATCH] objtool,x86_64: Replace recordmcount with objtool To: Steven Rostedt Cc: Peter Zijlstra , Masahiro Yamada , Will Deacon , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux , Kernel Hardening , linux-arch , linux-arm-kernel , linux-kbuild , LKML , linux-pci@vger.kernel.org, X86 ML , Josh Poimboeuf Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 22, 2020 at 12:09 PM Steven Rostedt wrote: > > 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? Clang appears to only support -mrecord-mcount and -mnop-mcount for s390, so we still need recordmcount / objtool for x86. Sami