Messages in this thread | | | Date | Mon, 12 Sep 2011 16:47:21 +0200 | Subject | Re: [PATCH] perf: make perf.data more self-descriptive (v4) | From | Stephane Eranian <> |
| |
On Mon, Sep 12, 2011 at 4:43 PM, Peter Zijlstra <peterz@infradead.org> wrote: > On Mon, 2011-09-12 at 16:40 +0200, Stephane Eranian wrote: >> I don't think this should be the test to detect endianess. > > You should be able to tell the endianness from the PERF_MAGIC string, it > stores the string as a u64, so depending on endianness it reads back as > either: PERFFILE or ELIFFREP or whatever the bswap64 result is. > right, something like that...
| |