projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d20c62
)
perf record: Avoid duplicate call of perf_default_config()
author
Yisheng Xie
<
[email protected]
>
Mon, 12 Mar 2018 11:25:57 +0000
(19:25 +0800)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 16 Mar 2018 16:55:58 +0000
(13:55 -0300)
We have brought perf_default_config to the very beginning at main(), so
it no need to call perf_default_config() once more for most of config in
perf-record but only for record.call-graph.
Signed-off-by: Yisheng Xie <
[email protected]
>
Cc: Alexander Shishkin <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/builtin-record.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-record.c
b/tools/perf/builtin-record.c
index b81494587120cf235c5b894a11ae81d166fdde70..d33103291b026dcbb538a4253eeec33938cc88ca 100644
(file)
--- a/
tools/perf/builtin-record.c
+++ b/
tools/perf/builtin-record.c
@@
-1279,10
+1279,12
@@
static int perf_record_config(const char *var, const char *value, void *cb)
return -1;
return 0;
}
- if (!strcmp(var, "record.call-graph"))
- var = "call-graph.record-mode"; /* fall-through */
+ if (!strcmp(var, "record.call-graph")) {
+ var = "call-graph.record-mode";
+ return perf_default_config(var, value, cb);
+ }
- return
perf_default_config(var, value, cb)
;
+ return
0
;
}
struct clockid_map {