Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4179871pxk; Tue, 29 Sep 2020 17:14:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2mKb/NFE9u2z6T42G6+DM2ZitTzAxqD6Rg0w6hA9aoHNJGH+qKh1jd0qsTGt3xMkKxxlm X-Received: by 2002:a17:906:c289:: with SMTP id r9mr200009ejz.402.1601424873859; Tue, 29 Sep 2020 17:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601424873; cv=none; d=google.com; s=arc-20160816; b=tTl6q/3kuc8OFs1ZenPltzYe3/C8LxsCck1p042mG+H+clRf4npse4SLB6UKgXz58f vy72M+vjvw9YCG1yqiOa2Wv6sFSJJ4mXDi+dHgPYmHLqER5e3KsM2v1rwOK6luVd+CdW o8nMplNVjI6Y8tCvlVegvN+5KYShWpuOw90YOe/KV7EM6WMbKLhNHIz/i+B00hQc+UJ3 y5XZ6OPlbG1/myCxR9dx4mteJabMSlOCBZs0rjixLl0BrICsdFsD837ccy3Ynr9zuVvP UtbtSIf5utWm6PzpidkGJ8FLVy0EHFcqw3b45uI9OqGHzZwXfo3kDCLA57ABaBFPwOMG 3rcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=qiw+aWDSAuUk6b1KvKJVTf7Ct1Q5/XNy/YbsKrDiXrE=; b=kcFrFJ2u2rFRe0/ooEP7AYl9u5aArRa/MTh55X8VIgK33IlojGPmYQTxuKrvL+3qZs 2JPs/KWgYizuUW3Ahhuq0hf+TQuR3N9tU16ddbUgJQpylebfbk3JMGRWNJcUVUudQ/0z 984giUlzdS12OuuNQGdOvB0qm2/VcrGR0vui5027lvcqpYlAwwEvHVdFwKwYSPBKhRhl 4HEsFw1Wdrrh+n3umijh9UCuW8Fd12orQHNOJi+HsQ3E9UCB26Q6sG8Sp/TAwlErXOjx 3UKPg1w8Kh/7BG9Er3IHnNSYvyPu0xZPaLXh+QLuQN7fs32q4DcMDEAutWbFJ2pafLPL NMtw== 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 lu12si33310ejb.359.2020.09.29.17.14.08; Tue, 29 Sep 2020 17:14:33 -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 S1729261AbgI3ANB (ORCPT + 99 others); Tue, 29 Sep 2020 20:13:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:36094 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728192AbgI3ANB (ORCPT ); Tue, 29 Sep 2020 20:13:01 -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 5580B20739; Wed, 30 Sep 2020 00:12:59 +0000 (UTC) Date: Tue, 29 Sep 2020 20:12:57 -0400 From: Steven Rostedt To: Sami Tolvanen Cc: Masahiro Yamada , Will Deacon , Peter Zijlstra , 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 Subject: Re: [PATCH v4 06/29] tracing: move function tracer options to Kconfig Message-ID: <20200929201257.1570aadd@oasis.local.home> In-Reply-To: <20200929214631.3516445-7-samitolvanen@google.com> References: <20200929214631.3516445-1-samitolvanen@google.com> <20200929214631.3516445-7-samitolvanen@google.com> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Sep 2020 14:46:08 -0700 Sami Tolvanen wrote: > +++ b/kernel/trace/Kconfig > @@ -595,6 +595,22 @@ config FTRACE_MCOUNT_RECORD > depends on DYNAMIC_FTRACE > depends on HAVE_FTRACE_MCOUNT_RECORD > > +config FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY > + bool > + depends on FTRACE_MCOUNT_RECORD > + > +config FTRACE_MCOUNT_USE_CC > + def_bool y > + depends on $(cc-option,-mrecord-mcount) Does the above get executed at every build? Or does a make *config need to be done? If someone were to pass a .config to someone else that had a compiler that didn't support this, would it be changed if the person just did a make? -- Steve > + depends on !FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY > + depends on FTRACE_MCOUNT_RECORD > + > +config FTRACE_MCOUNT_USE_RECORDMCOUNT > + def_bool y > + depends on !FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY > + depends on !FTRACE_MCOUNT_USE_CC > + depends on FTRACE_MCOUNT_RECORD > + > config TRACING_MAP > bool > depends on ARCH_HAVE_NMI_SAFE_CMPXCHG