Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1125358rdb; Fri, 19 Jan 2024 08:55:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGrA4XJ7Q+Oyy6cKdmJcRB/H35kFC30E1qW+x22387NjUGRBLIXCRF1WWN6445kSXNllox X-Received: by 2002:ac8:5f96:0:b0:42a:16b4:a8c2 with SMTP id j22-20020ac85f96000000b0042a16b4a8c2mr87377qta.136.1705683332945; Fri, 19 Jan 2024 08:55:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705683332; cv=pass; d=google.com; s=arc-20160816; b=MG7o8d1xesuaW406WfFMOIjJY2QXeXl3N+YsQ8r5VTx+aD76Hbkw0OUP4SM/TUehZR WgEvJul86PdNETrMx3Wdd5wlCqBQ5k+VcsxBscYitutsaTB10ZZwZg5e+8dZhJE9XnTw TQWrR3jxidzcMgkQf1ybg+nO+UuJ05HHCCrWaF/ukyTALXQYOu0Fenhz7KI11tGXxOaS w91eJ2/8/o/IE8vQx7VPWVhu4m7twiHO3mHD9Ojw9FocmZ7gcMEGzhQEkVvS4ALBRih4 igyK1GhybAMvQaqTc7HBmIbem8pXTxo8BVKis3Z7tMS+2//AehSk8HoKvYVJN+S+TkUQ Wr/A== 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=Bs+7zf0tgFj3P0T5Iy5J+VMsnW5flH7viEIs+2b1kmY=; fh=hy2Gx5YsJlzzzUllceSwV/VJ/pVTx7gDIjRmL8kMpRo=; b=wYbBNY7LgTuF7Ec+ra729rjbKfYHjNKwdTSbIJ2eCTnfY6TtGJNa5FZWGbZUFlHQ5U I8DHu8b11TT6utJYWTk8t6G1EG/uG2qhoMZP9Uf/3rgXG5/JTJvNi8BCGwwIwS7fKIj3 0YWe5aiwsKggDKxRgsa4ldwtcwq5VIrHp35S6U+I512QWzpGjvMfR9XiMTBOrQnFsfzQ zOYAuMoUIywBHBiATMvVQSlxaPn7X2YgGIIPP0eN9oQJu/3ID3UoSNvOhKB7ADOA6065 oGiQhUDMQ68FEy0niMd+LtJZ5pjQrQCVtvkV5aXvyXJEs5EzhG4mFOPY1SRYFCHJJJkn K0nQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-31384-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31384-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y13-20020a05622a120d00b0042a1ec798c7si3243293qtx.435.2024.01.19.08.55.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 08:55:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31384-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-31384-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31384-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8D5201C21301 for ; Fri, 19 Jan 2024 16:55:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0D9D55E5F; Fri, 19 Jan 2024 16:55:07 +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 1758255784; Fri, 19 Jan 2024 16:55:06 +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=1705683307; cv=none; b=HtiaZJmkG9ApnPLFs2kzGy3DKKGX5Pf44FiTjpXv+WhCQUopJRM7SWPJd3FjAZ55Bd32QnNo6/aAbz1TcK3krbEjUW2Iej+4rP1j30p2vsErqwsWqgK1PDmMGefCDU65iwqFapjXuIUqO7g78QaeRGWA247p+RiHKI84p5pwFsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705683307; c=relaxed/simple; bh=su/Rz+5699sb7UQeTkajOvLoS6GIiWIG1/7YwxHT1uw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ad1h3bH5UnKZSqF8KlfA4C/Qm0HnQGv8ZSWW04PxnZ1TXO6HX9Rv8KpwXV3VFRg/cNea9mGm8x1JRZZvTiNUr7m6xoj7pEzhgAzfhbv2Ddtm9Bddk8PW8b37rZiK+TRArRVjTzSflLuPKF7uUCudd/yz7zXnOP7gPun5M/Z2z20= 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 41FBEC433F1; Fri, 19 Jan 2024 16:55:04 +0000 (UTC) Date: Fri, 19 Jan 2024 11:56:25 -0500 From: Steven Rostedt To: Huang Yiwei Cc: , , , , , , , , , , , , , , , , Ross Zwisler , Joel Fernandes Subject: Re: [PATCH v3] tracing: Support to dump instance traces by ftrace_dump_on_oops Message-ID: <20240119115625.603188d1@gandalf.local.home> In-Reply-To: <20240119080824.907101-1-quic_hyiwei@quicinc.com> References: <20240119080824.907101-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 Fri, 19 Jan 2024 16:08:24 +0800 Huang Yiwei wrote: > - ftrace_dump_on_oops[=orig_cpu] > + ftrace_dump_on_oops[=orig_cpu | =] I wonder if we should have it be: ftrace_dump_on_oops[=orig_cpu | = | =:orig_cpu ] Then last would be to only print out a specific CPU trace of the given instance. And if we really want to be fancy! ftrace_dump_on_opps[=orig_cpu | = | =orig_cpu: ][, | ,:orig_cpu] That would allow dumping more than one instance. If you want to dump the main buffer and an instance foo: ftrace_dump_on_opps,foo Where the ',' says to dump the top instance as well as the foo instance. -- Steve > [FTRACE] will dump the trace buffers on oops. > - If no parameter is passed, ftrace will dump > - buffers of all CPUs, but if you pass orig_cpu, it will > + If no parameter is passed, ftrace will dump global > + buffers of all CPUs, if you pass orig_cpu, it will > dump only the buffer of the CPU that triggered the > - oops. > + oops, or specific instance will be dumped if instance > + name is passed. >