forked from Minki/linux
perf config: Add annotate.demangle{,_kernel}
Committer notes: This allows setting this in from the command line: $ perf config annotate.demangle $ perf config annotate.demangle=yes $ perf config annotate.demangle annotate.demangle=yes $ cat ~/.perfconfig # this file is auto-generated. [report] sort-order = srcline [annotate] demangle = yes $ $ $ perf config annotate.demangle_kernel $ perf config annotate.demangle_kernel=yes $ perf config annotate.demangle_kernel annotate.demangle_kernel=yes $ cat ~/.perfconfig # this file is auto-generated. [report] sort-order = srcline [annotate] demangle = yes demangle_kernel = yes $ Signed-off-by: Martin Liška <mliska@suse.cz> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Link: https://lore.kernel.org/r/c96aabe7-791f-9503-295f-3147a9d19b60@suse.cz Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
509bbd75f7
commit
44e176501c
@ -393,6 +393,12 @@ annotate.*::
|
|||||||
|
|
||||||
This option works with tui, stdio2 browsers.
|
This option works with tui, stdio2 browsers.
|
||||||
|
|
||||||
|
annotate.demangle::
|
||||||
|
Demangle symbol names to human readable form. Default is 'true'.
|
||||||
|
|
||||||
|
annotate.demangle_kernel::
|
||||||
|
Demangle kernel symbol names to human readable form. Default is 'true'.
|
||||||
|
|
||||||
hist.*::
|
hist.*::
|
||||||
hist.percentage::
|
hist.percentage::
|
||||||
This option control the way to calculate overhead of filtered entries -
|
This option control the way to calculate overhead of filtered entries -
|
||||||
|
@ -3144,6 +3144,10 @@ static int annotation__config(const char *var, const char *value, void *data)
|
|||||||
opt->use_offset = perf_config_bool("use_offset", value);
|
opt->use_offset = perf_config_bool("use_offset", value);
|
||||||
} else if (!strcmp(var, "annotate.disassembler_style")) {
|
} else if (!strcmp(var, "annotate.disassembler_style")) {
|
||||||
opt->disassembler_style = value;
|
opt->disassembler_style = value;
|
||||||
|
} else if (!strcmp(var, "annotate.demangle")) {
|
||||||
|
symbol_conf.demangle = perf_config_bool("demangle", value);
|
||||||
|
} else if (!strcmp(var, "annotate.demangle_kernel")) {
|
||||||
|
symbol_conf.demangle_kernel = perf_config_bool("demangle_kernel", value);
|
||||||
} else {
|
} else {
|
||||||
pr_debug("%s variable unknown, ignoring...", var);
|
pr_debug("%s variable unknown, ignoring...", var);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user