perf tools: Fix endian conversion reading event attr from file header