Lines Matching refs:unpriv
60 struct test_subspec unpriv; member
91 free(spec->unpriv.name); in free_test_spec()
93 free(spec->unpriv.expect_msgs); in free_test_spec()
96 spec->unpriv.name = NULL; in free_test_spec()
98 spec->unpriv.expect_msgs = NULL; in free_test_spec()
209 spec->unpriv.expect_failure = true; in parse_test_spec()
213 spec->unpriv.expect_failure = false; in parse_test_spec()
230 err = push_msg(msg, &spec->unpriv); in parse_test_spec()
243 err = parse_retval(val, &spec->unpriv.retval, "__retval_unpriv"); in parse_test_spec()
247 spec->unpriv.execute = true; in parse_test_spec()
306 spec->unpriv.name = name; in parse_test_spec()
311 spec->unpriv.expect_failure = spec->priv.expect_failure; in parse_test_spec()
314 spec->unpriv.retval = spec->priv.retval; in parse_test_spec()
315 spec->unpriv.execute = spec->priv.execute; in parse_test_spec()
318 if (!spec->unpriv.expect_msgs) { in parse_test_spec()
321 spec->unpriv.expect_msgs = malloc(sz); in parse_test_spec()
322 if (!spec->unpriv.expect_msgs) { in parse_test_spec()
327 memcpy(spec->unpriv.expect_msgs, spec->priv.expect_msgs, sz); in parse_test_spec()
328 spec->unpriv.expect_msg_cnt = spec->priv.expect_msg_cnt; in parse_test_spec()
538 bool unpriv) in run_subtest() argument
540 struct test_subspec *subspec = unpriv ? &spec->unpriv : &spec->priv; in run_subtest()
552 if (unpriv) { in run_subtest()
580 spec_iter->mode_mask & (unpriv ? UNPRIV : PRIV)) in run_subtest()
595 bpf_map__set_autocreate(map, !unpriv || is_unpriv_capable_map(map)); in run_subtest()