Initial implementation of perf API on Linux, for now just saving perf data, in a further patch this data will be exported.