Symbol: FAIL_IF_MSG
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
101
FAIL_IF_MSG(err, "PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC failed");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
104
FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_CLEAR), "process aspect config should still be cleared");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
105
FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC), "config value not PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
106
FAIL_IF_MSG(ctrl & PR_PPC_DEXCR_CTRL_SET_ONEXEC, "config value unexpected set on exec flag");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
107
FAIL_IF_MSG(aspect & mfspr(SPRN_DEXCR_RO), "process aspect should still be cleared");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
111
FAIL_IF_MSG(err, "PR_PPC_DEXCR_CTRL_SET | PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC failed");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
114
FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_SET), "config value not PR_PPC_DEXCR_CTRL_SET");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
115
FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC), "config value not PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
116
FAIL_IF_MSG(!(aspect & mfspr(SPRN_DEXCR_RO)), "process aspect should be set");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
119
FAIL_IF_MSG(err, "PR_PPC_DEXCR_CTRL_CLEAR | PR_PPC_DEXCR_CTRL_SET_ONEXEC failed");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
122
FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_CLEAR), "config value not PR_PPC_DEXCR_CTRL_CLEAR");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
123
FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_SET_ONEXEC), "config value not PR_PPC_DEXCR_CTRL_SET_ONEXEC");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
124
FAIL_IF_MSG(aspect & mfspr(SPRN_DEXCR_RO), "process aspect should be clear");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
147
FAIL_IF_MSG(err, "PR_PPC_DEXCR_CTRL_SET | PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC failed");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
199
FAIL_IF_MSG(err, "failed to parse which value for child");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
204
FAIL_IF_MSG(true, "unknown test case");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
63
FAIL_IF_MSG(err != -1, "simultaneous set and clear should be rejected");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
64
FAIL_IF_MSG(errno_save != EINVAL, "simultaneous set and clear should be rejected with EINVAL");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
68
FAIL_IF_MSG(err != -1, "simultaneous set and clear on exec should be rejected");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
69
FAIL_IF_MSG(errno_save != EINVAL, "simultaneous set and clear on exec should be rejected with EINVAL");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
73
FAIL_IF_MSG(err, "PR_PPC_DEXCR_CTRL_SET failed");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
76
FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_SET), "config value not PR_PPC_DEXCR_CTRL_SET");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
77
FAIL_IF_MSG(ctrl & PR_PPC_DEXCR_CTRL_CLEAR, "config value unexpected clear flag");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
78
FAIL_IF_MSG(!(aspect & mfspr(SPRN_DEXCR_RO)), "setting aspect did not take effect");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
82
FAIL_IF_MSG(err, "PR_PPC_DEXCR_CTRL_CLEAR failed");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
85
FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_CLEAR), "config value not PR_PPC_DEXCR_CTRL_CLEAR");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
86
FAIL_IF_MSG(ctrl & PR_PPC_DEXCR_CTRL_SET, "config value unexpected set flag");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
87
FAIL_IF_MSG(aspect & mfspr(SPRN_DEXCR_RO), "clearing aspect did not take effect");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
91
FAIL_IF_MSG(err, "PR_PPC_DEXCR_CTRL_SET_ONEXEC failed");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
94
FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_CLEAR), "process aspect should still be cleared");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
95
FAIL_IF_MSG(!(ctrl & PR_PPC_DEXCR_CTRL_SET_ONEXEC), "config value not PR_PPC_DEXCR_CTRL_SET_ONEXEC");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
96
FAIL_IF_MSG(ctrl & PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC, "config value unexpected clear on exec flag");
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
97
FAIL_IF_MSG(aspect & mfspr(SPRN_DEXCR_RO), "scheduling aspect to set on exec should not change it now");
tools/testing/selftests/powerpc/dexcr/hashchk_test.c
132
FAIL_IF_MSG(pipe(pipefd), "failed to create pipe");
tools/testing/selftests/powerpc/dexcr/hashchk_test.c
144
FAIL_IF_MSG(read(pipefd[0], hash_values, sizeof(hash_values)) != sizeof(hash_values),
tools/testing/selftests/powerpc/dexcr/hashchk_test.c
152
FAIL_IF_MSG(count_hash_values_matches() == HASH_COUNT, "shared key detected");
tools/testing/selftests/powerpc/dexcr/hashchk_test.c
208
FAIL_IF_MSG(child_stack == MAP_FAILED, "failed to map child stack");
tools/testing/selftests/powerpc/dexcr/hashchk_test.c
214
FAIL_IF_MSG(count_hash_values_matches() != HASH_COUNT,
tools/testing/selftests/powerpc/dexcr/hashchk_test.c
72
FAIL_IF_MSG(hashchk_failure_msg, hashchk_failure_msg);
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
179
FAIL_IF_MSG(ppc_ptrace_gethwdbginfo(pid, &dbginfo), "PPC_PTRACE_GETHWDBGINFO failed");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
197
FAIL_IF_MSG(1, "Failed to fork child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
204
FAIL_IF_MSG(waitpid(*pid, &status, 0) == -1, "Failed to wait for child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
205
FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
252
FAIL_IF_MSG(perf_fd < 0, "Failed to open perf performance counter");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
257
FAIL_IF_MSG(bp_id < 0, "Failed to set ptrace watchpoint");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
260
FAIL_IF_MSG(ptrace_cont(pid, 0), "Failed to continue child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
262
FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
263
FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
264
FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
265
FAIL_IF_MSG(pc != same_watch_addr_load, "Child did not stop on load instruction");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
271
FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
272
FAIL_IF_MSG(perf_count != 0, "perf recorded unexpected event");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
275
FAIL_IF_MSG(ptrace_singlestep(pid, 0), "Failed to single step child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
277
FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
278
FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
279
FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
280
FAIL_IF_MSG(pc != same_watch_addr_load + 4, "Failed to single step load instruction");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
281
FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
282
FAIL_IF_MSG(perf_count != 1, "perf counter did not increment");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
289
FAIL_IF_MSG(ppc_ptrace_delhwdbg(pid, bp_id), "Failed to remove old ptrace watchpoint");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
291
FAIL_IF_MSG(bp_id < 0, "Failed to set ptrace watchpoint");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
292
FAIL_IF_MSG(ptrace_setreg_pc(pid, same_watch_addr_load), "Failed to set child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
293
FAIL_IF_MSG(ptrace_cont(pid, 0), "Failed to continue child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
295
FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
296
FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
297
FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
298
FAIL_IF_MSG(pc != same_watch_addr_load, "Child did not stop on load trap");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
299
FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
300
FAIL_IF_MSG(perf_count != 1, "perf counter should not have changed");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
303
FAIL_IF_MSG(ptrace_cont(pid, 0), "Failed to continue child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
305
FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
306
FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
307
FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
308
FAIL_IF_MSG(pc != same_watch_addr_trap, "Child did not stop on end trap");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
309
FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
310
FAIL_IF_MSG(perf_count != 2, "perf counter did not increment");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
317
FAIL_IF_MSG(ptrace_setreg_pc(pid, same_watch_addr_load), "Failed to set child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
318
FAIL_IF_MSG(ptrace_cont(pid, 0), "Failed to continue child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
320
FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
321
FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
322
FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
323
FAIL_IF_MSG(pc != same_watch_addr_trap, "Child did not stop on end trap");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
324
FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
325
FAIL_IF_MSG(perf_count != 3, "perf counter did not increment");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
332
FAIL_IF_MSG(ppc_ptrace_delhwdbg(pid, bp_id), "Failed to remove old ptrace watchpoint");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
334
FAIL_IF_MSG(bp_id < 0, "Failed to set ptrace watchpoint");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
335
FAIL_IF_MSG(ptrace_setreg_pc(pid, same_watch_addr_load), "Failed to set child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
336
FAIL_IF_MSG(ptrace_cont(pid, 0), "Failed to continue child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
338
FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
339
FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
340
FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
341
FAIL_IF_MSG(pc != same_watch_addr_load, "Child did not stop on load instruction");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
342
FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
343
FAIL_IF_MSG(perf_count != 3, "perf counter should not have changed");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
350
FAIL_IF_MSG(ptrace_setreg_pc(pid, same_watch_addr_load + 4), "Failed to set child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
351
FAIL_IF_MSG(ptrace_cont(pid, 0), "Failed to continue child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
353
FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
354
FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
355
FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
356
FAIL_IF_MSG(pc != same_watch_addr_trap, "Child did not stop on end trap");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
357
FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
358
FAIL_IF_MSG(perf_count != 3, "perf counter should not have changed");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
361
FAIL_IF_MSG(kill(pid, SIGKILL) != 0, "Failed to kill child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
411
FAIL_IF_MSG(perf_fd < 0, "Failed to open perf performance counter");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
417
FAIL_IF_MSG(bp_id < 0, "Failed to set ptrace watchpoint");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
420
FAIL_IF_MSG(ptrace_cont(pid, 0), "Failed to continue child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
422
FAIL_IF_MSG(waitpid(pid, &status, 0) == -1, "Failed to wait for child");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
423
FAIL_IF_MSG(!WIFSTOPPED(status), "Child is not stopped");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
424
FAIL_IF_MSG(ptrace_getreg_pc(pid, &pc), "Failed to get child PC");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
425
FAIL_IF_MSG(pc != perf_then_ptrace_load2, "Child did not stop on ptrace load");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
428
FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
429
FAIL_IF_MSG(perf_count != 1, "perf counter did not increment");
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
432
FAIL_IF_MSG(kill(pid, SIGKILL) != 0, "Failed to kill child");