From: fan.du@windriver.com (Fan Du)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How can I 'getchar()' in module code?
Date: Fri, 6 Dec 2013 09:40:17 +0800 [thread overview]
Message-ID: <52A12B01.50903@windriver.com> (raw)
In-Reply-To: <CAJFpru+PKKAVHG6yUUqdvMRqu5Era5c2+C4cQ=yUejgDSKCaqQ@mail.gmail.com>
On 2013?12?03? 20:35, ??? wrote:
> For debugging purpose, I want something like 'getchar()' that can pause execution in the module code. Do any candidates I can choose?
>
Create a /proc/knob to turn on or off your code path flow on fly, instead of using user space getchar.
Otherwise, you should looking into other more promising debug method.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
?????????
--fan fan
prev parent reply other threads:[~2013-12-06 1:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-03 12:35 How can I 'getchar()' in module code? 乃宏周
2013-12-03 13:20 ` Daniel Baluta
2013-12-03 13:38 ` Valdis.Kletnieks at vt.edu
2013-12-03 14:20 ` Bernd Petrovitsch
2013-12-04 21:21 ` Daniel Baluta
2013-12-05 13:14 ` Bernd Petrovitsch
2013-12-05 1:34 ` Peter Teoh
2013-12-05 4:45 ` 乃宏周
2013-12-06 1:40 ` Fan Du [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52A12B01.50903@windriver.com \
--to=fan.du@windriver.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).