summaryrefslogtreecommitdiff
path: root/tools/perf/ui/keysyms.h
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2013-02-03 10:38:20 +0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-02-07 01:09:24 +0400
commit341487ab561f3937a5283dd77c5660b1ee3b1f9e (patch)
tree0daeec601b75739c1d1b6ae26cee0ff6d8f48330 /tools/perf/ui/keysyms.h
parent0fbdad078a70ed72248c3d30fe32e45e83be00d1 (diff)
downloadlinux-341487ab561f3937a5283dd77c5660b1ee3b1f9e.tar.xz
perf hists browser: Add option for runtime switching perf data file
Based on perf report/top/scripts browser integration idea from acme. This will enable user to runtime switch the data file, when this option is selected, it will popup all the legal data files in current working directory, and the filename selected by user is saved in the global variable "input_name", and a new key 'K_SWITCH_INPUT_DATA' will be passed back to the built-in command which will perform the switch. This initial version only enables it for 'perf report'. v2: rebase to latest 'perf/core' branch (6e1d4dd) of acme's perf tree 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/1359873501-24541-1-git-send-email-feng.tang@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/keysyms.h')
-rw-r--r--tools/perf/ui/keysyms.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/ui/keysyms.h b/tools/perf/ui/keysyms.h
index 809eca5707fa..65092d576b4e 100644
--- a/tools/perf/ui/keysyms.h
+++ b/tools/perf/ui/keysyms.h
@@ -23,5 +23,6 @@
#define K_TIMER -1
#define K_ERROR -2
#define K_RESIZE -3
+#define K_SWITCH_INPUT_DATA -4
#endif /* _PERF_KEYSYMS_H_ */