Home
last modified time | relevance | path

Searched refs:test (Results 1 – 14 of 14) sorted by relevance

/kernel/
Dsysctl-test.c19 static void sysctl_test_api_dointvec_null_tbl_data(struct kunit *test) in sysctl_test_api_dointvec_null_tbl_data() argument
39 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_null_tbl_data()
49 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table, in sysctl_test_api_dointvec_null_tbl_data()
52 KUNIT_EXPECT_EQ(test, (size_t)0, len); in sysctl_test_api_dointvec_null_tbl_data()
58 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table, in sysctl_test_api_dointvec_null_tbl_data()
61 KUNIT_EXPECT_EQ(test, (size_t)0, len); in sysctl_test_api_dointvec_null_tbl_data()
69 static void sysctl_test_api_dointvec_table_maxlen_unset(struct kunit *test) in sysctl_test_api_dointvec_table_maxlen_unset() argument
85 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_maxlen_unset()
95 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&data_maxlen_unset_table, in sysctl_test_api_dointvec_table_maxlen_unset()
98 KUNIT_EXPECT_EQ(test, (size_t)0, len); in sysctl_test_api_dointvec_table_maxlen_unset()
[all …]
Dmodule.c810 .test = modinfo_##field##_exists, \
1831 if (!attr->test || attr->test(mod)) { in module_add_modinfo_attrs()
/kernel/kcsan/
Dkcsan-test.c424 static void test_basic(struct kunit *test) in test_basic() argument
446 KUNIT_EXPECT_TRUE(test, match_expect); in test_basic()
447 KUNIT_EXPECT_FALSE(test, match_never); in test_basic()
455 static void test_concurrent_races(struct kunit *test) in test_concurrent_races() argument
478 KUNIT_EXPECT_TRUE(test, match_expect); /* Sanity check matches exist. */ in test_concurrent_races()
479 KUNIT_EXPECT_FALSE(test, match_never); in test_concurrent_races()
484 static void test_novalue_change(struct kunit *test) in test_novalue_change() argument
499 KUNIT_EXPECT_FALSE(test, match_expect); in test_novalue_change()
501 KUNIT_EXPECT_TRUE(test, match_expect); in test_novalue_change()
509 static void test_novalue_change_exception(struct kunit *test) in test_novalue_change_exception() argument
[all …]
/kernel/trace/
Dtrace_events_trigger.c545 struct event_trigger_data *test; in register_trigger() local
550 list_for_each_entry(test, &file->triggers, list) { in register_trigger()
551 if (test->cmd_ops->trigger_type == data->cmd_ops->trigger_type) { in register_trigger()
589 struct event_trigger_data *test, in unregister_trigger() argument
598 if (data->cmd_ops->trigger_type == test->cmd_ops->trigger_type) { in unregister_trigger()
830 bool is_named_trigger(struct event_trigger_data *test) in is_named_trigger() argument
835 if (test == data) in is_named_trigger()
874 struct event_trigger_data *test; in __pause_named_trigger() local
876 list_for_each_entry(test, &named_triggers, named_list) { in __pause_named_trigger()
877 if (strcmp(test->name, data->name) == 0) { in __pause_named_trigger()
[all …]
Dtrace_events_hist.c890 struct event_trigger_data *test; in find_var() local
899 list_for_each_entry(test, &file->triggers, list) { in find_var()
900 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in find_var()
901 test_data = test->private_data; in find_var()
946 struct event_trigger_data *test; in find_file_var() local
951 list_for_each_entry(test, &file->triggers, list) { in find_file_var()
952 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in find_file_var()
953 test_data = test->private_data; in find_file_var()
2342 struct event_trigger_data *test; in find_trigger_filter() local
2346 list_for_each_entry(test, &file->triggers, list) { in find_trigger_filter()
[all …]
DKconfig435 into the C conditionals to test which path a branch takes.
732 This option creates a test to stress the ring buffer and benchmark it.
788 bool "Perform a startup test on ftrace"
802 This option performs a test on all trace events in the system.
816 TBD - enable a way to actually call the syscalls as we test their
820 bool "Ring buffer startup self test"
823 Run a simple self test on the ring buffer on boot up. Late in the
824 kernel boot sequence, the test will start that kicks off
828 to the ring buffer, to test/stress the nesting ability.
832 The test runs for 10 seconds. This will slow your boot time
[all …]
Dtrace_events_filter_test.h3 #define TRACE_SYSTEM test
Dtrace.h1757 struct event_trigger_data *test,
1769 extern bool is_named_trigger(struct event_trigger_data *test);
/kernel/bpf/
Dsyscall.c3132 #define BPF_PROG_TEST_RUN_LAST_FIELD test.cpu
3143 if ((attr->test.ctx_size_in && !attr->test.ctx_in) || in bpf_prog_test_run()
3144 (!attr->test.ctx_size_in && attr->test.ctx_in)) in bpf_prog_test_run()
3147 if ((attr->test.ctx_size_out && !attr->test.ctx_out) || in bpf_prog_test_run()
3148 (!attr->test.ctx_size_out && attr->test.ctx_out)) in bpf_prog_test_run()
3151 prog = bpf_prog_get(attr->test.prog_fd); in bpf_prog_test_run()
/kernel/time/
Dtimekeeping.c1172 static bool cycle_between(u64 before, u64 test, u64 after) in cycle_between() argument
1174 if (test > before && test < after) in cycle_between()
1176 if (test < before && before > after) in cycle_between()
DKconfig146 Without the full dynticks, there is no way to test the support
/kernel/sched/
Drt.c1503 bool test; in select_task_rq_rt() local
1557 test = (curr && (may_not_preempt || in select_task_rq_rt()
1570 if (test || !rt_task_fits_capacity(p, cpu)) { in select_task_rq_rt()
1577 if (!test && target != -1 && !rt_task_fits_capacity(p, target)) in select_task_rq_rt()
/kernel/rcu/
DKconfig131 itself, small RCU_FANOUT values allow you to test large-system
/kernel/power/
DKconfig204 linked, ensuring that it's available when this test runs.