Commit 70cb4e96 authored by Committed by Arnaldo Carvalho de Melo
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 <firstname.lastname@example.org> Cc: Andi Kleen <email@example.com> Cc: Ingo Molnar <firstname.lastname@example.org> Cc: Namhyung Kim <email@example.com> Cc: Peter Zijlstra <firstname.lastname@example.org> Link: http://email@example.comSigned-off-by: Arnaldo Carvalho de Melo <firstname.lastname@example.org>
Showing with 20 additions and 29 deletions