Implement support for blocking read from char dev.

- Fix compatibility with module vs kernel build.
- Struct tracepoint renamed to tracept because of name collision with kernel's headers.
- Change ATOMIC_INC_RET to ATOMIC_RET_INT (to return before increment) for blocking read.