linux/tools/perf/arch/s390
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
..
annotate perf annotate: Pass function descriptor to its instruction parsing routines 2018-03-21 16:19:41 -03:00
entry/syscalls perf s390: Rework system call table creation by using syscall.tbl 2018-02-15 10:06:08 -03:00
include tools arch s390: Do not include header files from the kernel sources 2017-12-18 11:56:13 -03:00
util perf record: Fix s390 undefined record__auxtrace_init() return value 2018-04-23 12:05:02 -03:00
Build perf build: Add arch s390 objects building 2015-02-12 13:20:59 -03:00
Makefile perf s390: Rework system call table creation by using syscall.tbl 2018-02-15 10:06:08 -03:00