move extra flags table to pmudef
Add script to translate events back
toplev: cleanup
toplev: log to right file descriptors