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

2013-12-05 Thread Bernd Petrovitsch
On Mit, 2013-12-04 at 23:21 +0200, Daniel Baluta wrote: On Tue, Dec 3, 2013 at 4:20 PM, Bernd Petrovitsch be...@petrovitsch.priv.at wrote: On Die, 2013-12-03 at 08:38 -0500, valdis.kletni...@vt.edu wrote: On Tue, 03 Dec 2013 20:35:41 +0800, said: For debugging purpose, I want something

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

2013-12-05 Thread Fan Du
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

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

2013-12-04 Thread Daniel Baluta
On Tue, Dec 3, 2013 at 4:20 PM, Bernd Petrovitsch be...@petrovitsch.priv.at wrote: On Die, 2013-12-03 at 08:38 -0500, valdis.kletni...@vt.edu wrote: On Tue, 03 Dec 2013 20:35:41 +0800, said: For debugging purpose, I want something like 'getchar()' that can pause execution in the module

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

2013-12-04 Thread Peter Teoh
yes, exactly - what u are describing is called kdb. don't mixed up with kgdb. kdb: this is debugging on the same computer - so no serial ports connection are needed. once exception occurred, you will be popped into a special debugger screen. problem is that now this debugger is running

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

2013-12-04 Thread 乃宏周
Thanks your replies! I found the target. 2013/12/5 上午9:34 於 Peter Teoh htmldevelo...@gmail.com 寫道: yes, exactly - what u are describing is called kdb. don't mixed up with kgdb. kdb: this is debugging on the same computer - so no serial ports connection are needed. once exception

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

2013-12-03 Thread 乃宏周
For debugging purpose, I want something like 'getchar()' that can pause execution in the module code. Do any candidates I can choose? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

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

2013-12-03 Thread Daniel Baluta
On Tue, Dec 3, 2013 at 2:35 PM, 乃宏周 naive...@gmail.com wrote: For debugging purpose, I want something like 'getchar()' that can pause execution in the module code. Do any candidates I can choose? No. ___ Kernelnewbies mailing list

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

2013-12-03 Thread Valdis . Kletnieks
On Tue, 03 Dec 2013 20:35:41 +0800, 乃宏周 said: For debugging purpose, I want something like 'getchar()' that can pause execution in the module code. Do any candidates I can choose? The problem is that pausing execution in module code is dangerous, as if you hold any locks or anything like

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

2013-12-03 Thread Bernd Petrovitsch
On Die, 2013-12-03 at 08:38 -0500, valdis.kletni...@vt.edu wrote: On Tue, 03 Dec 2013 20:35:41 +0800, said: For debugging purpose, I want something like 'getchar()' that can pause execution in the module code. Do any candidates I can choose? You do not want that - there is way too much