| .. | .. |
|---|
| 25 | 25 | |
|---|
| 26 | 26 | #include "tests.h" |
|---|
| 27 | 27 | #include "debug.h" |
|---|
| 28 | | -#include "perf.h" |
|---|
| 28 | +#include "event.h" |
|---|
| 29 | +#include "perf-sys.h" |
|---|
| 29 | 30 | #include "cloexec.h" |
|---|
| 30 | 31 | |
|---|
| 31 | 32 | static int fd1; |
|---|
| .. | .. |
|---|
| 265 | 266 | if (count1 == 11) |
|---|
| 266 | 267 | pr_debug("failed: RF EFLAG recursion issue detected\n"); |
|---|
| 267 | 268 | 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); |
|---|
| 269 | 270 | } |
|---|
| 270 | 271 | |
|---|
| 271 | 272 | if (overflows != 3) |
|---|
| 272 | | - pr_debug("failed: wrong overflow hit\n"); |
|---|
| 273 | + pr_debug("failed: wrong overflow (%d) hit, expected 3\n", overflows); |
|---|
| 273 | 274 | |
|---|
| 274 | 275 | 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); |
|---|
| 276 | 277 | |
|---|
| 277 | 278 | 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); |
|---|
| 279 | 280 | |
|---|
| 280 | 281 | 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); |
|---|
| 282 | 283 | |
|---|
| 283 | 284 | return count1 == 1 && overflows == 3 && count2 == 3 && overflows_2 == 3 && count3 == 2 ? |
|---|
| 284 | 285 | TEST_OK : TEST_FAIL; |
|---|
| .. | .. |
|---|
| 297 | 298 | * breakpointed instruction. |
|---|
| 298 | 299 | * |
|---|
| 299 | 300 | * 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 |
|---|
| 301 | 302 | * instruction. |
|---|
| 302 | 303 | * |
|---|
| 303 | 304 | * Just disable the test for these architectures until these |
|---|