gsd

Countinute from perf_event.c 

https://github.com/franciscofranco/hammerhead/commit/82544afd4f2d49fffa76053c699b805ef198c7bb#diff-1601e545d0000b2d3de6b6c148cfe29eR54