Lines Matching refs:unpriv
82 struct test_subspec unpriv; member
128 free_msgs(&spec->unpriv.expect_msgs); in free_test_spec()
130 free_msgs(&spec->unpriv.expect_xlated); in free_test_spec()
132 free_msgs(&spec->unpriv.jited); in free_test_spec()
135 free(spec->unpriv.name); in free_test_spec()
137 spec->unpriv.name = NULL; in free_test_spec()
419 spec->unpriv.expect_failure = true; in parse_test_spec()
423 spec->unpriv.expect_failure = false; in parse_test_spec()
438 err = push_msg(msg, &spec->unpriv.expect_msgs); in parse_test_spec()
461 &spec->unpriv.jited); in parse_test_spec()
474 &spec->unpriv.expect_xlated); in parse_test_spec()
487 err = parse_retval(val, &spec->unpriv.retval, "__retval_unpriv"); in parse_test_spec()
491 spec->unpriv.execute = true; in parse_test_spec()
578 spec->unpriv.name = name; in parse_test_spec()
583 spec->unpriv.expect_failure = spec->priv.expect_failure; in parse_test_spec()
586 spec->unpriv.retval = spec->priv.retval; in parse_test_spec()
587 spec->unpriv.execute = spec->priv.execute; in parse_test_spec()
590 if (spec->unpriv.expect_msgs.cnt == 0) in parse_test_spec()
591 clone_msgs(&spec->priv.expect_msgs, &spec->unpriv.expect_msgs); in parse_test_spec()
592 if (spec->unpriv.expect_xlated.cnt == 0) in parse_test_spec()
593 clone_msgs(&spec->priv.expect_xlated, &spec->unpriv.expect_xlated); in parse_test_spec()
594 if (spec->unpriv.jited.cnt == 0) in parse_test_spec()
595 clone_msgs(&spec->priv.jited, &spec->unpriv.jited); in parse_test_spec()
889 bool unpriv) in run_subtest() argument
891 struct test_subspec *subspec = unpriv ? &spec->unpriv : &spec->priv; in run_subtest()
910 if (unpriv) { in run_subtest()
941 spec_iter->mode_mask & (unpriv ? UNPRIV : PRIV)) in run_subtest()
956 bpf_map__set_autocreate(map, !unpriv || is_unpriv_capable_map(map)); in run_subtest()