* Kernelnewbies Digest, Vol 73, Issue 3
[not found] <mailman.1.1480784402.15956.kernelnewbies@kernelnewbies.org>
@ 2016-12-03 18:46 ` John Smith
2016-12-03 19:18 ` Daniel.
2016-12-05 6:57 ` AW: " Warlich, Christof
0 siblings, 2 replies; 3+ messages in thread
From: John Smith @ 2016-12-03 18:46 UTC (permalink / raw)
To: kernelnewbies
Hi Andrey,
Can you help post some good/still relevant links? Call me stupid, I did google, found a few websites, and most of them are kind of out of contexts(don't know how to follow). For beginners, step-by-step tutorials are the best. so far, sounds like kgdb is promising, but it requires a lot of backgrounds to start with. I still have not figured out the exact steps.
Thank you,
Message: 1
Date: Fri, 2 Dec 2016 23:15:44 +0000
From: Andrey Utkin <andrey_utkin@fastmail.com>
Subject: Re: Debugging tool for Linux kernel and driver development
To: Teoh Choon Zone <choon-zone.teoh@vie.com.my>
Cc: kernelnewbies <kernelnewbies@kernelnewbies.org>
Message-ID: <20161202231544.GB23301@dell-m4800.home>
Content-Type: text/plain; charset=us-ascii
On Fri, Dec 02, 2016 at 03:27:01PM +0800, Teoh Choon Zone wrote:
> What are some widely used industrial tools (software/ hardware) for
> debugging Linux kernel and driver? Recently my company allocate a budget
> for purchasing this kind of tools, so I would like what are the tools that
> would greatly ease our development.
You'd better budget some time to google a bit and watch conference
videos showing debugging techniques :) There are fine videos from past
Kernel Recipes conferences.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161203/ced0825d/attachment-0001.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Kernelnewbies Digest, Vol 73, Issue 3
2016-12-03 18:46 ` Kernelnewbies Digest, Vol 73, Issue 3 John Smith
@ 2016-12-03 19:18 ` Daniel.
2016-12-05 6:57 ` AW: " Warlich, Christof
1 sibling, 0 replies; 3+ messages in thread
From: Daniel. @ 2016-12-03 19:18 UTC (permalink / raw)
To: kernelnewbies
Some guys are likely to prefer complex tools, but I'm a simple guy. My
first try at debugging is printing. Using pr_debug is not always
possible so ftrace and early printk may be useful. Another tool that
comes with kernel and that is amazing is perf. You may find undercover
bottlenecks with this one. Really really useful. Being able to read
kernel stack traces is a good skill too,,
I tried kgdb over serial at some embedded system. Apparently the
serial driver was not capable of running kgdb.. Some polling mechanism
was needed, but not implemented.. at least, this was written at some
forum and I didn't do further investigation...
Here are some links:
http://elinux.org/Debugging_by_printing
https://www.kernel.org/doc/Documentation/trace/ftrace.txt
https://perf.wiki.kernel.org/index.php/Tutorial
http://www.dedoimedo.com/computers/crash-book.html
Regards,
2016-12-03 16:46 GMT-02:00 John Smith <PR2723@hotmail.com>:
> Hi Andrey,
>
> Can you help post some good/still relevant links? Call me stupid, I did
> google, found a few websites, and most of them are kind of out of
> contexts(don't know how to follow). For beginners, step-by-step tutorials
> are the best. so far, sounds like kgdb is promising, but it requires a lot
> of backgrounds to start with. I still have not figured out the exact steps.
>
> Thank you,
>
> Message: 1
> Date: Fri, 2 Dec 2016 23:15:44 +0000
> From: Andrey Utkin <andrey_utkin@fastmail.com>
> Subject: Re: Debugging tool for Linux kernel and driver development
> To: Teoh Choon Zone <choon-zone.teoh@vie.com.my>
> Cc: kernelnewbies <kernelnewbies@kernelnewbies.org>
> Message-ID: <20161202231544.GB23301@dell-m4800.home>
> Content-Type: text/plain; charset=us-ascii
>
> On Fri, Dec 02, 2016 at 03:27:01PM +0800, Teoh Choon Zone wrote:
>> What are some widely used industrial tools (software/ hardware) for
>> debugging Linux kernel and driver? Recently my company allocate a budget
>> for purchasing this kind of tools, so I would like what are the tools that
>> would greatly ease our development.
>
> You'd better budget some time to google a bit and watch conference
> videos showing debugging techniques :) There are fine videos from past
> Kernel Recipes conferences.
>
>
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
--
"Do or do not. There is no try"
Yoda Master
^ permalink raw reply [flat|nested] 3+ messages in thread
* AW: Kernelnewbies Digest, Vol 73, Issue 3
2016-12-03 18:46 ` Kernelnewbies Digest, Vol 73, Issue 3 John Smith
2016-12-03 19:18 ` Daniel.
@ 2016-12-05 6:57 ` Warlich, Christof
1 sibling, 0 replies; 3+ messages in thread
From: Warlich, Christof @ 2016-12-05 6:57 UTC (permalink / raw)
To: kernelnewbies
Hi John,
what about this tutorial:
https://www.kernel.org/doc/htmldocs/kgdb/
It's the first hit when you google for kdgb, and it got me started.
If you really look for professional tools, the Lauterbach debuggers are really doing a good job and are comparably cheap. But you may only need such tools when your kernel is not yet up and running (i.e. for BSP development) or when you need tracing support beyond the excellent tracing capabilities already provided by the kernel's ftrace infrastructure.
Hope this helps,
Chris
Von: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] Im Auftrag von John Smith
Gesendet: Samstag, 3. Dezember 2016 19:46
An: kernelnewbies at kernelnewbies.org
Betreff: Re: Kernelnewbies Digest, Vol 73, Issue 3
Hi Andrey,
Can you help post some good/still relevant links? Call me stupid, I did google, found a few websites, and most of them are kind of out of contexts(don't know how to follow). For beginners, step-by-step tutorials are the best. so far, sounds like kgdb is promising, but it requires a lot of backgrounds to start with. I still have not figured out the exact steps.
Thank you,
Message: 1
Date: Fri, 2 Dec 2016 23:15:44 +0000
From: Andrey Utkin <andrey_utkin at fastmail.com<mailto:andrey_utkin@fastmail.com>>
Subject: Re: Debugging tool for Linux kernel and driver development
To: Teoh Choon Zone <choon-zone.teoh at vie.com.my<mailto:choon-zone.teoh@vie.com.my>>
Cc: kernelnewbies <kernelnewbies at kernelnewbies.org<mailto:kernelnewbies@kernelnewbies.org>>
Message-ID: <20161202231544.GB23301 at dell-m4800.home<mailto:20161202231544.GB23301@dell-m4800.home>>
Content-Type: text/plain; charset=us-ascii
On Fri, Dec 02, 2016 at 03:27:01PM +0800, Teoh Choon Zone wrote:
> What are some widely used industrial tools (software/ hardware) for
> debugging Linux kernel and driver? Recently my company allocate a budget
> for purchasing this kind of tools, so I would like what are the tools that
> would greatly ease our development.
You'd better budget some time to google a bit and watch conference
videos showing debugging techniques :) There are fine videos from past
Kernel Recipes conferences.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161205/2d0f8c7e/attachment.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-05 6:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1.1480784402.15956.kernelnewbies@kernelnewbies.org>
2016-12-03 18:46 ` Kernelnewbies Digest, Vol 73, Issue 3 John Smith
2016-12-03 19:18 ` Daniel.
2016-12-05 6:57 ` AW: " Warlich, Christof
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).