diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-01-09 02:38:23 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-01-09 02:38:23 -0500 |
commit | da733563be5a9da26fe81d9f007262d00b846e22 (patch) | |
tree | db28291df94a2043af2123911984c5c173da4e6f /tools/perf/builtin-script.c | |
parent | 6ccbcf2cb41131f8d56ef0723bf3f7c1f8486076 (diff) | |
parent | dab78d7924598ea4031663dd10db814e2e324928 (diff) |
Merge branch 'next' into for-linus
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 09024ec2ab2e..2f62a2952269 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -22,6 +22,7 @@ static u64 last_timestamp; | |||
22 | static u64 nr_unordered; | 22 | static u64 nr_unordered; |
23 | extern const struct option record_options[]; | 23 | extern const struct option record_options[]; |
24 | static bool no_callchain; | 24 | static bool no_callchain; |
25 | static bool show_full_info; | ||
25 | static const char *cpu_list; | 26 | static const char *cpu_list; |
26 | static DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS); | 27 | static DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS); |
27 | 28 | ||
@@ -1083,7 +1084,8 @@ static const struct option options[] = { | |||
1083 | "comma separated output fields prepend with 'type:'. Valid types: hw,sw,trace,raw. Fields: comm,tid,pid,time,cpu,event,trace,ip,sym,dso,addr", | 1084 | "comma separated output fields prepend with 'type:'. Valid types: hw,sw,trace,raw. Fields: comm,tid,pid,time,cpu,event,trace,ip,sym,dso,addr", |
1084 | parse_output_fields), | 1085 | parse_output_fields), |
1085 | OPT_STRING('c', "cpu", &cpu_list, "cpu", "list of cpus to profile"), | 1086 | OPT_STRING('c', "cpu", &cpu_list, "cpu", "list of cpus to profile"), |
1086 | 1087 | OPT_BOOLEAN('I', "show-info", &show_full_info, | |
1088 | "display extended information from perf.data file"), | ||
1087 | OPT_END() | 1089 | OPT_END() |
1088 | }; | 1090 | }; |
1089 | 1091 | ||
@@ -1268,6 +1270,8 @@ int cmd_script(int argc, const char **argv, const char *prefix __used) | |||
1268 | return -1; | 1270 | return -1; |
1269 | } | 1271 | } |
1270 | 1272 | ||
1273 | perf_session__fprintf_info(session, stdout, show_full_info); | ||
1274 | |||
1271 | if (!no_callchain) | 1275 | if (!no_callchain) |
1272 | symbol_conf.use_callchain = true; | 1276 | symbol_conf.use_callchain = true; |
1273 | else | 1277 | else |