Home
last modified time | relevance | path

Searched refs:setns (Results 1 – 25 of 30) sorted by relevance

12

/tools/testing/selftests/proc/
D.gitignore18 /setns-dcache
19 /setns-sysvipc
DMakefile20 TEST_GEN_PROGS += setns-dcache
21 TEST_GEN_PROGS += setns-sysvipc
Dsetns-dcache.c104 if (setns(nsfd, CLONE_NEWNET) == -1) { in main()
Dsetns-sysvipc.c103 if (setns(nsfd, CLONE_NEWIPC) == -1) { in main()
/tools/testing/selftests/pidfd/
Dpidfd_setns_test.c97 ret = setns(fd, CLONE_NEWTIME); in switch_timens()
345 ASSERT_NE(setns(self->pidfd, 0), 0); in TEST_F()
348 ASSERT_NE(setns(self->pidfd, -1), 0); in TEST_F()
351 ASSERT_NE(setns(self->pidfd, CLONE_VM), 0); in TEST_F()
354 ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0); in TEST_F()
364 ASSERT_NE(setns(self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET), in TEST_F()
391 ASSERT_EQ(setns(self->child_pidfd1, info->flag), 0) { in TEST_F()
427 ASSERT_EQ(setns(self->child_nsfds1[i], info->flag), 0) { in TEST_F()
466 ASSERT_EQ(setns(self->child_pidfd1, flags), 0) { in TEST_F()
510 ASSERT_EQ(setns(self->child_pidfd1, flags), 0) { in TEST_F()
[all …]
/tools/build/feature/
Dtest-setns.c7 return setns(0, 0); in main()
DMakefile68 test-setns.bin \
132 $(OUTPUT)test-setns.bin:
/tools/perf/util/
Dsetns.c7 int setns(int fd, int nstype) in setns() function
Dnamespaces.h18 int setns(int fd, int nstype);
Dnamespaces.c240 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter()
261 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
DBuild167 perf-y += setns.o
/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector_reattach.c84 setns(old_net, CLONE_NEWNET); in unshare_net()
455 err = setns(old_net, CLONE_NEWNET); in test_link_update_netns_gone()
539 err = setns(old_net, CLONE_NEWNET); in test_link_get_info()
567 setns(old_net, CLONE_NEWNET); in test_link_get_info()
647 err = setns(init_net, CLONE_NEWNET); in test_flow_dissector_reattach()
671 err = setns(saved_net, CLONE_NEWNET); in test_flow_dissector_reattach()
Dxdp_bonding.c36 ASSERT_OK(setns(root_netns_fd, CLONE_NEWNET), "restore_root_netns"); in restore_root_netns()
49 err = setns(nsfd, CLONE_NEWNET); in setns_by_name()
Dsk_assign.c339 if (CHECK_FAIL(setns(self_net, CLONE_NEWNET))) in test_sk_assign()
Dtc_redirect.c95 err = setns(nsfd, CLONE_NEWNET); in setns_by_fd()
/tools/testing/selftests/timens/
Dgettime_perf.c93 if (setns(nsfd, CLONE_NEWTIME)) in main()
Dclock_nanosleep.c136 if (setns(nsfd, CLONE_NEWTIME)) in main()
Dprocfs.c33 if (setns(fd, CLONE_NEWTIME)) in switch_ns()
Dtimens.c52 if (setns(fd, CLONE_NEWTIME)) { in switch_ns()
/tools/build/
DMakefile.feature68 setns \
/tools/testing/selftests/move_mount_set_group/
Dmove_mount_set_group_test.c371 ASSERT_EQ(setns(ca_to.mntnsfd, CLONE_NEWNS), 0); in TEST_F()
/tools/perf/arch/mips/entry/syscalls/
Dsyscall_n64.tbl314 303 n64 setns sys_setns
/tools/testing/selftests/bpf/
Dtest_progs.c161 if (setns(env.saved_netns_fd, CLONE_NEWNET) == -1) { in restore_netns()
/tools/perf/arch/x86/entry/syscalls/
Dsyscall_64.tbl319 308 common setns sys_setns
/tools/perf/arch/s390/entry/syscalls/
Dsyscall.tbl349 339 common setns sys_setns sys_setns

12