Dnia 2011-11-06, nie o godzinie 10:32 +0100, Alcides Viamontes Esquivel
pisze:
[..]
> I suspect that the real bug is somewhere in the way the packets are
> classified, and that somehow wacom_bpt_pen is processing a packet
> which is not for her. But I'm really not a kernel developer, so, I
> would appreciate any hints (in particular, how do you trace from
> inside a kernel module?).
I'm not sure if it answers your question, but I'd try to catch the
guilty packet using "if" and "printk".

Some other tips:
clone wacom-kernel tree:

git clone
git://linuxwacom.git.sourceforge.net/gitroot/linuxwacom/wacom-kernel

checkout "devel" branch, cd to wacom-kernel and test:
make modules
and
make install

There is Makefile in wacom-kernel directory that makes a bit easier
compiling & installing wacom modules.

My normal workflow:
1. Make changes to the module code
2. Save and sometimes do git commit
3. cd to wacom-kernel (I use separate terminal for that) and "make" - I
use "make bmodules" as I mostly work on hid-wacom.
4. If the compilation goes OK I do "make install" from a separate
terminal with root account. (I use "make btinstall" for the same reason
as in 3)
5. Now "rmmod hid-wacom" and after restarting the tablet the new module
is loaded.
6. Test if the changes works

-- 
Przemo Firszt


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to