lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <MvEVlTCbeP8Fr6I7mi3pGDQuv7_Yc7CB2OITb8_7IOgJvxmHxXKeIv8XTzTBfazMnyWs6SlMqcM4hAd_TKiRKL9TXppOEFEzbtrZ93Y9Jqc=@proton.me>
Date: Fri, 16 Aug 2024 11:05:31 +0000
From: jwbda <jwbda@...ton.me>
To: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: How to quick test/debug in linux kernel?


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?


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ