]> git.baikalelectronics.ru Git - kernel.git/commit
perf script: Add more filter to find_scripts()
authorFeng Tang <feng.tang@intel.com>
Tue, 30 Oct 2012 03:56:03 +0000 (11:56 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 29 Oct 2012 13:46:23 +0000 (11:46 -0200)
commitb303906fa0bfcd90c2f8c946bb484285e5632aaa
tree59352cf476a6377e76eb9f691f122042ed416151
parent035e7139dfb080792bdc87d17e3c99ba07a0aa40
perf script: Add more filter to find_scripts()

As suggested by Arnaldo, many scripts have their own usages and need
capture specific events or tracepoints, so only those scripts whose
target events match the events in current perf data file should be
listed in the script browser menu.

This patch will add the event match checking, by opening "xxx-record"
script to cherry pick out all events name and comparing them with
those inside the perf data file.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1351569369-26732-3-git-send-email-feng.tang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c