Home
last modified time | relevance | path

Searched refs:_metadata (Results 1 – 12 of 12) sorted by relevance

/tools/testing/selftests/landlock/
Dcommon.h35 struct __test_metadata *_metadata, \
45 _metadata->no_print = 1; \
46 fixture_name##_##test_name##_child(_metadata, self, variant); \
47 if (_metadata->skip) \
49 if (_metadata->passed) \
51 _exit(_metadata->step); \
56 _metadata->passed = 0; \
57 _metadata->step = 1; \
62 _metadata->passed = 1; \
65 _metadata->passed = 1; \
[all …]
Dfs_test.c125 static void mkdir_parents(struct __test_metadata *const _metadata, in mkdir_parents() argument
151 static void create_directory(struct __test_metadata *const _metadata, in create_directory() argument
154 mkdir_parents(_metadata, path); in create_directory()
162 static void create_file(struct __test_metadata *const _metadata, in create_file() argument
165 mkdir_parents(_metadata, path); in create_file()
207 static void prepare_layout(struct __test_metadata *const _metadata) in prepare_layout() argument
209 disable_caps(_metadata); in prepare_layout()
211 create_directory(_metadata, TMP_DIR); in prepare_layout()
217 set_cap(_metadata, CAP_SYS_ADMIN); in prepare_layout()
221 clear_cap(_metadata, CAP_SYS_ADMIN); in prepare_layout()
[all …]
Dptrace_test.c28 static void create_domain(struct __test_metadata *const _metadata) in create_domain() argument
310 drop_caps(_metadata); in TEST_F()
316 create_domain(_metadata); in TEST_F()
317 if (!_metadata->passed) in TEST_F()
330 create_domain(_metadata); in TEST_F()
378 _exit(_metadata->passed ? EXIT_SUCCESS : EXIT_FAILURE); in TEST_F()
385 create_domain(_metadata); in TEST_F()
435 _metadata->passed = 0; in TEST_F()
Dbase_test.c212 drop_caps(_metadata); in TEST()
243 drop_caps(_metadata); in TEST()
287 drop_caps(_metadata); in TEST()
340 _exit(_metadata->passed ? EXIT_SUCCESS : EXIT_FAILURE); in TEST()
/tools/testing/selftests/
Dkselftest_harness.h113 __FILE__, __LINE__, _metadata->name, ##__VA_ARGS__)
130 snprintf(_metadata->results->reason, \
131 sizeof(_metadata->results->reason), fmt, ##__VA_ARGS__); \
134 _metadata->results->reason); \
136 _metadata->passed = 1; \
137 _metadata->skip = 1; \
138 _metadata->trigger = 0; \
181 static void test_name(struct __test_metadata *_metadata); \
183 struct __test_metadata *_metadata, \
186 test_name(_metadata); \
[all …]
/tools/testing/selftests/exec/
Dnon-regular.c15 void rm(struct __test_metadata *_metadata, const char *pathname, in rm() argument
46 void (*setup)(struct __test_metadata *_metadata, in FIXTURE_VARIANT()
52 void setup_link(struct __test_metadata *_metadata, in setup_link() argument
80 void setup_dir(struct __test_metadata *_metadata, in setup_dir() argument
95 void setup_node(struct __test_metadata *_metadata, in setup_node() argument
133 void setup_fifo(struct __test_metadata *_metadata, in setup_fifo() argument
152 rm(_metadata, self->pathname, variant->is_dir); in FIXTURE_SETUP()
153 variant->setup(_metadata, self, variant); in FIXTURE_SETUP()
158 rm(_metadata, self->pathname, self->is_dir); in FIXTURE_TEARDOWN()
/tools/testing/selftests/clone3/
Dclone3_cap_checkpoint_restore.c41 static int call_clone3_set_tid(struct __test_metadata *_metadata, in call_clone3_set_tid() argument
83 static int test_clone3_set_tid(struct __test_metadata *_metadata, in test_clone3_set_tid() argument
89 ret = call_clone3_set_tid(_metadata, set_tid, set_tid_size); in test_clone3_set_tid()
175 ASSERT_EQ(test_clone3_set_tid(_metadata, set_tid, 1), -EPERM); in TEST()
179 ASSERT_EQ(test_clone3_set_tid(_metadata, set_tid, 1), 0); in TEST()
/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c39 static void change_mountns(struct __test_metadata *_metadata) in change_mountns() argument
56 static int __do_binderfs_test(struct __test_metadata *_metadata) in __do_binderfs_test() argument
69 change_mountns(_metadata); in __do_binderfs_test()
293 static void change_userns(struct __test_metadata *_metadata, int syncfds[2]) in change_userns() argument
323 static void change_idmaps(struct __test_metadata *_metadata, int syncfds[2], pid_t pid) in change_idmaps() argument
359 struct __test_metadata *_metadata = _thread_metadata; in binder_version_thread() local
405 change_userns(_metadata, syncfds); in TEST()
406 change_mountns(_metadata); in TEST()
455 _thread_metadata = _metadata; in TEST()
484 change_idmaps(_metadata, syncfds, pid); in TEST()
[all …]
/tools/testing/selftests/net/
Dreuseaddr_ports_exhausted.c54 int bind_port(struct __test_metadata *_metadata, int reuseaddr, int reuseport) in bind_port() argument
90 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST()
110 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST()
139 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST()
Dtls.c271 static void chunked_sendfile(struct __test_metadata *_metadata, in chunked_sendfile() argument
308 chunked_sendfile(_metadata, self, 4096, 4096); in TEST_F()
309 chunked_sendfile(_metadata, self, 4096, 0); in TEST_F()
310 chunked_sendfile(_metadata, self, 4096, 1); in TEST_F()
311 chunked_sendfile(_metadata, self, 4096, 2048); in TEST_F()
312 chunked_sendfile(_metadata, self, 8192, 2048); in TEST_F()
313 chunked_sendfile(_metadata, self, 4096, 8192); in TEST_F()
314 chunked_sendfile(_metadata, self, 8192, 4096); in TEST_F()
315 chunked_sendfile(_metadata, self, 12288, 1024); in TEST_F()
316 chunked_sendfile(_metadata, self, 12288, 2000); in TEST_F()
[all …]
/tools/testing/selftests/perf_events/
Dsigtrap_threads.c142 static void run_test_threads(struct __test_metadata *_metadata, in run_test_threads() argument
154 run_test_threads(_metadata, self); in TEST_F()
162 run_test_threads(_metadata, self); in TEST_F()
181 run_test_threads(_metadata, self); in TEST_F()
200 run_test_threads(_metadata, self); in TEST_F()
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c788 void kill_thread_or_group(struct __test_metadata *_metadata, in kill_thread_or_group() argument
859 kill_thread_or_group(_metadata, KILL_THREAD); in TEST()
878 kill_thread_or_group(_metadata, KILL_PROCESS); in TEST()
897 kill_thread_or_group(_metadata, RET_UNKNOWN); in TEST()
1497 typedef void tracer_func_t(struct __test_metadata *_metadata,
1500 void start_tracer(struct __test_metadata *_metadata, int fd, pid_t tracee, in start_tracer() argument
1549 tracer_func(_metadata, tracee, status, args); in start_tracer()
1556 syscall(__NR_exit, _metadata->passed ? EXIT_SUCCESS : EXIT_FAILURE); in start_tracer()
1562 pid_t setup_trace_fixture(struct __test_metadata *_metadata, in setup_trace_fixture() argument
1579 start_tracer(_metadata, pipefd[1], tracee, func, args, in setup_trace_fixture()
[all …]