Lines Matching refs:unpriv
1257 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument
1271 if (unpriv) in do_prog_test_run()
1276 if (unpriv) in do_prog_test_run()
1285 if (unpriv) { in do_prog_test_run()
1508 static void do_test_single(struct bpf_test *test, bool unpriv, in do_test_single() argument
1560 expected_ret = unpriv && test->result_unpriv != UNDEF ? in do_test_single()
1562 expected_err = unpriv && test->errstr_unpriv ? in do_test_single()
1654 if (!unpriv && test->insn_processed) { in do_test_single()
1683 if (unpriv && test->retvals[i].retval_unpriv) in do_test_single()
1688 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
1763 static int do_test(bool unpriv, unsigned int from, unsigned int to) in do_test() argument
1783 if (!unpriv) in do_test()
1787 if (!unpriv) in do_test()
1791 if (unpriv) { in do_test()
1811 bool unpriv = !is_admin(); in main() local
1845 if (unpriv && unpriv_disabled) { in main()
1857 return do_test(unpriv, from, to); in main()