Re: [PATCH v2 0/2] perf: add support for logging debug messages to file

From: Jiri Olsa
Date: Sun Sep 29 2019 - 03:44:21 EST


On Sun, Sep 22, 2019 at 10:38:21AM +0800, Changbin Du wrote:
> When in TUI mode, it is impossible to show all the debug messages to
> console. This make it hard to debug perf issues using debug messages.
> This patch adds support for logging debug messages to file to resolve
> this problem.
>
> v2:
> o specific all debug options one time.
>
> Changbin Du (2):
> perf: support multiple debug options separated by ','
> perf: add support for logging debug messages to file

hi,
getting segfault with:

[jolsa@krava perf]$ ./perf --debug verbose=2,file report
build id event received for [kernel.kallsyms]: bf6ca14c03795fd67b4d88113681ba4af2b8c18a
Segmentation fault (core dumped)

jirka

>
> tools/perf/Documentation/perf.txt | 14 ++--
> tools/perf/util/debug.c | 106 ++++++++++++++++++------------
> 2 files changed, 73 insertions(+), 47 deletions(-)
>
> --
> 2.20.1
>