|
@@ -71,6 +71,7 @@ struct report {
|
|
bool group_set;
|
|
bool group_set;
|
|
int max_stack;
|
|
int max_stack;
|
|
struct perf_read_values show_threads_values;
|
|
struct perf_read_values show_threads_values;
|
|
|
|
+ struct annotation_options annotation_opts;
|
|
const char *pretty_printing_style;
|
|
const char *pretty_printing_style;
|
|
const char *cpu_list;
|
|
const char *cpu_list;
|
|
const char *symbol_filter_str;
|
|
const char *symbol_filter_str;
|
|
@@ -988,6 +989,7 @@ int cmd_report(int argc, const char **argv)
|
|
.max_stack = PERF_MAX_STACK_DEPTH,
|
|
.max_stack = PERF_MAX_STACK_DEPTH,
|
|
.pretty_printing_style = "normal",
|
|
.pretty_printing_style = "normal",
|
|
.socket_filter = -1,
|
|
.socket_filter = -1,
|
|
|
|
+ .annotation_opts = annotation__default_options,
|
|
};
|
|
};
|
|
const struct option options[] = {
|
|
const struct option options[] = {
|
|
OPT_STRING('i', "input", &input_name, "file",
|
|
OPT_STRING('i', "input", &input_name, "file",
|
|
@@ -1077,9 +1079,9 @@ int cmd_report(int argc, const char **argv)
|
|
"list of cpus to profile"),
|
|
"list of cpus to profile"),
|
|
OPT_BOOLEAN('I', "show-info", &report.show_full_info,
|
|
OPT_BOOLEAN('I', "show-info", &report.show_full_info,
|
|
"Display extended information about perf.data file"),
|
|
"Display extended information about perf.data file"),
|
|
- OPT_BOOLEAN(0, "source", &symbol_conf.annotate_src,
|
|
|
|
|
|
+ OPT_BOOLEAN(0, "source", &report.annotation_opts.annotate_src,
|
|
"Interleave source code with assembly code (default)"),
|
|
"Interleave source code with assembly code (default)"),
|
|
- OPT_BOOLEAN(0, "asm-raw", &symbol_conf.annotate_asm_raw,
|
|
|
|
|
|
+ OPT_BOOLEAN(0, "asm-raw", &report.annotation_opts.show_asm_raw,
|
|
"Display raw encoding of assembly instructions (default)"),
|
|
"Display raw encoding of assembly instructions (default)"),
|
|
OPT_STRING('M', "disassembler-style", &disassembler_style, "disassembler style",
|
|
OPT_STRING('M', "disassembler-style", &disassembler_style, "disassembler style",
|
|
"Specify disassembler style (e.g. -M intel for intel syntax)"),
|
|
"Specify disassembler style (e.g. -M intel for intel syntax)"),
|