/linux-master/tools/testing/selftests/ |
H A D | kselftest_harness.h | 1175 /* Make sure output buffers are flushed before fork */ 1179 t->pid = fork();
|
/linux-master/kernel/ |
H A D | fork.c | 3 * linux/kernel/fork.c 9 * 'fork.c' contains the help-routines for the 'fork' system call 1075 cpuhp_setup_state(CPUHP_BP_PREPARE_DYN, "fork:vm_stack_cache", 2203 * before the fork happens. Collect up signals sent to multiple 2204 * processes that happen during the fork and delay them so that 2205 * they appear to happen after the fork. 2269 * to stop root fork bombs. 2505 * stalling fork(2) after we recorded the start_time but before it is 2548 /* Let kill terminate clone/fork i [all...] |
/linux-master/tools/power/x86/turbostat/ |
H A D | turbostat.c | 7439 child_pid = fork(); 7448 err(1, "fork"); 8033 * if any params left, it must be a command to fork
|
/linux-master/tools/testing/selftests/net/ |
H A D | tls.c | 1246 int res = fork(); 1300 res = fork(); 1377 pid = fork(); 1818 ret = fork(); 1931 ret = fork();
|
/linux-master/tools/testing/selftests/mm/ |
H A D | uffd-unit-tests.c | 252 args->child_uffd = msg.arg.fork.ufd; 264 * all needs of the test cases (e.g., trigger unshare, trigger fork() early 316 child = fork(); 332 * After fork(), we should handle uffd-wp bit differently: 498 * 1. First pin, then fork(). This tests fork() special path when 510 uffd_test_fail("Detected %s uffd-wp bit in early CoW of fork()", 519 * 2. First fork(), then pin (in the child, where test_pin==true). 653 * For non-cooperative userfaultfd test we fork() a process that will 668 * test robustness use case - we release monitored area, fork [all...] |
H A D | uffd-common.c | 551 uffd = msg.arg.fork.ufd;
|
H A D | protection_keys.c | 448 forkret = fork(); 450 dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); 1194 forkret = fork(); 1196 dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); 1238 * preserved across fork(). 1563 child = fork(); 1565 dprintf3("[%d] fork() ret: %d\n", getpid(), child);
|
H A D | mrelease_test.c | 110 pid = fork(); 114 ksft_exit_fail_msg("fork: %s\n", strerror(errno));
|
H A D | map_populate.c | 104 child = fork(); 105 BUG_ON(child == -1, "fork()");
|
H A D | ksm_functional_tests.c | 459 child_pid = fork(); 463 ksft_test_result_fail("fork() failed\n"); 505 child_pid = fork(); 507 ksft_test_result_skip("fork() failed\n");
|
/linux-master/tools/testing/selftests/exec/ |
H A D | execveat.c | 92 child = fork(); 94 ksft_perror("fork() failed");
|
/linux-master/tools/testing/selftests/user_events/ |
H A D | abi_test.c | 347 /* Ensure COW pages get updated after fork */ 351 if (fork() == 0) { 374 if (fork() == 0)
|
/linux-master/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 406 pid = fork(); 1349 /* Verify that the rules are actually inherited after fork. */ 1350 printf("%s nested sysctl 0 -> 1 after fork\n", memfd_str); 1359 printf("%s nested sysctl 0 -> 2 after fork\n", memfd_str); 1369 * Verify that the current effective setting is saved on fork, meaning 1373 printf("%s nested sysctl 2 -> 1 after fork\n", memfd_str); 1381 printf("%s nested sysctl 2 -> 0 after fork\n", memfd_str); 1389 printf("%s nested sysctl 1 -> 0 after fork\n", memfd_str); 1530 * Test sharing via fork()
|
/linux-master/tools/testing/selftests/damon/ |
H A D | debugfs_target_ids_pid_leak.c | 52 int pid = fork(); 55 fprintf(stderr, "fork() failed\n");
|
H A D | debugfs_target_ids_read_before_terminate_race.c | 38 int pid = fork(); 42 fprintf(stderr, "fork() failed\n");
|
/linux-master/tools/testing/selftests/arm64/fp/ |
H A D | fp-ptrace.c | 253 * Since the child fork()ed from us the buffer addresses are 1227 child = fork(); 1229 ksft_exit_fail_msg("fork() failed: %s (%d)\n",
|
H A D | Makefile | 13 za-fork za-ptrace 24 EXTRA_CLEAN += $(OUTPUT)/asm-utils.o $(OUTPUT)/rdvl.o $(OUTPUT)/za-fork-asm.o 42 $(OUTPUT)/za-fork: za-fork.c $(OUTPUT)/za-fork-asm.o
|
/linux-master/tools/perf/util/ |
H A D | session.c | 497 if (tool->fork == NULL) 498 tool->fork = process_event_stub; 638 event->fork.pid = bswap_32(event->fork.pid); 639 event->fork.tid = bswap_32(event->fork.tid); 640 event->fork.ppid = bswap_32(event->fork.ppid); 641 event->fork.ptid = bswap_32(event->fork [all...] |
H A D | python.c | 286 static char pyrf_task_event__doc[] = PyDoc_STR("perf task (fork/exit) event object."); 303 pevent->event.header.type == PERF_RECORD_FORK ? "fork" : "exit", 304 pevent->event.fork.pid, 305 pevent->event.fork.ppid, 306 pevent->event.fork.tid, 307 pevent->event.fork.ptid, 308 pevent->event.fork.time);
|
H A D | machine.c | 1914 event->fork.pid, 1915 event->fork.tid); 1917 event->fork.ppid, 1918 event->fork.ptid); 1928 * (fork) event that would have removed the thread was lost. Assume the 1931 if (thread__pid(parent) != (pid_t)event->fork.ppid) { 1936 parent = machine__findnew_thread(machine, event->fork.ppid, 1937 event->fork.ptid); 1946 thread = machine__findnew_thread(machine, event->fork.pid, 1947 event->fork [all...] |
H A D | event.c | 409 event->fork.pid, event->fork.tid, 410 event->fork.ppid, event->fork.ptid);
|
H A D | data-convert-json.c | 329 .fork = perf_event__process_fork,
|
/linux-master/tools/perf/ |
H A D | builtin-trace.c | 3611 * we fork the workload in evlist__prepare_workload. 4130 trace->tool.fork = perf_event__process_fork;
|
H A D | builtin-script.c | 2605 event->fork.pid, event->fork.tid, 2606 event->fork.time); 2614 if (print_event_with_time(tool, event, sample, machine, event->fork.pid, 2615 event->fork.tid, event->fork.time)) 2820 script->tool.fork = process_fork_event; 3874 .fork = perf_event__process_fork, 3984 "Show the fork/comm/exit events"), 4146 pid = fork(); [all...] |
H A D | builtin-sched.c | 888 child = machine__findnew_thread(machine, event->fork.pid, 889 event->fork.tid); 890 parent = machine__findnew_thread(machine, event->fork.ppid, 891 event->fork.ptid); 894 pr_debug("thread does not exist on fork event: child %p, parent %p\n", 900 printf("fork event\n"); 1732 /* run the fork event through the perf machinery */ 3004 sched->tool.fork = perf_event__process_fork; 3513 .fork = perf_sched__process_fork_event,
|