From mboxrd@z Thu Jan 1 00:00:00 1970 From: fan.du@windriver.com (Fan Du) Date: Fri, 6 Dec 2013 09:40:17 +0800 Subject: How can I 'getchar()' in module code? In-Reply-To: References: Message-ID: <52A12B01.50903@windriver.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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