From: Feng Tang Date: Tue, 30 Oct 2012 03:56:02 +0000 (+0800) Subject: perf tools: Add a global variable "const char *input_name" X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~77^2~7^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70cb4e963f77dae90ae2aa3dd9385a43737c469f;p=pandora-kernel.git perf tools: Add a global variable "const char *input_name" Currently many perf commands annotate/evlist/report/script/lock etc all support "-i" option to chose a specific perf data, and all of them create a local "input_name" to save the file name for that perf data. Since most of these commands need it, we can add a global variable for it, also it can some other benefits: 1. When calling script browser inside hists/annotation browser, it needs to know the perf data file name to run that script. 2. For further feature like runtime switching to another perf data file, this variable can also help. Signed-off-by: Feng Tang Cc: Andi Kleen Cc: Ingo Molnar Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1351569369-26732-2-git-send-email-feng.tang@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed