commit | 62d861062b1a73452f4e5cd2d0938730badb551c | [log] [tgz] |
---|---|---|
author | Leo Yan <[email protected]> | Fri Oct 11 17:19:41 2019 +0800 |
committer | Greg Kroah-Hartman <[email protected]> | Sat Jan 04 13:39:23 2020 +0100 |
tree | a3023fdcf0d3370b41b34def25cb6774dfb01d99 | |
parent | beef7459958bd34f97833e2617a827e74b8e42ab [diff] |
perf test: Report failure for mmap events [ Upstream commit 6add129c5d9210ada25217abc130df0b7096ee02 ] When fail to mmap events in task exit case, it misses to set 'err' to -1; thus the testing will not report failure for it. This patch sets 'err' to -1 when fails to mmap events, thus Perf tool can report correct result. Fixes: d723a55096b8 ("perf test: Add test case for checking number of EXIT events") Signed-off-by: Leo Yan <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Sasha Levin <[email protected]>