From: Steven Rostedt <rostedt@goodmis.org>
To: Andrew Halaney <ahalaney@redhat.com>
Cc: Song Chen <chensong_2000@189.cn>,
Derek Barbosa <debarbos@redhat.com>,
pmladek@suse.com, john.ogness@linutronix.de,
senozhatsky@chromium.org, linux-rt-users@vger.kernel.org,
linux-kernel@vger.kernel.org, williams@redhat.com,
jlelli@redhat.com
Subject: Re: a question about how to debug this case in ftrace
Date: Tue, 25 Jun 2024 09:44:06 -0400 [thread overview]
Message-ID: <20240625094406.42acfacf@rorschach.local.home> (raw)
In-Reply-To: <xiune2bsqgin5ksk33q5bkihuz5qrv5casjofdyopes55zfcpc@uvvnlwxb4wcp>
On Tue, 25 Jun 2024 08:20:15 -0500
Andrew Halaney <ahalaney@redhat.com> wrote:
> So I ended up doing a sequence like:
>
> tracing_off();
> ftrace_dump(DUMP_ALL);
I've done that several times too.
>
> in the softlockup code when it was detected. Ideally I wanted to look at
> the vmcore and look at the ftrace data in there (since debugging printk
> by using printk is a little confusing), but there was a makedumpfile bug
> I hit... so I went with the hacky route to prove to myself what was
> going on. I think since then that's been resolved. Hope that helps!
You may be interested in some work I'm doing that allows you to read
the ring buffer from a previous kernel after a crash.
https://lore.kernel.org/linux-trace-kernel/20240612231934.608252486@goodmis.org/
I also have a way to ask for any memory, that should be able to get the
same location most times, via a "reserve_mem=" kernel command line
parameter.
https://lore.kernel.org/linux-trace-kernel/20240613233415.734483785@goodmis.org/
They are both destined for the next merge window. After that, I have
one more patch that ties the two together, so that you can have a
kernel command line of:
reserve_mem=12M:4096:trace trace_instance=bootmap@trace
and then when you boot up, you would have a trace instance that would
be mapped to that memory. If your machine doesn't clear memory after a
crash, you can read the data from the crash on the next boot.
-- Steve
next prev parent reply other threads:[~2024-06-25 13:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-18 15:20 Derek Barbosa
2024-06-25 1:36 ` a question about how to debug this case in ftrace Song Chen
2024-06-25 13:20 ` Andrew Halaney
2024-06-25 13:44 ` Steven Rostedt [this message]
2024-06-25 14:09 ` John Ogness
2024-06-26 2:17 ` Song Chen
2024-06-26 2:06 ` Song Chen
2024-06-26 2:12 ` Song Chen
2024-06-26 7:25 ` John Ogness
2024-06-26 8:26 ` Song Chen
2024-06-26 14:50 ` Steven Rostedt
2024-06-27 2:26 ` Song Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240625094406.42acfacf@rorschach.local.home \
--to=rostedt@goodmis.org \
--cc=ahalaney@redhat.com \
--cc=chensong_2000@189.cn \
--cc=debarbos@redhat.com \
--cc=jlelli@redhat.com \
--cc=john.ogness@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=pmladek@suse.com \
--cc=senozhatsky@chromium.org \
--cc=williams@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.