summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/cpumap.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-01-05 22:09:11 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-01-06 20:11:16 -0300
commitaef90263561a87ae6d9c6a0f4071d825ce636eef (patch)
treef20ad43d7b55830066864d539f536d1dd62d97fa /tools/perf/util/cpumap.c
parente099eba8c8df0f96e7cd6ddc5fc3151fe37be24e (diff)
downloadlinux-stable-aef90263561a87ae6d9c6a0f4071d825ce636eef.tar.gz
linux-stable-aef90263561a87ae6d9c6a0f4071d825ce636eef.tar.bz2
linux-stable-aef90263561a87ae6d9c6a0f4071d825ce636eef.zip
perf script: Add python support for stat events
Add support to get stat events data in perf python scripts. The python script shall implement the following new interface to process stat data: def stat__<event_name>_[<modifier>](cpu, thread, time, val, ena, run): - is called for every stat event for given counter, if user monitors 'cycles,instructions:u" following callbacks should be defined: def stat__cycles(cpu, thread, time, val, ena, run): def stat__instructions_u(cpu, thread, time, val, ena, run): def stat__interval(time): - is called for every interval with its time, in non interval mode it's called after last stat event with total measured time in ns The rest of the current interface stays untouched.. Please check example CPI metrics script in following patch with command line examples in changelogs. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Kan Liang <kan.liang@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1452028152-26762-8-git-send-email-jolsa@kernel.org [ Rename 'time' parameters to 'tstamp', to fix the build in older distros ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/cpumap.c')
0 files changed, 0 insertions, 0 deletions