perf scripts python: Add a python library EventClass.py
commit02f1c33f7d630183518ea42d45a6acf275541b08
authorFeng Tang <feng.tang@intel.com>
Wed, 8 Aug 2012 09:57:54 +0000 (8 17:57 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 8 Aug 2012 15:53:08 +0000 (8 12:53 -0300)
tree220509afc526325043c0e866ac88a089cdb7be1b
parentfd6b858a1e110c76e701cd9972a284ed2a7bcc33
perf scripts python: Add a python library EventClass.py

This library defines several class types for perf events which could
help to better analyze the event samples. Currently there are just a few
classes, PerfEvent is the base class for all perf events,  PebsEvent is
a HW base Intel x86 PEBS event, and user could add more SW/HW event
classes based on requriements.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1344419875-21665-5-git-send-email-feng.tang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py [new file with mode: 0755]