kprobe-coverage: Mr Gorbachev, refactor this code!

Untested though.