perf tests bp_signal: Show expected versus obtained values

To help understand failures.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-c951j3gvrgnrsyg7ki7pwkiz@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent c30d630d
...@@ -263,20 +263,20 @@ int test__bp_signal(struct test *test __maybe_unused, int subtest __maybe_unused ...@@ -263,20 +263,20 @@ int test__bp_signal(struct test *test __maybe_unused, int subtest __maybe_unused
if (count1 == 11) if (count1 == 11)
pr_debug("failed: RF EFLAG recursion issue detected\n"); pr_debug("failed: RF EFLAG recursion issue detected\n");
else else
pr_debug("failed: wrong count for bp1%lld\n", count1); pr_debug("failed: wrong count for bp1: %lld, expected 1\n", count1);
} }
if (overflows != 3) if (overflows != 3)
pr_debug("failed: wrong overflow hit\n"); pr_debug("failed: wrong overflow (%d) hit, expected 3\n", overflows);
if (overflows_2 != 3) if (overflows_2 != 3)
pr_debug("failed: wrong overflow_2 hit\n"); pr_debug("failed: wrong overflow_2 (%d) hit, expected 3\n", overflows_2);
if (count2 != 3) if (count2 != 3)
pr_debug("failed: wrong count for bp2\n"); pr_debug("failed: wrong count for bp2 (%lld), expected 3\n", count2);
if (count3 != 2) if (count3 != 2)
pr_debug("failed: wrong count for bp3\n"); pr_debug("failed: wrong count for bp3 (%lld), expected 2\n", count3);
return count1 == 1 && overflows == 3 && count2 == 3 && overflows_2 == 3 && count3 == 2 ? return count1 == 1 && overflows == 3 && count2 == 3 && overflows_2 == 3 && count3 == 2 ?
TEST_OK : TEST_FAIL; TEST_OK : TEST_FAIL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment