* About ftrace+pstore+ramoops
@ 2020-11-26 21:33 Guilherme G. Piccoli
2020-11-26 22:20 ` Guilherme Piccoli
0 siblings, 1 reply; 2+ messages in thread
From: Guilherme G. Piccoli @ 2020-11-26 21:33 UTC (permalink / raw)
To: anton, joel
Cc: Kees Cook, ccross, tony.luck, Steven Rostedt, Ingo Molnar,
linux-kernel, u.kleine-koenig
Hi Anton / Joel (and all CCed), sorry for annoyance but I'm not being
able to make pstore ftrace capture to work - I'm not sure if I might be
missing something, or if there's a known limitation.
So, first, my use case: I'd like to be able to collect *ftrace* trace
buffer in a specific point in time, when some issue I'm facing happens;
for that, I enable ftrace through tracing_on() in the correct point in
the code. After this issue, machine is not responsive, so I need to
reboot (hence I'd like to persist the trace buffer in my ramoops
reserved area).
For the basic test purpose though, I'm doing just what is suggested in
the ramoops documentation, which is to write 1 on
<debugfs>/pstore/record_ftrace and reboot - but no ftrace file is
present in the pstore folder after the reboot. I've tested the same
system/config by inducing a kernel oops and the corresponding
dmesg-ramoops file is there after the reboot...
Just for clarification: this ftrace feature in pstore is meant to do
what I want right? It should *always* collect the same information as
seen in the trace buffer, but on the persistent memory region configured
by ramoops, correct?
Any guidance you can provide me is much appreciated.
Thanks in advance,
Guilherme
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: About ftrace+pstore+ramoops
2020-11-26 21:33 About ftrace+pstore+ramoops Guilherme G. Piccoli
@ 2020-11-26 22:20 ` Guilherme Piccoli
0 siblings, 0 replies; 2+ messages in thread
From: Guilherme Piccoli @ 2020-11-26 22:20 UTC (permalink / raw)
To: anton, joel
Cc: Kees Cook, ccross, tony.luck, Steven Rostedt, Ingo Molnar,
linux-kernel, u.kleine-koenig
Just a heads-up on top of my own email: as soon as I sent the email, I
had an idea. I was trying with ramoops.ftrace_size=X, so I removed
this parameter and it worked. As expected, it's a small buffer so
collected mostly the ramoops own functions, but worked in the end -
I'll debug the reason it failed with ftrace_size.
Apologies for the inconvenience!
Cheers,
Guilherme
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-26 22:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 21:33 About ftrace+pstore+ramoops Guilherme G. Piccoli
2020-11-26 22:20 ` Guilherme Piccoli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®