linux/tools/perf/arch/s390/util
Thomas Richter 5d9946c3e5 perf record: Fix s390 undefined record__auxtrace_init() return value
Command 'perf record' calls:

  cmd_report()
    record__auxtrace_init()
       auxtrace_record__init()

On s390 function auxtrace_record__init() returns random return value due
to missing initialization.

This sometime causes 'perf record' to exit immediately without error
message and creating a perf.data file.

Fix this by setting error the return code to zero before returning from
platform specific functions which may not set the error code in call
cases.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Link: http://lkml.kernel.org/r/20180423142940.21143-1-tmricht@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-04-23 12:05:02 -03:00
..
Build s390/perf: add support for perf_regs and libdw 2017-11-16 15:06:12 +01:00
auxtrace.c perf record: Fix s390 undefined record__auxtrace_init() return value 2018-04-23 12:05:02 -03:00
dwarf-regs.c perf s390: add regs_query_register_offset() 2017-12-05 15:02:41 +01:00
header.c perf list: Remove s390 specific strcmp_cpuid_cmp function 2018-04-23 11:03:13 -03:00
kvm-stat.c perf tools: Include errno.h where needed 2017-04-19 13:01:51 -03:00
machine.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
unwind-libdw.c s390/perf: add perf register support for floating-point registers 2017-11-16 15:06:15 +01:00