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)
commit49e639e256ea18fb92f609dd6be09883cd9d05aa
tree59352cf476a6377e76eb9f691f122042ed416151
parent70cb4e963f77dae90ae2aa3dd9385a43737c469f
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
This page took 0.125291 seconds and 5 git commands to generate.