perf header: Swap pmu mapping numbers if needed
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 5 Sep 2012 05:02:49 +0000 (14:02 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 5 Sep 2012 20:47:11 +0000 (17:47 -0300)
commitbe4a2dedf6816871349fbddd018f266e93e3c22d
treec74dad2ca7afaebd643b36a3390b910b458cf53e
parent618a3f1d30ea0ee2ff3a88661b8d6a4035123211
perf header: Swap pmu mapping numbers if needed

Like others, the numbers can be saved in a different endian format than
a host machine.  Swap them if needed.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Robert Richter <robert.richter@amd.com>
Link: http://lkml.kernel.org/r/1346821373-31621-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c