Searched refs:test (Results 251 - 275 of 680) sorted by relevance

<<11121314151617181920>>

/linux-master/tools/perf/tests/
H A Dperf-hooks.c25 /* Generate a segfault, test perf_hooks__recover */
29 static int test__perf_hooks(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
34 perf_hooks__set_hook("test", the_hook, &hook_flags);
44 if (perf_hooks__get_hook("test"))
H A Dis_printable_array.c8 static int test__is_printable_array(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
32 pr_err("failed: test %u\n", i);
H A Dpfm.c26 static int test__pfm_events(struct test_suite *test __maybe_unused,
87 static int test__pfm_group(struct test_suite *test __maybe_unused,
172 static int test__pfm_events(struct test_suite *test __maybe_unused,
178 static int test__pfm_group(struct test_suite *test __maybe_unused,
186 TEST_CASE_REASON("test of individual --pfm-events", pfm_events, "not compiled in"),
187 TEST_CASE_REASON("test groups of --pfm-events", pfm_group, "not compiled in"),
H A Dattr.py36 def __init__(self, test, msg):
38 self.test = test
40 return '\'%s\' - %s' % (self.test.path, self.msg)
43 def __init__(self, test, arch):
45 self.test = test
47 return '[%s] \'%s\'' % (self.arch, self.test.path)
50 def __init__(self, test):
51 self.test
[all...]
H A Dwp.c71 static int test__wp_ro(struct test_suite *test __maybe_unused,
95 static int test__wp_wo(struct test_suite *test __maybe_unused,
119 static int test__wp_rw(struct test_suite *test __maybe_unused,
144 static int test__wp_modify(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
167 test->test_cases[subtest].skip_reason = "missing kernel support";
/linux-master/include/kunit/
H A Dtest-bug.h3 * KUnit API providing hooks for non-test code to interact with tests.
25 void *(*get_static_stub_address)(struct kunit *test, void *real_fn_addr);
30 * KUnit test.
32 * If a KUnit test is running in the current task, returns a pointer to its
34 * function or assertion. If no test is running (or a test is running in a
39 * test is running.
51 * kunit_fail_current_test() - If a KUnit test is running, fail it.
53 * If a KUnit test is running in the current task, mark that test a
[all...]
/linux-master/drivers/gpu/drm/xe/tests/
H A Dxe_test.h13 #include <kunit/test.h>
16 * Each test that provides a kunit private test structure, place a test id
25 * struct xe_test_priv - Base class for test private info
42 * Return: NULL if the process is not a kunit test, and NULL if the
/linux-master/rust/bindings/
H A Dbindings_helper.h9 #include <kunit/test.h>
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt.c1012 * and simplify the test.
1039 static int run_test(int cgroup_fd, struct sockopt_test *test, bool use_io_uring) argument
1045 prog_fd = load_prog(test->insns, test->expected_attach_type);
1047 if (test->error == DENY_LOAD)
1054 err = bpf_prog_attach(prog_fd, cgroup_fd, test->attach_type, 0);
1056 if (test->error == DENY_ATTACH)
1071 if (test->set_optlen) {
1072 if (test->set_optlen >= PAGE_SIZE) {
1073 int num_pages = test
[all...]
/linux-master/drivers/media/radio/
H A Dradio-cadet.c164 unsigned freq = 0, test, fifo = 0; local
177 test = 12500;
180 freq += test;
181 test = test << 1;
192 unsigned test; local
198 test = 0;
199 test = (fifo >> 23) & 0x02; /* Align data for SDO */
200 test |= 0x1c; /* SDM=1, SWE=1, SEN=1, SCK=0 */
202 outb(test, de
217 int i, j, test; local
[all...]
/linux-master/lib/
H A Dglobtest.c19 static bool __pure __init test(char const *pat, char const *str, bool expected) function
49 * Anyway, a test consists of:
148 successes += test(pat, p, expected);
/linux-master/tools/testing/selftests/powerpc/mm/
H A Dlarge_vm_fork_separation.c24 static int test(void) function
79 printf("success: test completed OK\n");
86 return test_harness(test, "large_vm_fork_separation");
/linux-master/tools/testing/selftests/sync/
H A Dsync_test.c2 * sync test runner
40 static int run_test(int (*test)(void), char *name) argument
62 exit(test());
78 ksft_exit_skip("Run Sync test as root.\n");
/linux-master/scripts/tracing/
H A Dftrace-bisect.sh47 # # ftrace-bisect ~/full-file ~/test-file ~/non-test-file
48 # # cat ~/test-file > set_ftrace_filter
52 # If it crashes, we know that ~/test-file has a bad function.
54 # Reboot back to test kernel.
57 # # mv ~/test-file ~/full-file
62 # # mv ~/non-test-file ~/full-file
64 # Get rid of the other test file from previous run (or save them off somewhere).
65 # # rm -f ~/test-file ~/non-test
[all...]
/linux-master/net/mac80211/tests/
H A Dmfp.c7 #include <kunit/test.h>
212 static void accept_mfp(struct kunit *test) argument
215 const struct mfp_test_case *params = test->param_value;
231 KUNIT_ASSERT_FALSE(test, params->mfp);
232 KUNIT_ASSERT_FALSE(test, params->decrypted);
241 rx.skb = kunit_zalloc_skb(test, 128, GFP_KERNEL);
242 KUNIT_ASSERT_NOT_NULL(test, rx.skb);
271 KUNIT_EXPECT_EQ(test,
/linux-master/tools/testing/selftests/bpf/
H A Dtest_sock.c38 /* Expected test result */
480 static int run_test_case(int cgfd, const struct sock_test *test) argument
486 printf("Test case: %s .. ", test->descr);
487 progfd = load_sock_prog(test->insns, test->expected_attach_type);
489 if (test->result == LOAD_REJECT)
495 if (attach_sock_prog(cgfd, progfd, test->attach_type) < 0) {
496 if (test->result == ATTACH_REJECT)
502 res = bind_sock(test->domain, test
[all...]
H A Dtest_sysctl.c1434 static int load_sysctl_prog_insns(struct sysctl_test *test, argument
1437 struct bpf_insn *prog = test->insns;
1443 if (test->fixup_value_insn) {
1460 if (fixup_sysctl_value(buf, len, prog, test->fixup_value_insn))
1468 if (ret < 0 && test->result != LOAD_REJECT) {
1476 static int load_sysctl_prog_file(struct sysctl_test *test) argument
1481 if (bpf_prog_test_load(test->prog_file, BPF_PROG_TYPE_CGROUP_SYSCTL, &obj, &prog_fd)) {
1482 if (test->result != LOAD_REJECT)
1484 test->prog_file);
1491 static int load_sysctl_prog(struct sysctl_test *test, cons argument
1498 access_sysctl(const char *sysctl_path, const struct sysctl_test *test) argument
1543 run_test_case(int cgfd, struct sysctl_test *test) argument
[all...]
/linux-master/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_debugfs_kunit.c3 * Microchip VCAP API kunit test suite
6 #include <kunit/test.h>
12 /* First we have the test infrastructure that emulates the platform
290 /* Define the test cases. */
292 static void vcap_api_addr_keyset_test(struct kunit *test) argument
329 KUNIT_EXPECT_EQ(test, -EINVAL, ret);
338 KUNIT_EXPECT_EQ(test, 0, ret);
339 KUNIT_EXPECT_EQ(test, matches.cnt, 1);
340 KUNIT_EXPECT_EQ(test, matches.keysets[0], VCAP_KFS_MAC_ETYPE);
343 static void vcap_api_show_admin_raw_test(struct kunit *test) argument
401 vcap_api_show_admin_test(struct kunit *test) argument
474 vcap_api_show_admin_rule_test(struct kunit *test) argument
[all...]
/linux-master/arch/x86/lib/
H A Dcopy_user_uncached_64.S119 test $4,%dl
128 test $2,%dl
136 test $1,%dl
166 test $1,%dil
168 test %edx,%edx
176 test $2,%dil
186 test $4,%dil
/linux-master/lib/kunit/
H A Dstring-stream.c10 #include <kunit/test.h>
190 struct string_stream *kunit_alloc_string_stream(struct kunit *test, gfp_t gfp) argument
198 if (kunit_add_action_or_reset(test, resource_free_string_stream, stream) != 0)
204 void kunit_free_string_stream(struct kunit *test, struct string_stream *stream) argument
206 kunit_release_action(test, resource_free_string_stream, (void *)stream);
/linux-master/tools/testing/selftests/resctrl/
H A Dresctrl.h66 * resctrl_test: resctrl test definition
69 * (e.g., L3 CAT test belongs to the CAT group). Can be NULL
70 * @resource: Resource to test (e.g., MB, L3, L2, etc.)
74 * @run_test: Callback to run the test
82 bool (*feature_check)(const struct resctrl_test *test);
83 int (*run_test)(const struct resctrl_test *test,
88 * resctrl_val_param: resctrl test parameters
94 * @setup: Call back function to setup test environment
104 int (*setup)(const struct resctrl_test *test,
142 bool test_resource_feature_check(const struct resctrl_test *test);
[all...]
H A Dcmt_test.c3 * Cache Monitoring Technology (CMT) test
19 static int cmt_setup(const struct resctrl_test *test, argument
99 static int cmt_run_test(const struct resctrl_test *test, const struct user_params *uparams) argument
155 ret = resctrl_val(test, uparams, cmd, &param);
170 static bool cmt_feature_check(const struct resctrl_test *test) argument
172 return test_resource_feature_check(test) &&
/linux-master/tools/usb/
H A Dtestusb.c13 * should make sure to test both regular streaming and mixes of
128 int test; member in struct:testdev
175 * can fxload it, and then run this test driver.
180 * - the device doesn't have the test firmware installed.
201 /* "gadget zero", Linux-USB test software */
214 /* some GPL'd test firmware uses these IDs */
312 if (dev->test != -1 && dev->test != i)
332 printf ("%s test %d --> %d (%s)\n",
335 printf ("%s test
379 int test = -1 /* all */; local
[all...]
/linux-master/drivers/net/wireguard/selftest/
H A Dallowedips.c271 pr_err("allowedips random self-test malloc: FAIL\n");
277 pr_err("allowedips random self-test malloc: FAIL\n");
292 pr_err("allowedips random self-test malloc: FAIL\n");
297 pr_err("allowedips random self-test malloc: FAIL\n");
319 pr_err("allowedips random self-test malloc: FAIL\n");
324 pr_err("allowedips random self-test malloc: FAIL\n");
336 pr_err("allowedips random self-test malloc: FAIL\n");
341 pr_err("allowedips random self-test malloc: FAIL\n");
363 pr_err("allowedips random self-test malloc: FAIL\n");
369 pr_err("allowedips random self-test mallo
472 #define test macro
675 #undef test macro
[all...]
/linux-master/net/bridge/
H A Dbr_mrp_netlink.c209 struct br_mrp_start_test test; local
226 memset(&test, 0x0, sizeof(test));
228 test.ring_id = nla_get_u32(tb[IFLA_BRIDGE_MRP_START_TEST_RING_ID]);
229 test.interval = nla_get_u32(tb[IFLA_BRIDGE_MRP_START_TEST_INTERVAL]);
230 test.max_miss = nla_get_u32(tb[IFLA_BRIDGE_MRP_START_TEST_MAX_MISS]);
231 test.period = nla_get_u32(tb[IFLA_BRIDGE_MRP_START_TEST_PERIOD]);
232 test.monitor = false;
235 test.monitor =
238 return br_mrp_start_test(br, &test);
329 struct br_mrp_start_in_test test; local
[all...]

Completed in 171 milliseconds

<<11121314151617181920>>