Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp54654lqt; Wed, 5 Jun 2024 17:09:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5HwqhQVPmfU5uwoaXIlUQKqO5kxaAQ96ZYFxGUV5ceeJTKfKuNgy1IkvGC4zzq2MDcl/xicdwvEoMqL6MugaAxGQaAKiHwYIAP935LA== X-Google-Smtp-Source: AGHT+IHdJjdiuFdowns4TLC/i8tk0npGnlcZ5c20mc9rKc30dEkTNBj/Xbh6+lVncR7YA+JMglDR X-Received: by 2002:a05:651c:1505:b0:2e5:6957:187a with SMTP id 38308e7fff4ca-2eac797f176mr33278041fa.4.1717632547358; Wed, 05 Jun 2024 17:09:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717632547; cv=pass; d=google.com; s=arc-20160816; b=EYWnVdt2FdG8KSn5sV/U9dvshIcCczkHY0bQP34s/IKcRqtVN6B+1AzDxoojyWknp+ BBPgAG00Prpey5Cwt8gjOgRIrq3LtSeKRu2MsQ7TbT5oq+n61p5z4TFZoC9i3nMQ8DgI OrOrul4sLlsqemI73TJ8OWP0Mkw2ZYrcKejOtYADzk1GCTancQnEbFhBuGYJbUtNOhqf 01ezWPRuxx6723LTTgnXzQHiHGapNDCXrvS2ca4OHvXhanw9J+G0aV3Pzz9z5ZUpw0A8 PhH2Li3FKaQShR/qzdY5hxgmt0PYEuGYtXQ8jM9y4ncpmjnRBjTMIm5Zdv6ajnnv12hG oEtQ== 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:references:in-reply-to:message-id :subject:cc:to:from:date; bh=nlR2fVWPwVhjE8I8wCehKFpKgIu143wTHDHs0P6c5xU=; fh=YfcaVrAzBpSwi8dOlqHV4K1os6qdULs4cyXFG/DyLfE=; b=MIyXyjRPXY3Pp1jFp0MfMMZt1zfX5/++/9dC4d9ILIAzg0N3nYU9nZL09hsZWgnD/O pcpKV+Gn7ZdhbN13oIl/U9OeUt/SUyG7gTZ8JSoMiY5TnHMC1aLCY+d3i9WMizkHxuQH 2KPbkxo4Gn/E5fKc5JbPcj7joBe2gAtlAOfTrBO9hwBuqz3sfEtsMu5Waghm1k2Kyp5c SdMVM2euwC2BNpEQQi3JZfFP1Xg8aEEzPcuGVAbqO6shBQqY4ARzNahetOjXCRAbT9jO zUoJ1c+Y9qdM4nt8x9KDUT3EWApSRjsa3CwJ2kf6wUTSznSzHk1Ct3YcIGTiKdXOHOF/ 6S4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-203443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203443-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806daad5si6977966b.459.2024.06.05.17.09.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 17:09:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-203443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203443-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 150B11F2A3E4 for ; Thu, 6 Jun 2024 00:09:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B906B1FBA; Thu, 6 Jun 2024 00:08:56 +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 36D5110E9; Thu, 6 Jun 2024 00:08:55 +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=1717632536; cv=none; b=B3AE6GmenXaiRq8Wzqlirq224M+XQJzgRmneJ0W8FfUilj+ZSh//uXZX9cmnZ+VAopxxo2imX+U8xfy5f1lBU9j8GB7Mut/FoSAbtSaxHVe+qqGk2ePW7i87rVSXI76SlHK05gwW/SucLHWj/vhroXO8cfjn6WwkxHYeQGZi4GY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717632536; c=relaxed/simple; bh=7tzdPhbTiZCM9DYzG68K1j3cQKF5iq8T0TwTCJ3A8Lg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gPP8XR2VbuSNf5T4DMAe5sVn7DdgcOE4/hB5pQRgo0wiBaVnC3RsUjSXVAaW+oBzB5fkXy2ebQr6BhO7i0FGhWAOxj1hIg4vgL65hrz4uVX06weVh/VuuRScaDHD7sK2pQQifX7HAU4SQn+z3cY9sEVr4qWmnzaRMqadqjTk5OQ= 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 BFD10C2BD11; Thu, 6 Jun 2024 00:08:53 +0000 (UTC) Date: Wed, 5 Jun 2024 20:08:56 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , Alexei Starovoitov , Florent Revest , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Jiri Olsa , Arnaldo Carvalho de Melo , Daniel Borkmann , Alan Maguire , Peter Zijlstra , Thomas Gleixner , Guo Ren Subject: Re: [PATCH v3 13/27] function_graph: Add pid tracing back to function graph tracer Message-ID: <20240605200856.04f3ebe5@gandalf.local.home> In-Reply-To: <20240603190822.991720703@goodmis.org> References: <20240603190704.663840775@goodmis.org> <20240603190822.991720703@goodmis.org> 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 On Mon, 03 Jun 2024 15:07:17 -0400 Steven Rostedt wrote: > +++ b/kernel/trace/ftrace.c > @@ -100,7 +100,7 @@ struct ftrace_ops *function_trace_op __read_mostly = &ftrace_list_end; > /* What to set function_trace_op to */ > static struct ftrace_ops *set_function_trace_op; > > -static bool ftrace_pids_enabled(struct ftrace_ops *ops) > +bool ftrace_pids_enabled(struct ftrace_ops *ops) > { > struct trace_array *tr; > > @@ -402,10 +402,11 @@ 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); Bah, this patch accidentally removed the above function and broke pid tracing. Hmm, not sure why this still passed the tests. Will investigate. -- Steve > } > } while_for_each_ftrace_op(op); > > + fgraph_update_pid_func(); > + > update_ftrace_function(); > } >