Enable Dynamic Debug for Multiple Files at Boot

Enable dynamic debug for multiple files at boot

Separate control commands with semicolons.

dyndbg='file drivers/<filename1> +p; file drivers/<filename2> +p; file drivers/<filename3> +p'

Enable dynamic debug at boot

After setting the bootargs as dyndbg=\\"file drivers/clk/clk.c +p\\", proper query has been sent through kernel command line and it worked as expected.

Cannot enable kernel dynamic debugging on linux

The redirection (with the > shell operator) is not performed as root. That's why you get a permission denied error. I suggest you run the whole command in a sub shell like:

sudo sh -c "echo 'module xhci_hcd +p' > /sys/kernel/debug/dynamic_debug/control"


Related Topics



Leave a reply



Submit