hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/perf/tests/bp_signal.c
....@@ -25,7 +25,8 @@
2525
2626 #include "tests.h"
2727 #include "debug.h"
28
-#include "perf.h"
28
+#include "event.h"
29
+#include "perf-sys.h"
2930 #include "cloexec.h"
3031
3132 static int fd1;
....@@ -265,20 +266,20 @@
265266 if (count1 == 11)
266267 pr_debug("failed: RF EFLAG recursion issue detected\n");
267268 else
268
- pr_debug("failed: wrong count for bp1%lld\n", count1);
269
+ pr_debug("failed: wrong count for bp1: %lld, expected 1\n", count1);
269270 }
270271
271272 if (overflows != 3)
272
- pr_debug("failed: wrong overflow hit\n");
273
+ pr_debug("failed: wrong overflow (%d) hit, expected 3\n", overflows);
273274
274275 if (overflows_2 != 3)
275
- pr_debug("failed: wrong overflow_2 hit\n");
276
+ pr_debug("failed: wrong overflow_2 (%d) hit, expected 3\n", overflows_2);
276277
277278 if (count2 != 3)
278
- pr_debug("failed: wrong count for bp2\n");
279
+ pr_debug("failed: wrong count for bp2 (%lld), expected 3\n", count2);
279280
280281 if (count3 != 2)
281
- pr_debug("failed: wrong count for bp3\n");
282
+ pr_debug("failed: wrong count for bp3 (%lld), expected 2\n", count3);
282283
283284 return count1 == 1 && overflows == 3 && count2 == 3 && overflows_2 == 3 && count3 == 2 ?
284285 TEST_OK : TEST_FAIL;
....@@ -297,7 +298,7 @@
297298 * breakpointed instruction.
298299 *
299300 * Since arm64 has the same issue with arm for the single-step
300
- * handling, this case also gets suck on the breakpointed
301
+ * handling, this case also gets stuck on the breakpointed
301302 * instruction.
302303 *
303304 * Just disable the test for these architectures until these