All of lore.kernel.org
 help / color / mirror / Atom feed
* How to quick test/debug in linux kernel?
@ 2024-08-16 11:05 jwbda
  2024-08-19  3:50 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: jwbda @ 2024-08-16 11:05 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org


Hi guys, would you mind help me with this:
How to quick test/debug in linux kernel?

Here is my method: 
Make some changes to the source code, add this line of code `printk(KERN_INFO ">>> run in kernel!\n");`

Then compile and run

```sh
make -j12
sudo qemu-system-x86_64 -hda ./mybuild/mylinux.img -m 4096 --enable-kvm -kernel ./linux/arch/x86_64/boot/bzImage -append "root=/dev/sda rw console=ttyS0" -nographic
```
Then check the results in the console. But I think this method is still a bit cumbersome. May I ask how do you quickly test/debug in linux kernel?


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

end of thread, other threads:[~2024-08-19  3:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-16 11:05 How to quick test/debug in linux kernel? jwbda
2024-08-19  3:50 ` Theodore Ts'o

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.