aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-10-25 20:12:01 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-10-25 20:12:01 -0400
commit7f6c1bd50d73d12f8b4ea09edb4515997f6527f5 (patch)
tree0fa10415690421828e6caf47e095fd91b327ec46 /tools/perf/scripts
parenta64fa198ba1cd232871710c37476e006ed5516ed (diff)
perf python scripting: Support fedora 11 (audit 1.7.17)
Where we don't have the audit.MACH_ARMEB constant. Cc: David S. Miller <davem@davemloft.net> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts')
-rw-r--r--tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
index 9d15f484308c..99ff1b7a0d2c 100644
--- a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
+++ b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
@@ -36,7 +36,6 @@ try:
36 machine_to_id = { 36 machine_to_id = {
37 'x86_64': audit.MACH_86_64, 37 'x86_64': audit.MACH_86_64,
38 'alpha' : audit.MACH_ALPHA, 38 'alpha' : audit.MACH_ALPHA,
39 'armeb' : audit.MACH_ARMEB,
40 'ia64' : audit.MACH_IA64, 39 'ia64' : audit.MACH_IA64,
41 'ppc' : audit.MACH_PPC, 40 'ppc' : audit.MACH_PPC,
42 'ppc64' : audit.MACH_PPC64, 41 'ppc64' : audit.MACH_PPC64,
@@ -46,6 +45,10 @@ try:
46 'i586' : audit.MACH_X86, 45 'i586' : audit.MACH_X86,
47 'i686' : audit.MACH_X86, 46 'i686' : audit.MACH_X86,
48 } 47 }
48 try:
49 machine_to_id['armeb'] = audit.MACH_ARMEB
50 except:
51 pass
49 machine_id = machine_to_id[os.uname()[4]] 52 machine_id = machine_to_id[os.uname()[4]]
50except: 53except:
51 if not audit_package_warned: 54 if not audit_package_warned: