diff options
| author | 2016-05-19 11:47:37 +0000 | |
|---|---|---|
| committer | 2016-05-20 11:43:58 -0300 | |
| commit | a706670900073d236938d539d1109338d64b47bb (patch) | |
| tree | f443923e3e27b3c9b667ea284f409be52a72be4e /tools/perf/builtin-diff.c | |
| parent | perf trace: Only auto set call-graph to "dwarf" when syscalls are being traced (diff) | |
| download | linux-dev-a706670900073d236938d539d1109338d64b47bb.tar.xz linux-dev-a706670900073d236938d539d1109338d64b47bb.zip  | |
perf tools: Set buildid dir under symfs when --symfs is provided
This patch moves the reference of buildid dir to 'symfs/.debug' and
skips the local buildid dir when '--symfs' is given, so that every
single file opened by perf is relative to symfs directory now.
Signed-off-by: He Kuang <hekuang@huawei.com>
Acked-by: David Ahern <dsahern@gmail.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ekaterina Tumanova <tumanova@linux.vnet.ibm.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1463658462-85131-2-git-send-email-hekuang@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-diff.c')
| -rw-r--r-- | tools/perf/builtin-diff.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 9ce354f469dc..f7645a42708e 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c @@ -812,8 +812,9 @@ static const struct option options[] = {  	OPT_STRING_NOEMPTY('t', "field-separator", &symbol_conf.field_sep, "separator",  		   "separator for columns, no spaces will be added between "  		   "columns '.' is reserved."), -	OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory", -		    "Look for files with symbols relative to this directory"), +	OPT_CALLBACK(0, "symfs", NULL, "directory", +		     "Look for files with symbols relative to this directory", +		     symbol__config_symfs),  	OPT_UINTEGER('o', "order", &sort_compute, "Specify compute sorting."),  	OPT_CALLBACK(0, "percentage", NULL, "relative|absolute",  		     "How to display percentage of filtered entries", parse_filter_percentage),  | 
