Lines Matching refs:policy
29 #define POLICY_DESC(x) .policy = x, .desc = #x
30 #define POLICY_DESC_TEXT(x, y) .policy = x, .desc = #x" ("y")"
40 int policy; member
139 static void check_policy_pref_or_local(int policy) in check_policy_pref_or_local() argument
141 if (policy != MPOL_PREFERRED && policy != MPOL_LOCAL) { in check_policy_pref_or_local()
144 tst_mempolicy_mode_name(policy), policy); in check_policy_pref_or_local()
152 TEST(mbind(p, MEM_LENGTH, tc->policy, nodemask->maskp, in test_default()
160 TEST(mbind(p, MEM_LENGTH, tc->policy, NULL, 0, tc->flags)); in test_none()
168 TEST(mbind(p, MEM_LENGTH, tc->policy, sbrk(0) + 64*1024*1024, in test_invalid_nodemask()
194 int policy, fail = 0; in do_test() local
199 if (tc->policy == MPOL_LOCAL) { in do_test()
202 tst_mempolicy_mode_name(tc->policy)); in do_test()
219 TEST(get_mempolicy(&policy, getnodemask->maskp, in do_test()
227 tc->check_policy(policy); in do_test()
228 else if (tc->policy != policy) { in do_test()
230 tst_mempolicy_mode_name(policy), policy, in do_test()
231 tst_mempolicy_mode_name(tc->policy), tc->policy); in do_test()