Kernel development virtualization options

2018-11-16 Thread Laurence Rochfort
Hi all, Thus far, I've been testing my kernel patches in a KVM vm with a full distro installation, but it's pretty slow and cumbersome. Valerie Aurora has a blog post on using User-mode Linux, and others mention QEMU with an overlay filesystem and BusyBox. What do people recommend for quick iter

Re: [ARM64] Printing IRQ stack usage information

2018-11-16 Thread valdis . kletnieks
On Fri, 16 Nov 2018 11:44:36 +0530, Pintu Agarwal said: > > If your question is "Did one > > of the CPUs blow out its IRQ stack (or come close to doing so)?" there's > > better > > approaches. > > > Yes, exactly, this is what the main intention. > If you have any better idea about this approach,

Re: [ARM64] Printing IRQ stack usage information

2018-11-16 Thread Pintu Agarwal
On Fri, Nov 16, 2018 at 5:03 PM wrote: > > On Fri, 16 Nov 2018 11:44:36 +0530, Pintu Agarwal said: > > > > If your question is "Did one > > > of the CPUs blow out its IRQ stack (or come close to doing so)?" there's > > > better > > > approaches. > > > > > Yes, exactly, this is what the main inten

Re: [ARM64] Printing IRQ stack usage information

2018-11-16 Thread valdis . kletnieks
On Fri, 16 Nov 2018 20:10:28 +0530, Pintu Agarwal said: > > Look at the code controlled by '#ifdef CONFIG_DEBUG_STACK_USAGE' > For example: is it possible to keep storing the irq_stack_usage (for > each cpu in a variable) information from boot time, and then use this > variable to dump the irq_st

Re: Kernel development virtualization options

2018-11-16 Thread Mulyadi Santosa
On Fri, Nov 16, 2018 at 5:39 PM Laurence Rochfort < laurence.rochf...@gmail.com> wrote: > Hi all, > > Thus far, I've been testing my kernel patches in a KVM vm with a full > distro installation, but it's pretty slow and cumbersome. > > Hi Hmmm, weird, assuming your CPU had VT-x/AMD-V enabled, KVM

Re: [ARM64] Printing IRQ stack usage information

2018-11-16 Thread Pintu Agarwal
On Fri, Nov 16, 2018 at 10:16 PM wrote: > > On Fri, 16 Nov 2018 20:10:28 +0530, Pintu Agarwal said: > > > > Look at the code controlled by '#ifdef CONFIG_DEBUG_STACK_USAGE' > > > For example: is it possible to keep storing the irq_stack_usage (for > > each cpu in a variable) information from boot

Re: [ARM64] Printing IRQ stack usage information

2018-11-16 Thread valdis . kletnieks
On Fri, 16 Nov 2018 23:13:48 +0530, Pintu Agarwal said: > On Fri, Nov 16, 2018 at 10:16 PM wrote: > > Congrats. You just re-invented DEBUG_STACK_USAGE, which just keeps a > > high-water mark > > for stack usage. > > So, you mean to say, my implementation is good enough to get the > irq_stack usa