Lines Matching full:which
16 static int dexcr_prctl_onexec_test_child(unsigned long which, const char *status) in dexcr_prctl_onexec_test_child() argument
19 unsigned long aspect = pr_which_to_aspect(which); in dexcr_prctl_onexec_test_child()
20 int ctrl = pr_get_dexcr(which); in dexcr_prctl_onexec_test_child()
48 static int dexcr_prctl_aspect_test(unsigned long which) in dexcr_prctl_aspect_test() argument
50 unsigned long aspect = pr_which_to_aspect(which); in dexcr_prctl_aspect_test()
57 SKIP_IF_MSG(!pr_dexcr_aspect_supported(which), "DEXCR aspect not supported"); in dexcr_prctl_aspect_test()
58 SKIP_IF_MSG(!pr_dexcr_aspect_editable(which), "DEXCR aspect not editable with prctl"); in dexcr_prctl_aspect_test()
61 err = pr_set_dexcr(which, PR_PPC_DEXCR_CTRL_SET | PR_PPC_DEXCR_CTRL_CLEAR); in dexcr_prctl_aspect_test()
66 err = pr_set_dexcr(which, PR_PPC_DEXCR_CTRL_SET_ONEXEC | PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC); in dexcr_prctl_aspect_test()
72 err = pr_set_dexcr(which, PR_PPC_DEXCR_CTRL_SET); in dexcr_prctl_aspect_test()
75 ctrl = pr_get_dexcr(which); in dexcr_prctl_aspect_test()
81 err = pr_set_dexcr(which, PR_PPC_DEXCR_CTRL_CLEAR); in dexcr_prctl_aspect_test()
84 ctrl = pr_get_dexcr(which); in dexcr_prctl_aspect_test()
90 err = pr_set_dexcr(which, PR_PPC_DEXCR_CTRL_SET_ONEXEC); in dexcr_prctl_aspect_test()
93 ctrl = pr_get_dexcr(which); in dexcr_prctl_aspect_test()
100 err = pr_set_dexcr(which, PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC); in dexcr_prctl_aspect_test()
103 ctrl = pr_get_dexcr(which); in dexcr_prctl_aspect_test()
110 err = pr_set_dexcr(which, PR_PPC_DEXCR_CTRL_SET | PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC); in dexcr_prctl_aspect_test()
113 ctrl = pr_get_dexcr(which); in dexcr_prctl_aspect_test()
118 err = pr_set_dexcr(which, PR_PPC_DEXCR_CTRL_CLEAR | PR_PPC_DEXCR_CTRL_SET_ONEXEC); in dexcr_prctl_aspect_test()
121 ctrl = pr_get_dexcr(which); in dexcr_prctl_aspect_test()
131 unsigned int ctrl = pr_get_dexcr(which); in dexcr_prctl_aspect_test()
133 sprintf(which_str, "%lu", which); in dexcr_prctl_aspect_test()
146 err = pr_set_dexcr(which, PR_PPC_DEXCR_CTRL_SET | PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC); in dexcr_prctl_aspect_test()
153 unsigned int ctrl = pr_get_dexcr(which); in dexcr_prctl_aspect_test()
155 sprintf(which_str, "%lu", which); in dexcr_prctl_aspect_test()
196 unsigned long which; in main() local
198 err = parse_ulong(argv[1], strlen(argv[1]), &which, 10); in main()
199 FAIL_IF_MSG(err, "failed to parse which value for child"); in main()
201 return dexcr_prctl_onexec_test_child(which, argv[2]); in main()