How can I 'getchar()' in module code?

Fan Du fan.du at windriver.com
Thu Dec 5 20:40:17 EST 2013



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



More information about the Kernelnewbies mailing list