Message ID | 170290521312.220107.11377564145378408570.stgit@devnote2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-3714-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1235097dyi; Mon, 18 Dec 2023 05:23:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9sybYM4Iew+EiUNCs31vm9hdVVaKOZaNV0ysgoBQPb6JdYN8qCLKGVCgYA93ARz18hwvw X-Received: by 2002:a17:90a:2b08:b0:28b:105c:2ce4 with SMTP id x8-20020a17090a2b0800b0028b105c2ce4mr2367020pjc.66.1702905794481; Mon, 18 Dec 2023 05:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702905794; cv=none; d=google.com; s=arc-20160816; b=FvRzjRwjRAlNSpICl6Mq8FF/0jqzTflzemXacb0UCC4mBFZsiM0NLRIyVirI8RbVMa y0hIJ2+Bblmjz/bU/cLr6Jgv2Z9nT8q0cMKHcL1QRI6zMSC0pnOygpdaGWtulBQdyhAg MjSHHO0uoptBhsL4ULGJxb3upCKr+jKFT7Xyx+7F87wJpiKSTmv0U8NCxJxx2YFVCJXi xHk3RSiVy0zMWifoWSnkRJ+BOOulNBWcuHjk98+6IWST390nHvpc0QgNYrozooZ3EPeZ q38blRGM7UjrdpbdQSN6J0uC6Jzr7uGjTR9zSUy5goYPO1ZaNEUql5As1Y2FShMvgGe8 UvVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=8FG1EfTvjghHx0E3OCkHobbbNVNqEcUAtmh9UlmGtc4=; fh=SIgps5XdV0XNwjZfT2uAI7g3mrspDldK9Qs8qQAfoa4=; b=xZgPmoZOkPwk/VcnWfnLeA4CdpIR8amMq6k9s4dmvJy+qDZpjrpX94QzozEwgh8Rda RMasqMHH1a5OUycwXEbaMuyhZz9H+eCpkXSnEEjWoR9Bo/99tzkVIMt2kTgf2elaxQf5 b09dfyFdk6PXQ2SbwpdrMa5ONHj9ZL9SboYDRVQHydGPbeJPeU+VnZuE4AltNqioWwOI mXicIRO6ah7ImdE57a1h/hpA+iBurtOQcU35iPgC7CozO3X9WlsPzuPTGrcF4PIZgUgQ PW7HseKk9JL66zyMpIA+FxSHJ9UNmNFqhJqPkBaTjCE+2jH2ToWbuJQxDtOPtwt0qdQX fpGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yp+m8YiN; spf=pass (google.com: domain of linux-kernel+bounces-3714-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3714-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v7-20020a17090abb8700b0028b8ddf0ef2si1413633pjr.93.2023.12.18.05.23.14 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 05:23:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3714-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yp+m8YiN; spf=pass (google.com: domain of linux-kernel+bounces-3714-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3714-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2354F286225 for <ouuuleilei@gmail.com>; Mon, 18 Dec 2023 13:18:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 599FE5D744; Mon, 18 Dec 2023 13:13:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Yp+m8YiN" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88DFC129EEA; Mon, 18 Dec 2023 13:13:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 401B8C433C9; Mon, 18 Dec 2023 13:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702905220; bh=6ERBwQiaxIIDNTVWPQkxDhl1p/zo1tlsKma+ZLC6cPI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yp+m8YiN4jqZmTCwN+s6tL40x6/4MhDzmftp0QScJ+ZmFEHNSEWYch7AeJyW/Wol6 JKz77GRk4rfBswF7gDNzIbMbizUVEADZa1H+BrwOXYj5Xjn4w/IrIBcwu4Vdy641nd v78ZnyRESnIE12dYKgB03SCht6RYBe/LJksqhYicMg1edbRjx4OEwa5W6ZtYFysSFj OYqMm+ZcrK5RI/9eXp5XR07nEiLF9bWLlTtBTyJJ8DrWEmg5vSw90ul2FAr8mfjc9q 2ZyIj1Bvlh8CyqxK9wq0HI7auqkBaUkKEDxonL5pSvtAE/x+pefAWP9qX/W4SvGq5a je8z3glSjjdPA== From: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> To: Alexei Starovoitov <alexei.starovoitov@gmail.com>, Steven Rostedt <rostedt@goodmis.org>, Florent Revest <revest@chromium.org> Cc: linux-trace-kernel@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>, Martin KaFai Lau <martin.lau@linux.dev>, bpf <bpf@vger.kernel.org>, Sven Schnelle <svens@linux.ibm.com>, Alexei Starovoitov <ast@kernel.org>, Jiri Olsa <jolsa@kernel.org>, Arnaldo Carvalho de Melo <acme@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, Alan Maguire <alan.maguire@oracle.com>, Mark Rutland <mark.rutland@arm.com>, Peter Zijlstra <peterz@infradead.org>, Thomas Gleixner <tglx@linutronix.de>, Guo Ren <guoren@kernel.org> Subject: [PATCH v5 10/34] ftrace: Allow ftrace startup flags exist without dynamic ftrace Date: Mon, 18 Dec 2023 22:13:33 +0900 Message-Id: <170290521312.220107.11377564145378408570.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <170290509018.220107.1347127510564358608.stgit@devnote2> References: <170290509018.220107.1347127510564358608.stgit@devnote2> User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785626146045663413 X-GMAIL-MSGID: 1785626146045663413 |
Series |
tracing: fprobe: function_graph: Multi-function graph and fprobe on fgraph
|
|
Commit Message
Masami Hiramatsu (Google)
Dec. 18, 2023, 1:13 p.m. UTC
From: Steven Rostedt (VMware) <rostedt@goodmis.org> Some of the flags for ftrace_startup() may be exposed even when CONFIG_DYNAMIC_FTRACE is not configured in. This is fine as the difference between dynamic ftrace and static ftrace is done within the internals of ftrace itself. No need to have use cases fail to compile because dynamic ftrace is disabled. This change is needed to move some of the logic of what is passed to ftrace_startup() out of the parameters of ftrace_startup(). Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> --- include/linux/ftrace.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 0955baccbb87..7b08169aa51d 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -538,6 +538,15 @@ static inline void stack_tracer_disable(void) { } static inline void stack_tracer_enable(void) { } #endif +enum { + FTRACE_UPDATE_CALLS = (1 << 0), + FTRACE_DISABLE_CALLS = (1 << 1), + FTRACE_UPDATE_TRACE_FUNC = (1 << 2), + FTRACE_START_FUNC_RET = (1 << 3), + FTRACE_STOP_FUNC_RET = (1 << 4), + FTRACE_MAY_SLEEP = (1 << 5), +}; + #ifdef CONFIG_DYNAMIC_FTRACE void ftrace_arch_code_modify_prepare(void); @@ -632,15 +641,6 @@ void ftrace_set_global_notrace(unsigned char *buf, int len, int reset); void ftrace_free_filter(struct ftrace_ops *ops); void ftrace_ops_set_global_filter(struct ftrace_ops *ops); -enum { - FTRACE_UPDATE_CALLS = (1 << 0), - FTRACE_DISABLE_CALLS = (1 << 1), - FTRACE_UPDATE_TRACE_FUNC = (1 << 2), - FTRACE_START_FUNC_RET = (1 << 3), - FTRACE_STOP_FUNC_RET = (1 << 4), - FTRACE_MAY_SLEEP = (1 << 5), -}; - /* * The FTRACE_UPDATE_* enum is used to pass information back * from the ftrace_update_record() and ftrace_test_record()