Re: [PATCH v2] perf callchain: Return directly when use '--call-graph dwarf' under !HAVE_DWARF_SUPPORT

2020-12-15 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 15, 2020 at 10:49:59PM +0900, Namhyung Kim escreveu: > Hello, > > On Tue, Dec 15, 2020 at 10:35 AM Tiezhu Yang wrote: > > > > DWARF register mappings have not been defined for some architectures, > > at least for mips, so we can print an error message and then return > > directly

Re: [PATCH v2] perf callchain: Return directly when use '--call-graph dwarf' under !HAVE_DWARF_SUPPORT

2020-12-15 Thread Namhyung Kim
Hello, On Tue, Dec 15, 2020 at 10:35 AM Tiezhu Yang wrote: > > DWARF register mappings have not been defined for some architectures, > at least for mips, so we can print an error message and then return > directly when use '--call-graph dwarf'. > > E.g. without this patch: > > [root@linux perf]#

Re: [PATCH v2] perf callchain: Return directly when use '--call-graph dwarf' under !HAVE_DWARF_SUPPORT

2020-12-15 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 15, 2020 at 09:35:31AM +0800, Tiezhu Yang escreveu: > DWARF register mappings have not been defined for some architectures, > at least for mips, so we can print an error message and then return > directly when use '--call-graph dwarf'. > > E.g. without this patch: Thanks, applied.

[PATCH v2] perf callchain: Return directly when use '--call-graph dwarf' under !HAVE_DWARF_SUPPORT

2020-12-14 Thread Tiezhu Yang
DWARF register mappings have not been defined for some architectures, at least for mips, so we can print an error message and then return directly when use '--call-graph dwarf'. E.g. without this patch: [root@linux perf]# ./perf record --call-graph dwarf cd Error: The sys_perf_event_open()