/tools/testing/selftests/proc/ |
D | .gitignore | 18 /setns-dcache 19 /setns-sysvipc
|
D | Makefile | 20 TEST_GEN_PROGS += setns-dcache 21 TEST_GEN_PROGS += setns-sysvipc
|
D | setns-dcache.c | 104 if (setns(nsfd, CLONE_NEWNET) == -1) { in main()
|
D | setns-sysvipc.c | 103 if (setns(nsfd, CLONE_NEWIPC) == -1) { in main()
|
/tools/testing/selftests/pidfd/ |
D | pidfd_setns_test.c | 97 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/ |
D | test-setns.c | 7 return setns(0, 0); in main()
|
D | Makefile | 68 test-setns.bin \ 132 $(OUTPUT)test-setns.bin:
|
/tools/perf/util/ |
D | setns.c | 7 int setns(int fd, int nstype) in setns() function
|
D | namespaces.h | 18 int setns(int fd, int nstype);
|
D | namespaces.c | 240 if (setns(newns, CLONE_NEWNS) < 0) in nsinfo__mountns_enter() 261 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
|
D | Build | 167 perf-y += setns.o
|
/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector_reattach.c | 84 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()
|
D | xdp_bonding.c | 36 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()
|
D | sk_assign.c | 339 if (CHECK_FAIL(setns(self_net, CLONE_NEWNET))) in test_sk_assign()
|
D | tc_redirect.c | 95 err = setns(nsfd, CLONE_NEWNET); in setns_by_fd()
|
/tools/testing/selftests/timens/ |
D | gettime_perf.c | 93 if (setns(nsfd, CLONE_NEWTIME)) in main()
|
D | clock_nanosleep.c | 136 if (setns(nsfd, CLONE_NEWTIME)) in main()
|
D | procfs.c | 33 if (setns(fd, CLONE_NEWTIME)) in switch_ns()
|
D | timens.c | 52 if (setns(fd, CLONE_NEWTIME)) { in switch_ns()
|
/tools/build/ |
D | Makefile.feature | 68 setns \
|
/tools/testing/selftests/move_mount_set_group/ |
D | move_mount_set_group_test.c | 371 ASSERT_EQ(setns(ca_to.mntnsfd, CLONE_NEWNS), 0); in TEST_F()
|
/tools/perf/arch/mips/entry/syscalls/ |
D | syscall_n64.tbl | 314 303 n64 setns sys_setns
|
/tools/testing/selftests/bpf/ |
D | test_progs.c | 161 if (setns(env.saved_netns_fd, CLONE_NEWNET) == -1) { in restore_netns()
|
/tools/perf/arch/x86/entry/syscalls/ |
D | syscall_64.tbl | 319 308 common setns sys_setns
|
/tools/perf/arch/s390/entry/syscalls/ |
D | syscall.tbl | 349 339 common setns sys_setns sys_setns
|