Re: Kernel debugging

2020-02-21 Thread Valdis Klētnieks
On Wed, 19 Feb 2020 06:19:10 +, "Pankaj Vinadrao Joshi" said: > I am using linux 5.4.3 with our custom Yocto distro on RISC v machine i want > to get kernel crash log(hard panic) since RISC v does mot have support for the > kxec how i can collect the crash logs? Is netconsole an option, if

Kernel debugging

2020-02-21 Thread Pankaj Vinadrao Joshi
Hi, I am using linux 5.4.3 with our custom Yocto distro on RISC v machine i want to get kernel crash log(hard panic) since RISC v does mot have support for the kxec how i can collect the crash logs? ___ Kernelnewbies mailing list

Re: Kernel Debugging using Qemu

2015-08-15 Thread Aruna Hewapathirane
Hi Saket, Thank you so much for the clear instructions. I really wanted to get qemu to work on my 64bit system so I kept trying and finally I got things to work. After following your instructions I could get further but gdb complained about a Remote 'g' packet reply is too long.Your way works

Kernel Debugging using Qemu

2015-08-14 Thread Aruna Hewapathirane
Hi, If anyone uses Qemu can someone please show me how to get started ? I tried : sudo qemu-system-x86_64 -s -S -kernel arch/x86/boot/bzImage -initrd /boot/initrd.img-4.1.2-vtaqemu+ /dev/zero And it does allow me to access through gdb using target remote localhost:1234 but when I set a

Re: Kernel Debugging using Qemu

2015-08-14 Thread Saket Sinha
Hi Aruna, Please find the steps below - The kernel needs to be compiled with debugging support, for the same add -g option in KBUILD_CFLAGS and KBUILD_CXXFLAGS. CONFIG_DEBUG_INFO=y make ARCH=i386 menuconfig make ARCH=i386 bzImage -j 5 Now we have compiled the 32 bit binaries Starting the

Kernel Debugging

2013-08-06 Thread Saket Sinha
I am facing an issue where I have been developing a filesystem driver(over x86) which has become unstable by which I mean , at compile time it is building but during runtime it fails when I call the corresponding APIs from the user-space. In order to find out exactly where it is failing, I

Re: Kernel Debugging

2013-08-06 Thread Chaitanya Gotkhindikar
Hi Saket, You may configure kdump and use crash utility for debugging offline. Here are some useful links. https://sites.google.com/site/syscookbook/rhel/rhel-kdump-rhel6 http://www.novell.com/support/kb/doc.php?id=3374462 Otherwise systemtap is good option too.

Re: kernel debugging nodes missing from /sys/kernel

2011-06-27 Thread amit mehta
That was quick Silesh. Thanks it worked. On Mon, Jun 27, 2011 at 11:22 AM, Silesh C V sailes...@gmail.com wrote: Hi, On Mon, Jun 27, 2011 at 2:30 PM, amit mehta gmate.a...@gmail.com wrote: I've two 64 bit machines,both have Linux kernel running, but on one of the machines I'm not seeing

kernel debugging nodes missing from /sys/kernel

2011-06-26 Thread amit mehta
I've two 64 bit machines,both have Linux kernel running, but on one of the machines I'm not seeing any node under /sys/kernel/debug. I checked some config(CONFIG_*) in the kernel configuration file on both machines but they seem to be the same. More information below: 1: SuseX86_64:~ # uname -a

Re: kernel debugging nodes missing from /sys/kernel

2011-06-26 Thread Silesh C V
Hi, On Mon, Jun 27, 2011 at 2:30 PM, amit mehta gmate.a...@gmail.com wrote: I've two 64 bit machines,both have Linux kernel running, but on one of the machines I'm not seeing any node under /sys/kernel/debug. Debugfs is not mounted maybe? mount -t debugfs none /sys/kernel/debug Regards,

looking for decent summary of kernel debugging primitives

2011-05-02 Thread Robert P. J. Day
i'm getting ready to teach a basic device drivers course in a couple weeks with someone else's courseware and i just wanted to bring some sections up to date. there's one section on basic debugging that covers printk() as well as other topics from LDD3 such as printk_ratelimit(), setting the

Re: looking for decent summary of kernel debugging primitives

2011-05-02 Thread Eduardo Silva
for specific printk i would suggest to check the source header: include/linux/printk.h On Mon, May 2, 2011 at 11:33 AM, Robert P. J. Day rpj...@crashcourse.cawrote: i'm getting ready to teach a basic device drivers course in a couple weeks with someone else's courseware and i just

Re: looking for decent summary of kernel debugging primitives

2011-05-02 Thread Greg KH
On Mon, May 02, 2011 at 10:31:54PM +0530, Vikram Narayanan wrote: i'm getting ready to teach a basic device drivers course in a couple weeks with someone else's courseware and i just wanted to bring some sections up to date. there's one section on basic debugging that covers printk() as

Re: looking for decent summary of kernel debugging primitives

2011-05-02 Thread Robert P. J. Day
On Mon, 2 May 2011, Greg KH wrote: On Mon, May 02, 2011 at 10:31:54PM +0530, Vikram Narayanan wrote: i'm getting ready to teach a basic device drivers course in a couple weeks with someone else's courseware and i just wanted to bring some sections up to date. there's one section on