Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2406363rdb; Wed, 21 Feb 2024 06:52:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXc+2VknmXGDmqu6NaXPdgQKL/a/skQC751jrZea5ELswse8FNSq99Agd6OaYujXYx/rIOm2jezOdvB/8UgKgZgvEMzKReuKnBSWYpy1g== X-Google-Smtp-Source: AGHT+IFWzwVTEABrt8qNaD8cY2Qkk1C8dW7zH7aes5unXPqrEK6vyp6zuBXUTKFQqAjMPV3DJ33D X-Received: by 2002:a05:6a21:169b:b0:19e:b6e9:883d with SMTP id np27-20020a056a21169b00b0019eb6e9883dmr28233833pzb.18.1708527158428; Wed, 21 Feb 2024 06:52:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708527158; cv=pass; d=google.com; s=arc-20160816; b=Gnj62BybFyJ2MMGCnH+QwU96IS1xalD13rwt5S0rvW64aMOkGid8OcUtRQx92PJCBw /gTESdNT10G1B8qtfCsD3yC3OF8mh0sjMcUwzYleFoo3Q4c5dbj90iHNFVcOlrjzMWRA AAAw9dNJ25IkOPqqXbCj2DVkpGY2gmfJb5MCEe7RRnt2cmVqrOkwUC+9BRrbfSK+DDcj Z8PGBaJTIE2l/r9wtPOwyQFgDSd+KKeo4LD0dxyqfZdYMrsFwm0Yvxe4sEnmIfOKN5kq xwqCO7w8Tz0b0SWj8Hq53ut7yZo3PDtytNSNgL0cELwlRnVciwMvSXT+Gz6KFG6HkFjV 0b2w== 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=d53sDfFIJJeuMwJE4JMyH7GVUEiGlYrmaP5AsfYObKc=; fh=hy2Gx5YsJlzzzUllceSwV/VJ/pVTx7gDIjRmL8kMpRo=; b=Dw6pp6xS3lPWSkZrC04neuTiBf2inN8YPoBFjSPBWvrVVdc4E1ndbryLVRJmrHO31v wY4f2QnlXP5XSoFNLm/0/yeMCYrszoOnPxMxOSwEoYCS9wSX6sBLUcFeW4UfPf1Oi+Rq 50UMsTWFR+I/wgL85Yq7q9JVxT6dmo78Syv9AhBh/fNeTcf2fi5XaJt5u5d5aU3dPPSp ihH7fW9z2M6YmDXChq8k6bJ2Gsfla9GmqMUVGbfUFAzVYC3pjXcrq58OXcofy5Axym3k I/18zP2TQL2jglYf/QTZixdgh513R7HaYX5aaV1ZYxGbwRRch7wUWs4lCO8vYm3KibhA wPxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-74921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74921-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o30-20020a63731e000000b005dc88260f76si8447316pgc.330.2024.02.21.06.52.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:52:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-74921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74921-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 87D5528A11B for ; Wed, 21 Feb 2024 14:42:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8E5480BEB; Wed, 21 Feb 2024 14:41:08 +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 495138004F; Wed, 21 Feb 2024 14:41:08 +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=1708526468; cv=none; b=CU39PU0nvOuIx164Jg5J91RmO7lpit2T1PDWYhGBSsByhNiQmpQmbf7k1r3n48hZz4iPJJiT1CED+2D3ET9dKTXG7iLj2vzJASaTBIPdwlGu4720AVV0nlMMokRE4512o8OizMKwDCrRNUClw48luynyYjrNd0ar9Nc5PYw69Bs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526468; c=relaxed/simple; bh=fOisjaUB4CADFBOpLJPvCbrHieV64D68kPH4bfQotJo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QuDBC3tKqxl+/zzoLLNZGg8SxY/qi/kquSkWDLI/YYpUJbmWV7p/S6nvfDu9N5ti3CRn2TLx9PWor7zpQz9vCaikBTTvAvU4cQOhP/83Fz4lYCSZneBHVAXUr8piZ5ZvayDGuHtLpRYz6iMtuk8fUKMWkQNWTjSGAB7ERbC6iNs= 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 EADC5C43142; Wed, 21 Feb 2024 14:41:05 +0000 (UTC) Date: Wed, 21 Feb 2024 09:42:53 -0500 From: Steven Rostedt To: Huang Yiwei Cc: , , , , , , , , , , , , , , , , Ross Zwisler , Joel Fernandes Subject: Re: [PATCH v5] tracing: Support to dump instance traces by ftrace_dump_on_oops Message-ID: <20240221094253.4a8b2a62@gandalf.local.home> In-Reply-To: <20240208131814.614691-1-quic_hyiwei@quicinc.com> References: <20240208131814.614691-1-quic_hyiwei@quicinc.com> X-Mailer: Claws Mail 3.19.1 (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 Thu, 8 Feb 2024 21:18:14 +0800 Huang Yiwei wrote: > Currently ftrace only dumps the global trace buffer on an OOPs. For > debugging a production usecase, instance trace will be helpful to > check specific problems since global trace buffer may be used for > other purposes. > > This patch extend the ftrace_dump_on_oops parameter to dump a specific > or multiple trace instances: > > - ftrace_dump_on_oops=0: as before -- don't dump > - ftrace_dump_on_oops[=1]: as before -- dump the global trace buffer > on all CPUs > - ftrace_dump_on_oops=2 or =orig_cpu: as before -- dump the global > trace buffer on CPU that triggered the oops > - ftrace_dump_on_oops=: new behavior -- dump the > tracing instance matching > - ftrace_dump_on_oops[=2/orig_cpu],[=2/orig_cpu], > [=2/orig_cpu]: new behavior -- dump the global trace > buffer and multiple instance buffer on all CPUs, or only dump on CPU > that triggered the oops if =2 or =orig_cpu is given > > Also, the sysctl node can handle the input accordingly. > > Cc: Ross Zwisler > Signed-off-by: Joel Fernandes (Google) What's the reason for Joel's Signed-off-by? Was he a co-author. If so, then it should be stated in the change log. -- Steve > Signed-off-by: Huang Yiwei