Article 6NS4K How do I view logs from within pm_power_off function

How do I view logs from within pm_power_off function

by
jgrebe
from LinuxQuestions.org on (#6NS4K)
I have written a kernel power down module that overrides the pm_power_off function.

However, I cannot see any logs that I put into pm_power_off function. I have tried using printk(), pr_info(), pr_alert(), WARN_ON(1), etc...

Then I poweroff the system, and on next boot I use "journalctl -k -b -1" to view the kernel logs from the last boot and I don't see anything there.

I have set /proc/sys/kernel/printk to "8 4 1 3"

I see logs from my kernel module init() function. I know that the function is being called because the function modifies GPIO levels that I am probing on oscilloscope.

How can I view logs from pm_power_off function?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments