kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* How to printk synchronously
@ 2019-11-26 20:07 aleave
  2019-11-26 22:31 ` Lucas Tanure
  0 siblings, 1 reply; 4+ messages in thread
From: aleave @ 2019-11-26 20:07 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 671 bytes --]

Hi everyone,

I'm modifying kernel code and running into system dead-lock issues. I have printk statements to try to retrieve info about the freeze after I do a hard shutdown, but printk is asynchronous so /var/log/kern.log only shows NULL character gibberish instead (^@^@^@^@). Is there a way to make printk synchronous? I have looked at people using [printk_sync](https://lore.kernel.org/patchwork/patch/671535/) and [printk.synchronous](https://stackoverflow.com/questions/26413750/how-to-avoid-printk-log-dropping-in-linux-kernel) variables as recently as 2017, but I don't see any reference to these anymore in the kernel version I have (5.4).

Thanks for the help.

[-- Attachment #1.2: Type: text/html, Size: 1016 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-28  6:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 20:07 How to printk synchronously aleave
2019-11-26 22:31 ` Lucas Tanure
2019-11-27  9:18   ` Valdis Klētnieks
2019-11-28  6:12     ` Muni Sekhar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).