diff options
author | Thomas Richter <[email protected]> | 2018-04-23 16:29:40 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-04-23 12:05:02 -0300 |
commit | 5d9946c3e5e38e07ab7019db9413a96807a325f2 (patch) | |
tree | 37f1fab81141027f034e876da3541ba013ee6ecc /lib/memory-notifier-error-inject.c | |
parent | 3138a2ef62667b6ac8eb5fb33a9e0b84ec3ab165 (diff) |
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 <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Hendrik Brueckner <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions