Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp70550lqt; Wed, 5 Jun 2024 17:53:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdiBR39itriS2d2V7gaJrJMk7Q9080Sl4bE12DBoxGTsfm50IzZeNS6TpeyWDftgIiY4A/tL0bwGc1B2mEtW1iDkIW25m17T0k5HVCcA== X-Google-Smtp-Source: AGHT+IG4uNZKoeUuuFCZ6hUQw74JM3Dt4uvoiZmLZrnuZnAnZz+8JshKvbcfw43iuWHbjMeV5D71 X-Received: by 2002:a05:6a20:1595:b0:1b0:194a:82f5 with SMTP id adf61e73a8af0-1b2c5687b1bmr1601220637.21.1717635228749; Wed, 05 Jun 2024 17:53:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717635228; cv=pass; d=google.com; s=arc-20160816; b=UBJu8upi30MexQy8IQSb36TtiS1+nus66+/uVXThNq/pfOGEKervtvi22HnKsKUZOY Evgxp+vnG9/uqzH2B4Qq0w2kAmOsvm3gUds3WJuhc5BStZSg8HhHTdxYzjLwT1knP7zD 3nehRh5Cyp+N6acaOWhiVXt7w8VCqY4QU9XWd35F0dEcfghr3LOoiPodX+OHJ4Ezk8Di qH0B6cYLSnbNsTuMnL0cglEOrrq0Qnd2TLTj5uQhzbsloIJiNBKw4Mwin9nbRg8tHwTM UMHFY9+oDk7nzBL0LdWG80352mVvEesw0a5Tm7HuPqEMA+fC5oBIwIbXQ7eBDfyCdXsr jMKA== ARC-Message-Signature: i=2; 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:message-id:subject:cc:to:from :date; bh=tue8ff+fl4RftMr31lTfDiolUtkdMj3c9+sf+Q8DhCo=; fh=ulB94sB9aXP6zMkGZ0UnbY78B0hTQ9FXoQcrUNdhyFo=; b=Qf9Kb1gOaQUD+Rol1PvXDToAHkCkeuXuTz91X1Sy/8bgiGUFX5Ie/dbX+GlwIObcVQ FE6dmWdpBh8+VMAXgBMphD+Z0+3QjR13ic97pTyVXwo+jyNTOblndyC9hly2EQj/EXcA sp2EEL3dyjMYnsIb9w8vOzgB3gJSdyUG2/X5HWzJ9e0ZWhoMm7C2VISZJw4wInWFy0as F/+lkc9a3NvpcM1So8gGZtsqXT8Hi35PcmE9pCG+J0WX6P9Bw5h8MmrsnQGEOwSRqHFv 6lgZAik5gC3J470agpIFoSlWI0Zg2at0A284LAqPRnNNffPUo4wgx9tCaNmDhIyCmFHb P9MA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-203469-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203469-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd4c4185si170021b3a.167.2024.06.05.17.53.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 17:53:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203469-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-203469-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203469-linux.lists.archive=gmail.com@vger.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 6A61E28653C for ; Thu, 6 Jun 2024 00:53:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6ECE4101CE; Thu, 6 Jun 2024 00:53:36 +0000 (UTC) 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 E8FECEADA; Thu, 6 Jun 2024 00:53:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717635216; cv=none; b=Mzsk5hLIckIqlxd8yCuyJ8roHLYF5aP1lycX3/4V7fgOA4dOXw6Ao/OpMDvPvi7QB8DgNv23V7pbutbfocTYrAGSwgpyVvBAfM1zoiFEl2vWWjD8Nvxde2wiGwNAUmS4VdTXE1PZsAxdEpZ+HdjZVQjmXeXHcC+GWj0eMmgU0uw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717635216; c=relaxed/simple; bh=ECUC++fo6Hg0SW5qsVvf+6iJNl2DVQrRUPqRM0w3Les=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=o6HFGUMxxEGu3blITF1jrUIilqpOXh3rN7QMPJCOlaQ3o8QI6q07EspE9fH0j/7FKt89G80eiQfmUzBDurr4ZOSkZziqIVxmU5l+aQkzC/AkP0MQowWRdEUXfI8DI/FiTJVZUI169sgmW62da9cU/vkWLPzTaJOpqMnxkW9BPw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC52DC4AF07; Thu, 6 Jun 2024 00:53:34 +0000 (UTC) Date: Wed, 5 Jun 2024 20:53:37 -0400 From: Steven Rostedt To: LKML , Linux Trace Kernel Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [PATCH] ftrace: Add back ftrace_update_trampoline() to ftrace_update_pid_func() Message-ID: <20240605205337.6115e9a5@gandalf.local.home> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit From: "Steven Rostedt (Google)" The update to the ops trampoline done by the function ftrace_update_trampoline() was accidentally removed from ftrace_update_pid_func(). Add it back. Fixes: df3ec5da6a1e ("function_graph: Add pid tracing back to function graph tracer") Signed-off-by: Steven Rostedt (Google) --- kernel/trace/ftrace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index da7e6abf48b4..897d7541041c 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -402,6 +402,7 @@ static void ftrace_update_pid_func(void) if (op->flags & FTRACE_OPS_FL_PID) { op->func = ftrace_pids_enabled(op) ? ftrace_pid_func : op->saved_func; + ftrace_update_trampoline(op); } } while_for_each_ftrace_op(op); -- 2.43.0