Searched refs:test (Results 1 - 25 of 686) sorted by last modified time

1234567891011>>

/linux-master/tools/testing/selftests/
H A Dkselftest_harness.h5 * kselftest_harness.h: simple C unit test helper.
76 /* Utilities exposed to the test definitions */
149 * TEST() - Defines the test function and creates the registration
152 * @test_name: test name
158 * Defines a test by name.
170 * @test_name: test name
177 * Defines a test by name and the expected term signal.
311 * enables the test process to drop its privileges without impacting the
362 * Defines a variant of the test fixture, provided to FIXTURE_SETUP() and
383 * TEST_F() - Emits test registratio
874 struct __test_metadata *test; member in struct:__test_xfail
[all...]
H A Dlib.mk85 # TEST_PROGS are for test shell scripts.
/linux-master/scripts/
H A Dcheckpatch.pl6 # (c) 2007,2008, Andy Whitcroft <apw@uk.ibm.com> (new conditions, test suite)
123 --test-only=WORD report only warnings/errors containing WORD
321 'test-only=s' => \$tst_only,
4979 # This test is not currently implemented because these declarations are
5182 # skip the bitfield test for now
5519 my $test = substr($2, 1, -1);
5521 while ($test =~ /(?:^|[^\w\&\!\~])+\s*\(\s*([\&\!\~]?\s*$Lval\s*(?:$Compare\s*$FuncArg)?)\s*\)/g) {
5622 "Comparisons should place the constant on the right side of the test\n" . $herecurr) &&
5694 my $test = $8;
5701 $newline .= '(' if (defined $not && defined($test)
[all...]
/linux-master/lib/
H A Dtest_hexdump.c68 int groupsize, char *test,
97 p = test;
114 } while (p < test + rs * 2 + rs / gs + 1);
128 char test[TEST_HEXDUMP_BUF_SIZE]; local
137 memset(test, FILL_CHAR, sizeof(test));
138 test_hexdump_prepare_test(len, rowsize, groupsize, test, sizeof(test),
141 if (memcmp(test, real, TEST_HEXDUMP_BUF_SIZE)) {
144 pr_err("Expect: '%s'\n", test);
67 test_hexdump_prepare_test(size_t len, int rowsize, int groupsize, char *test, size_t testlen, bool ascii) argument
164 char test[TEST_HEXDUMP_BUF_SIZE]; local
[all...]
/linux-master/init/
H A Dmain.c115 #include <kunit/test.h>
1047 * to self-test [hard/soft]-irqs on/off lock inversion bugs
/linux-master/include/linux/
H A Dfs.h2532 int (*test)(struct super_block *, struct fs_context *),
2535 int (*test)(struct super_block *,void *),
3034 unsigned long hashval, int (*test)(struct inode *, void *),
3037 int (*test)(struct inode *, void *), void *data);
3041 int (*test)(struct inode *, void *),
3044 extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *);
3054 extern int insert_inode_locked4(struct inode *, unsigned long, int (*test)(struct inode *, void *), void *);
H A Dbitops.h316 * @nr: the bit to test
351 #define bit_clear_unless(ptr, clear, test) \
353 const typeof(*(ptr)) clear__ = (clear), test__ = (test);\
/linux-master/fs/
H A Dsuper.c576 * The function marks superblock to be ignored in superblock test, which
701 * @test: Comparison callback
706 * The @test callback is used to find a matching existing superblock.
708 * is specific to the @test callback that is used. They may even be
731 int (*test)(struct super_block *, struct fs_context *),
741 if (test) {
743 if (test(old, fc))
799 * @test: comparison callback
805 int (*test)(struct super_block *,void *),
824 if (test) {
[all...]
/linux-master/fs/bcachefs/
H A Dsysfs.c503 char *test = strsep(&p, " \t\n"); local
513 ret = bch2_btree_perf_test(c, test, nr, threads);
H A Deytzinger.c39 * For some reason, on x86 gcc 7.3.0 adds a redundant test of n at the
267 static int test(void)
/linux-master/virt/kvm/
H A Dkvm_main.c4741 bool test = cd->flags & KVM_CREATE_DEVICE_TEST; local
4753 if (test)
/linux-master/tools/testing/selftests/mm/
H A Drun_vmtests.sh37 a test for the patch "Allow compaction of unevictable pages"
49 test memadvise(2) MADV_POPULATE_{READ,WRITE} options
51 test memfd_secret(2)
53 test process_mrelease(2)
61 test soft dirty page bit semantics
63 test pagemap_scan IOCTL
65 test copy-on-write semantics
67 test transparent huge pages
69 test hugetlbfs huge pages
74 test handlin
[all...]
H A Dmremap_test.c38 struct test { struct
62 (struct test){ \
231 * This test validates that merge is called when expanding a mapping.
319 * upper case letters are not moved. The below test verifies
547 * subsequent tests. So we clean up mappings after each test.
635 static void run_mremap_test_case(struct test test_case, int *failures,
712 /* hard-coded test configs */
722 struct test test_cases[MAX_TEST] = {};
723 struct test perf_test_cases[MAX_PERF_TEST];
737 * set preallocated random array according to test config
[all...]
H A Dcow.c482 * easy way to test if that worked (the pagemap does not export
575 static void do_test_ro_pin(char *mem, size_t size, enum ro_pin_test test, argument
601 switch (test) {
625 if (test == RO_PIN_TEST_PREVIOUSLY_SHARED) {
642 * easy way to test if that worked (the pagemap does not export
675 * test if we observed the modification.
689 switch (test) {
824 * Try to populate a THP. Touch the first sub-page and test if
1053 * Basic test, but do an additional mprotect(PROT_READ)+
1070 * vmsplice() test, bu
1220 do_test_anon_thp_collapse(char *mem, size_t size, enum anon_thp_collapse_test test) argument
[all...]
/linux-master/tools/lib/bpf/
H A Dbpf.c980 const size_t attr_sz = offsetofend(union bpf_attr, test);
988 attr.test.prog_fd = prog_fd;
989 attr.test.batch_size = OPTS_GET(opts, batch_size, 0);
990 attr.test.cpu = OPTS_GET(opts, cpu, 0);
991 attr.test.flags = OPTS_GET(opts, flags, 0);
992 attr.test.repeat = OPTS_GET(opts, repeat, 0);
993 attr.test.duration = OPTS_GET(opts, duration, 0);
994 attr.test.ctx_size_in = OPTS_GET(opts, ctx_size_in, 0);
995 attr.test.ctx_size_out = OPTS_GET(opts, ctx_size_out, 0);
996 attr.test
[all...]
/linux-master/security/landlock/
H A Dfs.c13 #include <kunit/test.h>
478 #define NMA_TRUE(...) KUNIT_EXPECT_TRUE(test, no_more_access(__VA_ARGS__))
479 #define NMA_FALSE(...) KUNIT_EXPECT_FALSE(test, no_more_access(__VA_ARGS__))
483 static void test_no_more_access(struct kunit *const test) argument
613 static void test_scope_to_request_with_exec_none(struct kunit *const test) argument
619 KUNIT_EXPECT_TRUE(test, scope_to_request(LANDLOCK_ACCESS_FS_EXECUTE,
621 KUNIT_EXPECT_EQ(test, 0,
623 KUNIT_EXPECT_EQ(test, 0,
627 static void test_scope_to_request_with_exec_some(struct kunit *const test) argument
636 KUNIT_EXPECT_FALSE(test, scope_to_reques
644 test_scope_to_request_without_access(struct kunit *const test) argument
690 test_is_eacces_with_none(struct kunit *const test) argument
700 test_is_eacces_with_refer(struct kunit *const test) argument
712 test_is_eacces_with_write(struct kunit *const test) argument
[all...]
/linux-master/rust/
H A Dhelpers.c23 #include <kunit/test-bug.h>
/linux-master/net/sunrpc/auth_gss/
H A Dsvcauth_gss.c814 struct auth_domain *test; local
827 test = auth_domain_lookup(name, &new->h);
828 if (test != &new->h) {
832 auth_domain_put(test);
835 return test;
/linux-master/mm/
H A Dslub.c42 #include <kunit/test.h>
43 #include <kunit/test-bug.h>
H A Dmmap.c210 * Check against rlimit here. If this check is done later after the test
211 * of oldbrk with newbrk then it can escape the test and let the data
749 * The list_is_singular() test is to avoid merging VMA cloned from
1087 * IOW: that the "list_is_singular()" test on the anon_vma_chain only
1984 /* Stack limit test */
1999 * Overcommit.. This must be the final test, as it will
2633 MA_STATE(test, &mt_detach, 0, 0);
2639 vma_test = mas_find(&test, count - 1);
2643 vma_test = mas_next(&test, count - 1);
/linux-master/kernel/trace/
H A Dtrace.h1636 struct event_trigger_data *test,
1647 extern bool is_named_trigger(struct event_trigger_data *test);
H A Dtrace.c77 pr_info("Ftrace startup test is disabled due to %s\n", reason);
2135 /* the test is responsible for initializing and enabling */
2138 /* the test is responsible for resetting too */
2204 /* If the test fails, then warn and remove from available_tracers */
3710 /* Need to test cases like %08.*s */
5313 /* If no option could be set, test the specific tracer options */
10255 char *test; local
10266 test = kmalloc(strlen(name) + 3, GFP_KERNEL);
10267 if (!test)
10270 sprintf(test, "\
[all...]
/linux-master/kernel/sched/
H A Drt.c1547 bool test; local
1577 * This test is optimistic, if we get it wrong the load-balancer
1584 test = curr &&
1588 if (test || !rt_task_fits_capacity(p, cpu)) {
1595 if (!test && target != -1 && !rt_task_fits_capacity(p, target))
/linux-master/kernel/module/
H A Dmain.c454 * is_module_percpu_address() - test whether address is from module static percpu
455 * @addr: address to test
527 .test = modinfo_##field##_exists, \
2055 if (get_modinfo(info, "test")) {
2057 pr_warn("%s: loading test module taints kernel.\n",
/linux-master/kernel/bpf/
H A Dsyscall.c4267 #define BPF_PROG_TEST_RUN_LAST_FIELD test.batch_size
4278 if ((attr->test.ctx_size_in && !attr->test.ctx_in) ||
4279 (!attr->test.ctx_size_in && attr->test.ctx_in))
4282 if ((attr->test.ctx_size_out && !attr->test.ctx_out) ||
4283 (!attr->test.ctx_size_out && attr->test.ctx_out))
4286 prog = bpf_prog_get(attr->test
[all...]

Completed in 664 milliseconds

1234567891011>>