perftool: missing import of socketpair and better parsing events
perf/perftool.py: fixed parsing of events