From mboxrd@z Thu Jan 1 00:00:00 1970 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-trace-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. >