aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2012-10-29 23:56:04 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-29 09:52:53 -0400
commit66517826664fa910d4bc5f32a5abff6bcd8657c5 (patch)
tree0dfb8b6b1320c26f76e97367bb471f7dd07af3e7 /tools/perf/Makefile
parent49e639e256ea18fb92f609dd6be09883cd9d05aa (diff)
perf scripts browser: Add a browser for perf script
Create a script browser, so that user can check all the available scripts for current perf data file and run them inside the main perf report or annotation browsers, for all perf samples or for samples belong to one thread/symbol. Please be noted: current script browser is only for report use, and doesn't cover the record phase, IOW it must run against one existing perf data file. The work flow is, users can use function key to list all the available scripts for current perf data file in system and chose one, which will be executed with popen("perf script -s xxx.xx",) and all the output lines are put into one ui browser, pressing 'q' or left arrow key will make it return to previous browser. 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-4-git-send-email-feng.tang@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index ec63d53cd87f..7e25f59e5e89 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -593,6 +593,7 @@ ifndef NO_NEWT
593 LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o 593 LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o
594 LIB_OBJS += $(OUTPUT)ui/browsers/hists.o 594 LIB_OBJS += $(OUTPUT)ui/browsers/hists.o
595 LIB_OBJS += $(OUTPUT)ui/browsers/map.o 595 LIB_OBJS += $(OUTPUT)ui/browsers/map.o
596 LIB_OBJS += $(OUTPUT)ui/browsers/scripts.o
596 LIB_OBJS += $(OUTPUT)ui/progress.o 597 LIB_OBJS += $(OUTPUT)ui/progress.o
597 LIB_OBJS += $(OUTPUT)ui/util.o 598 LIB_OBJS += $(OUTPUT)ui/util.o
598 LIB_OBJS += $(OUTPUT)ui/tui/setup.o 599 LIB_OBJS += $(OUTPUT)ui/tui/setup.o
@@ -909,6 +910,9 @@ $(OUTPUT)ui/browsers/hists.o: ui/browsers/hists.c $(OUTPUT)PERF-CFLAGS
909$(OUTPUT)ui/browsers/map.o: ui/browsers/map.c $(OUTPUT)PERF-CFLAGS 910$(OUTPUT)ui/browsers/map.o: ui/browsers/map.c $(OUTPUT)PERF-CFLAGS
910 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $< 911 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $<
911 912
913$(OUTPUT)ui/browsers/scripts.o: ui/browsers/scripts.c $(OUTPUT)PERF-CFLAGS
914 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DENABLE_SLFUTURE_CONST $<
915
912$(OUTPUT)util/rbtree.o: ../../lib/rbtree.c $(OUTPUT)PERF-CFLAGS 916$(OUTPUT)util/rbtree.o: ../../lib/rbtree.c $(OUTPUT)PERF-CFLAGS
913 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -Wno-unused-parameter -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< 917 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -Wno-unused-parameter -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
914 918