Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp99933imm; Mon, 1 Oct 2018 07:17:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV63TnRU14YRDdb7G2iGqgkHy5Zj1GtbpEgSrlLe1w94UxXjb71aXAshB8lQBNZ/FyPalCxM1 X-Received: by 2002:a17:902:1ea:: with SMTP id b97-v6mr10938892plb.152.1538403431043; Mon, 01 Oct 2018 07:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538403431; cv=none; d=google.com; s=arc-20160816; b=FfQcthjPNKljNnqoyx4s49Yoqp6MRp5Am4MhwPSz8ledyIbD5RfHDnrd6uNlT/kaPI YtVMOtQGk8idCJp7hj9gGDVVI1UgbnaMSV4J7nIgoJkhoAVPXuFbnUX+4pGydcKRvl/o 27hg+JewJcBGtKjYJuHpQOjeT1jX6/wkWwuP7CpXvn6+cJPA0Ob28a63CBA9/+sUjlDw ilJulubUqjHUHkgekD+5AQvctRJ+tJSuDaHMZAYR1NzzBx02e4GuQtTXVp1Jft4vHkAD nBBjDwRZbqOSf7kO7YNqH7jZLA91pAcQcXZ1ET6enOn0eu5XEFvcGeA2hxKLMM+d3ALV Ng8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:date:message-id:references :in-reply-to:subject:cc:to; bh=FmMBnTb+JXJDbTA6rQ0ZWsJqHwmjUAelt4A2mqEM9xQ=; b=Nr1Ou4Jvxj5ph0VK2Ktl9nX5my3anqqX+ZHMzg9zyzCvshZ45rAu4jfVze/jopo/Wo gxQ4iNAeR+fo4rMyEMmBbTG+QJu+wVnGXjkX3nJcs1nRniTUpDGJ2BdMrUJ3rszNuuOT agzm4ZmCBLOHvPLk9Yw4YjwdxHslqFv+zSDAjOfJaWNpWZaElBwexQHrkUxjqvyHEPR1 fXr74CqFll7GF4wrWd/nGWY3yoC7Kaob/wxyQvF4eix7A0imh3+0MS6NITMJ/rwV+zSl VaXJ+RkS8uVUszLMRMAmMH/qKifcTKVmnXnZFVvZv3H7k+1z7b8BLjZ7mR+6zu2Ez2ss 9aBw== 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 1-v6si12498467plz.220.2018.10.01.07.16.55; Mon, 01 Oct 2018 07:17:11 -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 S1729454AbeJAUyp (ORCPT + 99 others); Mon, 1 Oct 2018 16:54:45 -0400 Received: from verein.lst.de ([213.95.11.211]:37889 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729295AbeJAUyp (ORCPT ); Mon, 1 Oct 2018 16:54:45 -0400 Received: by newverein.lst.de (Postfix, from userid 2005) id 331EE68BC7; Mon, 1 Oct 2018 16:16:43 +0200 (CEST) To: Masami Hiramatsu , Will Deacon , Catalin Marinas , Julien Thierry , Steven Rostedt , Josh Poimboeuf , Ingo Molnar , Ard Biesheuvel , Arnd Bergmann , AKASHI Takahiro Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org Subject: [PATCH v3 1/4] DYNAMIC_FTRACE configurable with and without REGS In-Reply-To: <20181001140910.086E768BC7@newverein.lst.de> References: <20181001140910.086E768BC7@newverein.lst.de> Message-Id: <20181001141643.331EE68BC7@newverein.lst.de> Date: Mon, 1 Oct 2018 16:16:43 +0200 (CEST) From: duwe@lst.de (Torsten Duwe) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit 06aeaaeabf69da4, many ftrace-related config options are consolidated. By accident, I guess, the choice about DYNAMIC_FTRACE and DYNAMIC_FTRACE_WITH_REGS is no longer available explicitly but determined by the sole availability on the architecture. This makes it hard to introduce DYNAMIC_FTRACE_WITH_REGS if it depends on new compiler features or other new properties of the toolchain without breaking existing configurations. This patch turns the def_bool into an actual choice. Should the toolchain not meet the requirements for _WITH_REGS it can be turned off. Signed-off-by: Torsten Duwe --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -508,9 +508,15 @@ config DYNAMIC_FTRACE otherwise has native performance as long as no tracing is active. config DYNAMIC_FTRACE_WITH_REGS - def_bool y + bool "Include register content tracking in dynamic ftrace facility" + default y depends on DYNAMIC_FTRACE depends on HAVE_DYNAMIC_FTRACE_WITH_REGS + help + This architecture supports the inspection of register contents, + as passed between functions, at the dynamic ftrace points. + This is also a prerequisite for Kernel Live Patching (KLP). + When in doubt, say Y. config FUNCTION_PROFILER bool "Kernel function profiler"