Symbol: fork
arch/um/os-Linux/start_up.c
111
pid = fork();
drivers/connector/cn_proc.c
134
ev->event_data.fork.parent_pid = parent->pid;
drivers/connector/cn_proc.c
135
ev->event_data.fork.parent_tgid = parent->tgid;
drivers/connector/cn_proc.c
137
ev->event_data.fork.child_pid = task->pid;
drivers/connector/cn_proc.c
138
ev->event_data.fork.child_tgid = task->tgid;
fs/hfsplus/catalog.c
334
struct hfsplus_fork_raw fork;
fs/hfsplus/catalog.c
384
hfs_bnode_read(fd.bnode, &fork, off, sizeof(fork));
fs/hfsplus/catalog.c
385
hfsplus_free_fork(sb, cnid, &fork, HFSPLUS_TYPE_DATA);
fs/hfsplus/catalog.c
390
hfs_bnode_read(fd.bnode, &fork, off, sizeof(fork));
fs/hfsplus/catalog.c
391
hfsplus_free_fork(sb, cnid, &fork, HFSPLUS_TYPE_RSRC);
fs/hfsplus/extents.c
392
struct hfsplus_fork_raw *fork, int type)
fs/hfsplus/extents.c
399
total_blocks = be32_to_cpu(fork->total_blocks);
fs/hfsplus/extents.c
405
blocks += be32_to_cpu(fork->extents[i].block_count);
fs/hfsplus/extents.c
407
res = hfsplus_free_extents(sb, fork->extents, blocks, blocks);
fs/hfsplus/hfsplus_fs.h
436
struct hfsplus_fork_raw *fork, int type);
fs/hfsplus/hfsplus_fs.h
453
struct hfsplus_fork_raw *fork);
fs/hfsplus/hfsplus_fs.h
455
struct hfsplus_fork_raw *fork);
fs/hfsplus/inode.c
511
void hfsplus_inode_read_fork(struct inode *inode, struct hfsplus_fork_raw *fork)
fs/hfsplus/inode.c
519
memcpy(&hip->first_extents, &fork->extents, sizeof(hfsplus_extent_rec));
fs/hfsplus/inode.c
521
count += be32_to_cpu(fork->extents[i].block_count);
fs/hfsplus/inode.c
527
hip->alloc_blocks = be32_to_cpu(fork->total_blocks);
fs/hfsplus/inode.c
528
hip->phys_size = inode->i_size = be64_to_cpu(fork->total_size);
fs/hfsplus/inode.c
533
be32_to_cpu(fork->clump_size) >> sbi->alloc_blksz_shift;
fs/hfsplus/inode.c
542
struct hfsplus_fork_raw *fork)
fs/hfsplus/inode.c
544
memcpy(&fork->extents, &HFSPLUS_I(inode)->first_extents,
fs/hfsplus/inode.c
546
fork->total_size = cpu_to_be64(inode->i_size);
fs/hfsplus/inode.c
547
fork->total_blocks = cpu_to_be32(HFSPLUS_I(inode)->alloc_blocks);
fs/hfsplus/super.c
124
struct hfsplus_fork_raw *fork;
fs/hfsplus/super.c
129
fork = &vhdr->ext_file;
fs/hfsplus/super.c
133
fork = &vhdr->cat_file;
fs/hfsplus/super.c
137
fork = &vhdr->alloc_file;
fs/hfsplus/super.c
140
fork = &vhdr->start_file;
fs/hfsplus/super.c
143
fork = &vhdr->attr_file;
fs/hfsplus/super.c
150
if (fork->total_size != cpu_to_be64(inode->i_size)) {
fs/hfsplus/super.c
154
hfsplus_inode_write_fork(inode, fork);
fs/userfaultfd.c
988
msg->arg.fork.ufd = fd;
fs/xfs/libxfs/xfs_bmap.c
4081
int fork)
fs/xfs/libxfs/xfs_bmap.c
4083
struct xfs_ifork *ifp = xfs_ifork_ptr(ip, fork);
fs/xfs/libxfs/xfs_bmap.h
233
int fork);
include/linux/cgroup-defs.h
792
void (*fork)(struct task_struct *task);
include/uapi/linux/cn_proc.h
103
} fork;
include/uapi/linux/userfaultfd.h
126
} fork;
kernel/cgroup/cgroup.c
6368
have_fork_callback |= (bool)ss->fork << ss->id;
kernel/cgroup/cgroup.c
7035
ss->fork(child);
kernel/cgroup/cpuset.c
3659
.fork = cpuset_fork,
kernel/cgroup/legacy_freezer.c
472
.fork = freezer_fork,
kernel/fork.c
2733
SYSCALL_DEFINE0(fork)
kernel/sched/ext.c
2948
static int scx_init_task(struct task_struct *p, struct task_group *tg, bool fork)
kernel/sched/ext.c
2958
.fork = fork,
kernel/sched/ext.c
2972
if (!fork) {
kernel/sched/ext_internal.h
203
bool fork;
mm/memcontrol.c
4707
.fork = mem_cgroup_fork,
samples/bpf/map_perf_test_user.c
354
pid[i] = fork();
samples/bpf/test_lru_dist.c
243
pid[i] = fork();
samples/bpf/trace_event_user.c
337
pid = fork();
samples/bpf/tracex6_user.c
83
pid[i] = fork();
samples/seccomp/user-trap.c
215
worker = fork();
samples/seccomp/user-trap.c
286
tracer = fork();
tools/accounting/getdelays.c
534
tid = fork();
tools/include/uapi/linux/userfaultfd.h
126
} fork;
tools/lib/perf/include/perf/event.h
599
struct perf_record_fork fork;
tools/lib/perf/tests/test-evlist.c
247
pid = fork();
tools/lib/subcmd/run-command.c
83
cmd->pid = fork();
tools/perf/arch/x86/tests/bp-modify.c
32
int child = fork();
tools/perf/bench/inject-buildid.c
159
memset(&event, 0, sizeof(event.fork) + bench_id_hdr_size);
tools/perf/bench/inject-buildid.c
163
event.header.size = sizeof(event.fork) + bench_id_hdr_size;
tools/perf/bench/inject-buildid.c
165
event.fork.ppid = 1;
tools/perf/bench/inject-buildid.c
166
event.fork.ptid = 1;
tools/perf/bench/inject-buildid.c
167
event.fork.pid = data->pid;
tools/perf/bench/inject-buildid.c
168
event.fork.tid = data->pid;
tools/perf/bench/inject-buildid.c
291
data->pid = fork();
tools/perf/bench/numa.c
1643
pid = fork();
tools/perf/bench/sched-messaging.c
175
worker->pid = fork();
tools/perf/bench/sched-pipe.c
273
pid = fork();
tools/perf/bench/sched-seccomp-notify.c
113
pid = fork();
tools/perf/bench/syscall.c
39
pid_t pid = fork();
tools/perf/bench/syscall.c
58
pid_t pid = fork();
tools/perf/builtin-annotate.c
869
annotate.tool.fork = perf_event__process_fork;
tools/perf/builtin-buildid-list.c
108
build_id__mark_dso_hit_ops.fork = perf_event__process_fork;
tools/perf/builtin-c2c.c
3184
c2c.tool.fork = perf_event__process_fork;
tools/perf/builtin-daemon.c
1183
pid = fork();
tools/perf/builtin-daemon.c
340
session->pid = fork();
tools/perf/builtin-diff.c
1953
pdiff.tool.fork = perf_event__process_fork;
tools/perf/builtin-inject.c
1502
gs->tool.fork = guest_session__repipe;
tools/perf/builtin-inject.c
2265
inject->tool.fork = perf_event__repipe_fork;
tools/perf/builtin-inject.c
2329
inject->tool.fork = host__repipe;
tools/perf/builtin-inject.c
2362
inject->tool.fork = perf_event__repipe_fork;
tools/perf/builtin-inject.c
2628
inject.tool.fork = perf_event__repipe;
tools/perf/builtin-kvm.c
1868
kvm->tool.fork = perf_event__process_fork;
tools/perf/builtin-kwork.c
1979
kwork->tool.fork = perf_event__process_fork;
tools/perf/builtin-mem.c
286
mem->tool.fork = perf_event__process_fork;
tools/perf/builtin-record.c
2465
tool->fork = perf_event__process_fork;
tools/perf/builtin-report.c
1610
report.tool.fork = perf_event__process_fork;
tools/perf/builtin-report.c
850
rep->tool.fork = perf_event__process_fork;
tools/perf/builtin-sched.c
3304
sched->tool.fork = perf_event__process_fork;
tools/perf/builtin-sched.c
4965
sched.tool.fork = perf_sched__process_fork_event;
tools/perf/builtin-sched.c
900
child = machine__findnew_thread(machine, event->fork.pid,
tools/perf/builtin-sched.c
901
event->fork.tid);
tools/perf/builtin-sched.c
902
parent = machine__findnew_thread(machine, event->fork.ppid,
tools/perf/builtin-sched.c
903
event->fork.ptid);
tools/perf/builtin-script.c
2971
event->fork.pid, event->fork.tid,
tools/perf/builtin-script.c
2972
event->fork.time);
tools/perf/builtin-script.c
2980
if (print_event_with_time(tool, event, sample, machine, event->fork.pid,
tools/perf/builtin-script.c
2981
event->fork.tid, event->fork.time))
tools/perf/builtin-script.c
3196
script->tool.fork = process_fork_event;
tools/perf/builtin-script.c
4295
pid = fork();
tools/perf/builtin-script.c
4420
script.tool.fork = perf_event__process_fork;
tools/perf/builtin-timechart.c
1613
tchart->tool.fork = process_fork_event;
tools/perf/builtin-timechart.c
339
pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time);
tools/perf/builtin-timechart.c
349
pid_exit(tchart, event->fork.pid, event->fork.time);
tools/perf/builtin-trace.c
4709
trace->tool.fork = perf_event__process_fork;
tools/perf/tests/workloads/sqrtloop.c
34
switch (fork()) {
tools/perf/util/arm-spe.c
1418
event->fork.tid,
tools/perf/util/cs-etm.c
2836
event->fork.tid);
tools/perf/util/data-convert-bt.c
1278
__FUNC_ADD_NON_SAMPLE_EVENT_CLASS(fork,
tools/perf/util/data-convert-bt.c
1681
c.tool.fork = perf_event__process_fork;
tools/perf/util/data-convert-bt.c
1693
c.tool.fork = process_fork_event;
tools/perf/util/data-convert-bt.c
927
__FUNC_PROCESS_NON_SAMPLE(fork,
tools/perf/util/data-convert-bt.c
928
__NON_SAMPLE_SET_FIELD(fork, u32, pid);
tools/perf/util/data-convert-bt.c
929
__NON_SAMPLE_SET_FIELD(fork, u32, ppid);
tools/perf/util/data-convert-bt.c
930
__NON_SAMPLE_SET_FIELD(fork, u32, tid);
tools/perf/util/data-convert-bt.c
931
__NON_SAMPLE_SET_FIELD(fork, u32, ptid);
tools/perf/util/data-convert-bt.c
932
__NON_SAMPLE_SET_FIELD(fork, u64, time);
tools/perf/util/data-convert-bt.c
936
__NON_SAMPLE_SET_FIELD(fork, u32, pid);
tools/perf/util/data-convert-bt.c
937
__NON_SAMPLE_SET_FIELD(fork, u32, ppid);
tools/perf/util/data-convert-bt.c
938
__NON_SAMPLE_SET_FIELD(fork, u32, tid);
tools/perf/util/data-convert-bt.c
939
__NON_SAMPLE_SET_FIELD(fork, u32, ptid);
tools/perf/util/data-convert-bt.c
940
__NON_SAMPLE_SET_FIELD(fork, u64, time);
tools/perf/util/data-convert-json.c
367
c.tool.fork = perf_event__process_fork;
tools/perf/util/event.c
417
event->fork.pid, event->fork.tid,
tools/perf/util/event.c
418
event->fork.ppid, event->fork.ptid);
tools/perf/util/event.c
443
event->fork.pid,
tools/perf/util/event.c
444
event->fork.tid);
tools/perf/util/event.c
446
dump_printf("(%d:%d):(%d:%d)\n", event->fork.pid, event->fork.tid,
tools/perf/util/event.c
447
event->fork.ppid, event->fork.ptid);
tools/perf/util/evlist.c
1485
evlist->workload.pid = fork();
tools/perf/util/intel-bts.c
624
err = intel_bts_process_tid_exit(bts, event->fork.tid);
tools/perf/util/intel-pt.c
3735
event->fork.tid,
tools/perf/util/machine.c
1864
event->fork.pid,
tools/perf/util/machine.c
1865
event->fork.tid);
tools/perf/util/machine.c
1867
event->fork.ppid,
tools/perf/util/machine.c
1868
event->fork.ptid);
tools/perf/util/machine.c
1881
if (thread__pid(parent) != (pid_t)event->fork.ppid) {
tools/perf/util/machine.c
1886
parent = machine__findnew_thread(machine, event->fork.ppid,
tools/perf/util/machine.c
1887
event->fork.ptid);
tools/perf/util/machine.c
1896
thread = machine__findnew_thread(machine, event->fork.pid,
tools/perf/util/machine.c
1897
event->fork.tid);
tools/perf/util/machine.c
1912
if (event->fork.header.misc & PERF_RECORD_MISC_FORK_EXEC)
tools/perf/util/machine.c
1930
event->fork.pid,
tools/perf/util/machine.c
1931
event->fork.tid);
tools/perf/util/python.c
121
pevent->event.fork.pid,
tools/perf/util/python.c
122
pevent->event.fork.ppid,
tools/perf/util/python.c
123
pevent->event.fork.tid,
tools/perf/util/python.c
124
pevent->event.fork.ptid,
tools/perf/util/python.c
125
pevent->event.fork.time);
tools/perf/util/session.c
1495
return tool->fork(tool, event, sample, machine);
tools/perf/util/session.c
340
event->fork.pid = bswap_32(event->fork.pid);
tools/perf/util/session.c
341
event->fork.tid = bswap_32(event->fork.tid);
tools/perf/util/session.c
342
event->fork.ppid = bswap_32(event->fork.ppid);
tools/perf/util/session.c
343
event->fork.ptid = bswap_32(event->fork.ptid);
tools/perf/util/session.c
344
event->fork.time = bswap_64(event->fork.time);
tools/perf/util/session.c
347
swap_sample_id_all(event, &event->fork + 1);
tools/perf/util/synthetic-events.c
267
memset(&event->fork, 0, sizeof(event->fork) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
275
event->fork.ppid = ppid;
tools/perf/util/synthetic-events.c
276
event->fork.ptid = ppid;
tools/perf/util/synthetic-events.c
278
event->fork.ppid = tgid;
tools/perf/util/synthetic-events.c
279
event->fork.ptid = tgid;
tools/perf/util/synthetic-events.c
281
event->fork.pid = tgid;
tools/perf/util/synthetic-events.c
282
event->fork.tid = pid;
tools/perf/util/synthetic-events.c
283
event->fork.header.type = PERF_RECORD_FORK;
tools/perf/util/synthetic-events.c
284
event->fork.header.misc = PERF_RECORD_MISC_FORK_EXEC;
tools/perf/util/synthetic-events.c
286
event->fork.header.size = (sizeof(event->fork) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
886
fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size);
tools/perf/util/synthetic-events.c
969
fork_event = malloc(sizeof(fork_event->fork) + machine->id_hdr_size);
tools/perf/util/tool.c
295
tool->fork = process_event_stub;
tools/perf/util/tool.c
402
CREATE_DELEGATE_OP(fork);
tools/perf/util/tool.c
482
tool->tool.fork = delegate_fork;
tools/perf/util/tool.h
54
fork,
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
304
child_pid = fork();
tools/power/x86/intel-speed-select/isst-daemon.c
173
pid = fork();
tools/power/x86/turbostat/turbostat.c
10473
child_pid = fork();
tools/testing/selftests/acct/acct_syscall.c
52
child_pid = fork();
tools/testing/selftests/arm64/abi/ptrace.c
261
child = fork();
tools/testing/selftests/arm64/abi/tpidr2.c
71
newpid = fork();
tools/testing/selftests/arm64/fp/fp-ptrace.c
1402
child = fork();
tools/testing/selftests/arm64/fp/fp-stress.c
73
child->pid = fork();
tools/testing/selftests/arm64/fp/sve-ptrace.c
909
child = fork();
tools/testing/selftests/arm64/fp/vec-syscfg.c
105
child = fork();
tools/testing/selftests/arm64/fp/za-fork.c
29
newpid = fork();
tools/testing/selftests/arm64/fp/za-ptrace.c
358
child = fork();
tools/testing/selftests/arm64/fp/zt-ptrace.c
356
child = fork();
tools/testing/selftests/arm64/gcs/basic-gcs.c
244
pid = fork();
tools/testing/selftests/arm64/gcs/gcs-stress.c
69
child->pid = fork();
tools/testing/selftests/arm64/gcs/libc-gcs.c
145
child = fork();
tools/testing/selftests/arm64/mte/check_child_memory.c
37
child = fork();
tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c
96
pid = fork();
tools/testing/selftests/arm64/mte/check_hugetlb_options.c
102
child = fork();
tools/testing/selftests/arm64/pauth/pac.c
128
pid = fork();
tools/testing/selftests/bpf/benchs/bench_local_storage_rcu_tasks_trace.c
136
forkret = fork();
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
1578
child_pid = fork();
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
339
pid = fork();
tools/testing/selftests/bpf/prog_tests/cgroup_hierarchical_stats.c
173
pid = fork();
tools/testing/selftests/bpf/prog_tests/cgrp_kfunc.c
111
pid = fork();
tools/testing/selftests/bpf/prog_tests/cpumask.c
61
child_pid = fork();
tools/testing/selftests/bpf/prog_tests/deny_namespace.c
36
pid = fork();
tools/testing/selftests/bpf/prog_tests/exhandler.c
33
cpid = fork();
tools/testing/selftests/bpf/prog_tests/send_signal.c
42
pid = fork();
tools/testing/selftests/bpf/prog_tests/task_kfunc.c
57
child_pid = fork();
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
291
child_pid = fork();
tools/testing/selftests/bpf/prog_tests/task_under_cgroup.c
44
pid = fork();
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
1188
tunnel_pid = fork();
tools/testing/selftests/bpf/prog_tests/test_bpffs.c
154
pid = fork();
tools/testing/selftests/bpf/prog_tests/test_bprm_opts.c
36
child_pid = fork();
tools/testing/selftests/bpf/prog_tests/test_ima.c
23
child_pid = fork();
tools/testing/selftests/bpf/prog_tests/test_local_storage.c
31
child_pid = fork();
tools/testing/selftests/bpf/prog_tests/test_lsm.c
42
child_pid = fork();
tools/testing/selftests/bpf/prog_tests/test_task_work.c
65
pid = fork();
tools/testing/selftests/bpf/prog_tests/timer.c
97
pid = fork();
tools/testing/selftests/bpf/prog_tests/token.c
480
child_pid = fork();
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
116
child->pid = child->tid = fork();
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
299
pid = fork();
tools/testing/selftests/bpf/prog_tests/verify_pkcs7_sig.c
125
child_pid = fork();
tools/testing/selftests/bpf/prog_tests/verify_pkcs7_sig.c
88
child_pid = fork();
tools/testing/selftests/bpf/test_lru_map.c
586
pid = fork();
tools/testing/selftests/bpf/test_maps.c
1075
pid[i] = fork();
tools/testing/selftests/bpf/test_maps.c
1361
pid[i] = fork();
tools/testing/selftests/bpf/test_progs.c
2054
pid = fork();
tools/testing/selftests/bpf/test_sockmap.c
883
rxpid = fork();
tools/testing/selftests/bpf/test_sockmap.c
920
txpid = fork();
tools/testing/selftests/breakpoints/breakpoint_test.c
394
pid = fork();
tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
116
pid_t pid = fork();
tools/testing/selftests/breakpoints/step_after_suspend_test.c
53
pid_t pid = fork();
tools/testing/selftests/capabilities/test_execve.c
172
pid_t child = fork();
tools/testing/selftests/cgroup/lib/cgroup_util.c
411
pid = fork();
tools/testing/selftests/cgroup/lib/cgroup_util.c
536
pid = fork();
tools/testing/selftests/cgroup/test_cpu.c
266
pid = fork();
tools/testing/selftests/cgroup/test_freezer.c
344
fork();
tools/testing/selftests/cgroup/test_freezer.c
345
fork();
tools/testing/selftests/cgroup/test_kill.c
209
fork();
tools/testing/selftests/cgroup/test_kill.c
210
fork();
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
149
pid = fork();
tools/testing/selftests/clone3/clone3_set_tid.c
270
pid = fork();
tools/testing/selftests/clone3/clone3_set_tid.c
309
ns_pid = fork();
tools/testing/selftests/connector/proc_filter.c
157
event->event_data.fork.child_pid,
tools/testing/selftests/connector/proc_filter.c
158
event->event_data.fork.child_tgid,
tools/testing/selftests/connector/proc_filter.c
159
event->event_data.fork.parent_pid,
tools/testing/selftests/connector/proc_filter.c
160
event->event_data.fork.parent_tgid);
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1021
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1115
pid = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1154
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1248
pid = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1280
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1404
pid[i] = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1439
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1505
pid_t worker = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
1544
pid[i] = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
214
pid = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
250
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
358
pid = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
390
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
498
pid = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
530
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
619
pid = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
651
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
739
pid = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
771
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
861
pid = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
893
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
94
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_protocol_test.c
983
pid = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
187
pid = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
225
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
290
pid = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
348
pid = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
379
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
418
pid = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
452
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
558
pid = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
598
pid_coredump_server = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
704
pid = fork();
tools/testing/selftests/coredump/coredump_socket_test.c
92
pid_coredump_server = fork();
tools/testing/selftests/coredump/stackdump_test.c
136
pid = fork();
tools/testing/selftests/exec/execveat.c
94
child = fork();
tools/testing/selftests/exec/null-argv.c
12
pid = fork(); \
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
396
pid = fork();
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
515
pid = fork();
tools/testing/selftests/filesystems/devpts_pts.c
138
pid_t pid = fork();
tools/testing/selftests/filesystems/file_stressor.c
114
self->pids_openers[i] = fork();
tools/testing/selftests/filesystems/file_stressor.c
147
self->pids_getdents[i] = fork();
tools/testing/selftests/filesystems/fuse/fusectl_test.c
72
pid = fork();
tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c
463
ret = fork();
tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns.c
490
ret = fork();
tools/testing/selftests/filesystems/nsfs/owner.c
37
pid = fork();
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
302
pid = fork();
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
379
pid = fork();
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
471
pid = fork();
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
547
pid = fork();
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
572
inner_pid = fork();
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
633
pid = fork();
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
707
pid = fork();
tools/testing/selftests/filesystems/open_tree_ns/open_tree_ns_test.c
822
pid = fork();
tools/testing/selftests/filesystems/statmount/statmount_test_ns.c
228
pid = fork();
tools/testing/selftests/filesystems/statmount/statmount_test_ns.c
316
pid = fork();
tools/testing/selftests/firmware/fw_namespace.c
71
child = fork();
tools/testing/selftests/iommu/iommufd.c
1368
child = fork();
tools/testing/selftests/iommu/iommufd.c
1412
child = fork();
tools/testing/selftests/iommu/iommufd.c
310
child = fork();
tools/testing/selftests/kcmp/kcmp_test.c
81
pid2 = fork();
tools/testing/selftests/kselftest_harness.h
1222
child = fork();
tools/testing/selftests/kselftest_harness.h
435
child = fork(); \
tools/testing/selftests/kvm/get-reg-list.c
390
pid = fork();
tools/testing/selftests/kvm/hardware_disable_test.c
160
pid = fork();
tools/testing/selftests/landlock/audit_test.c
360
child = fork();
tools/testing/selftests/landlock/audit_test.c
553
child = fork();
tools/testing/selftests/landlock/audit_test.c
93
child = fork();
tools/testing/selftests/landlock/base_test.c
418
child = fork();
tools/testing/selftests/landlock/base_test.c
490
child = fork();
tools/testing/selftests/landlock/fs_test.c
2047
const pid_t child = fork();
tools/testing/selftests/landlock/fs_test.c
2135
child = fork();
tools/testing/selftests/landlock/fs_test.c
4057
child = fork();
tools/testing/selftests/landlock/fs_test.c
4340
child_pid = fork();
tools/testing/selftests/landlock/fs_test.c
5009
child_pid = fork();
tools/testing/selftests/landlock/fs_test.c
5046
child_pid = fork();
tools/testing/selftests/landlock/net_test.c
591
child = fork();
tools/testing/selftests/landlock/net_test.c
848
child = fork();
tools/testing/selftests/landlock/ptrace_test.c
178
child = fork();
tools/testing/selftests/landlock/ptrace_test.c
363
child = fork();
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1000
child = fork();
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
1107
child = fork();
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
194
child = fork();
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
320
child = fork();
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
435
child = fork();
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
450
grand_child = fork();
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
649
child = fork();
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
814
child = fork();
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
96
child = fork();
tools/testing/selftests/landlock/scoped_signal_test.c
191
child = fork();
tools/testing/selftests/landlock/scoped_signal_test.c
474
child = fork();
tools/testing/selftests/landlock/scoped_signal_test.c
97
child = fork();
tools/testing/selftests/liveupdate/luo_test_utils.c
179
pid = fork();
tools/testing/selftests/memfd/memfd_test.c
442
pid = fork();
tools/testing/selftests/mm/cow.c
1341
ret = fork();
tools/testing/selftests/mm/cow.c
199
ret = fork();
tools/testing/selftests/mm/cow.c
325
ret = fork();
tools/testing/selftests/mm/cow.c
474
ret = fork();
tools/testing/selftests/mm/cow.c
639
ret = fork();
tools/testing/selftests/mm/cow.c
953
ret = fork();
tools/testing/selftests/mm/droppable.c
34
child = fork();
tools/testing/selftests/mm/guard-regions.c
1187
TEST_F(guard_regions, fork)
tools/testing/selftests/mm/guard-regions.c
1202
pid = fork();
tools/testing/selftests/mm/guard-regions.c
1264
pid = fork();
tools/testing/selftests/mm/guard-regions.c
1337
pid = fork();
tools/testing/selftests/mm/hmm-tests.c
1897
fork();
tools/testing/selftests/mm/hmm-tests.c
2062
pid = fork();
tools/testing/selftests/mm/hmm-tests.c
593
pid = fork();
tools/testing/selftests/mm/hmm-tests.c
680
pid = fork();
tools/testing/selftests/mm/khugepaged.c
899
if (!fork()) {
tools/testing/selftests/mm/khugepaged.c
937
if (!fork()) {
tools/testing/selftests/mm/khugepaged.c
987
if (!fork()) {
tools/testing/selftests/mm/ksm_functional_tests.c
470
child_pid = fork();
tools/testing/selftests/mm/ksm_functional_tests.c
557
child_pid = fork();
tools/testing/selftests/mm/ksm_functional_tests.c
668
child_pid = fork();
tools/testing/selftests/mm/map_populate.c
109
child = fork();
tools/testing/selftests/mm/mdwe_test.c
198
self->pid = fork();
tools/testing/selftests/mm/memfd_secret.c
213
pid = fork();
tools/testing/selftests/mm/merge.c
33
pid_t pid = fork();
tools/testing/selftests/mm/migration.c
164
pid = fork();
tools/testing/selftests/mm/migration.c
236
pid = fork();
tools/testing/selftests/mm/migration.c
296
pid = fork();
tools/testing/selftests/mm/mrelease_test.c
110
pid = fork();
tools/testing/selftests/mm/pfnmap.c
251
TEST_F(pfnmap, fork)
tools/testing/selftests/mm/pfnmap.c
257
pid = fork();
tools/testing/selftests/mm/prctl_thp_disable.c
160
TEST_F(prctl_thp_disable_completely, fork)
tools/testing/selftests/mm/prctl_thp_disable.c
166
pid = fork();
tools/testing/selftests/mm/prctl_thp_disable.c
268
TEST_F(prctl_thp_disable_except_madvise, fork)
tools/testing/selftests/mm/prctl_thp_disable.c
274
pid = fork();
tools/testing/selftests/mm/process_madv.c
150
self->child_pid = fork();
tools/testing/selftests/mm/process_madv.c
233
self->child_pid = fork();
tools/testing/selftests/mm/protection_keys.c
1123
forkret = fork();
tools/testing/selftests/mm/protection_keys.c
1497
child = fork();
tools/testing/selftests/mm/protection_keys.c
1615
child = fork();
tools/testing/selftests/mm/protection_keys.c
449
forkret = fork();
tools/testing/selftests/mm/rmap.c
96
pid = fork();
tools/testing/selftests/mm/uffd-common.c
577
gopts->uffd = msg.arg.fork.ufd;
tools/testing/selftests/mm/uffd-unit-tests.c
231
args->child_uffd = msg.arg.fork.ufd;
tools/testing/selftests/mm/uffd-unit-tests.c
298
child = fork();
tools/testing/selftests/mm/uffd-unit-tests.c
786
pid = fork();
tools/testing/selftests/mm/uffd-unit-tests.c
840
pid = fork();
tools/testing/selftests/mount/unprivileged-remount-test.c
187
child = fork();
tools/testing/selftests/mount/unprivileged-remount-test.c
265
child = fork();
tools/testing/selftests/namespaces/cred_change_test.c
189
pid = fork();
tools/testing/selftests/namespaces/cred_change_test.c
305
pid = fork();
tools/testing/selftests/namespaces/cred_change_test.c
424
pid = fork();
tools/testing/selftests/namespaces/cred_change_test.c
52
pid = fork();
tools/testing/selftests/namespaces/cred_change_test.c
594
pid = fork();
tools/testing/selftests/namespaces/cred_change_test.c
728
pid = fork();
tools/testing/selftests/namespaces/file_handle_test.c
1112
pid = fork();
tools/testing/selftests/namespaces/file_handle_test.c
1163
pid_t child_pid = fork();
tools/testing/selftests/namespaces/file_handle_test.c
1261
pid = fork();
tools/testing/selftests/namespaces/file_handle_test.c
1312
pid_t child_pid = fork();
tools/testing/selftests/namespaces/file_handle_test.c
464
pid = fork();
tools/testing/selftests/namespaces/file_handle_test.c
593
pid = fork();
tools/testing/selftests/namespaces/file_handle_test.c
722
pid = fork();
tools/testing/selftests/namespaces/file_handle_test.c
851
pid = fork();
tools/testing/selftests/namespaces/file_handle_test.c
983
pid = fork();
tools/testing/selftests/namespaces/listns_pagination_bug.c
45
pids[i] = fork();
tools/testing/selftests/namespaces/listns_permissions_test.c
154
pid = fork();
tools/testing/selftests/namespaces/listns_permissions_test.c
248
pid1 = fork();
tools/testing/selftests/namespaces/listns_permissions_test.c
304
pid2 = fork();
tools/testing/selftests/namespaces/listns_permissions_test.c
383
pid = fork();
tools/testing/selftests/namespaces/listns_permissions_test.c
459
pid = fork();
tools/testing/selftests/namespaces/listns_permissions_test.c
47
pid = fork();
tools/testing/selftests/namespaces/listns_permissions_test.c
577
pid = fork();
tools/testing/selftests/namespaces/listns_permissions_test.c
685
pid = fork();
tools/testing/selftests/namespaces/listns_test.c
241
pid = fork();
tools/testing/selftests/namespaces/listns_test.c
352
pid = fork();
tools/testing/selftests/namespaces/listns_test.c
505
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
101
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
1129
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
1299
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
1472
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
1649
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
184
pid1 = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
1840
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
1972
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
238
pid2 = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
2392
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
303
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
393
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
408
pid_t child = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
481
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
634
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
857
pid = fork();
tools/testing/selftests/namespaces/ns_active_ref_test.c
966
pid = fork();
tools/testing/selftests/namespaces/nsid_test.c
191
pid = fork();
tools/testing/selftests/namespaces/nsid_test.c
297
pid = fork();
tools/testing/selftests/namespaces/nsid_test.c
403
pid = fork();
tools/testing/selftests/namespaces/nsid_test.c
509
pid = fork();
tools/testing/selftests/namespaces/nsid_test.c
621
pid = fork();
tools/testing/selftests/namespaces/nsid_test.c
640
pid_t grandchild = fork();
tools/testing/selftests/namespaces/nsid_test.c
742
pid = fork();
tools/testing/selftests/namespaces/nsid_test.c
761
pid_t grandchild = fork();
tools/testing/selftests/namespaces/nsid_test.c
85
pid = fork();
tools/testing/selftests/namespaces/nsid_test.c
894
pid = fork();
tools/testing/selftests/namespaces/siocgskns_test.c
1013
pid = fork();
tools/testing/selftests/namespaces/siocgskns_test.c
1333
pid_l1 = fork();
tools/testing/selftests/namespaces/siocgskns_test.c
1356
pid_l2 = fork();
tools/testing/selftests/namespaces/siocgskns_test.c
1384
pid_l3 = fork();
tools/testing/selftests/namespaces/siocgskns_test.c
423
pid = fork();
tools/testing/selftests/namespaces/siocgskns_test.c
606
pid = fork();
tools/testing/selftests/namespaces/siocgskns_test.c
808
pid = fork();
tools/testing/selftests/namespaces/siocgskns_test.c
87
pid = fork();
tools/testing/selftests/namespaces/stress_test.c
122
pids[i] = fork();
tools/testing/selftests/namespaces/stress_test.c
239
pid_t pid = fork();
tools/testing/selftests/namespaces/stress_test.c
302
pid_t pid = fork();
tools/testing/selftests/namespaces/stress_test.c
365
pids[i] = fork();
tools/testing/selftests/namespaces/stress_test.c
511
pids[i] = fork();
tools/testing/selftests/namespaces/stress_test.c
593
batch_pids[i] = fork();
tools/testing/selftests/namespaces/stress_test.c
61
pid_t pid = fork();
tools/testing/selftests/net/af_unix/scm_pidfd.c
508
self->client_pid = fork();
tools/testing/selftests/net/af_unix/so_peek_off.c
80
for (pid_t pid = (pid = fork(), \
tools/testing/selftests/net/fin_ack_lat.c
144
child_pid = fork();
tools/testing/selftests/net/ipsec.c
1974
child = fork();
tools/testing/selftests/net/ipsec.c
2003
child = fork();
tools/testing/selftests/net/ipsec.c
2184
child = fork();
tools/testing/selftests/net/ipv6_flowlabel_mgr.c
131
pid = fork();
tools/testing/selftests/net/ipv6_flowlabel_mgr.c
152
pid = fork();
tools/testing/selftests/net/mptcp/mptcp_inq.c
546
pid_t p = fork();
tools/testing/selftests/net/mptcp/mptcp_sockopt.c
798
pid_t p = fork();
tools/testing/selftests/net/netfilter/connect_close.c
128
p = fork();
tools/testing/selftests/net/netfilter/conntrack_reverse_clash.c
89
child = fork() == 0;
tools/testing/selftests/net/nettest.c
2235
cpid = fork();
tools/testing/selftests/net/tls.c
1349
int res = fork();
tools/testing/selftests/net/tls.c
1403
res = fork();
tools/testing/selftests/net/tls.c
1480
pid = fork();
tools/testing/selftests/net/tls.c
2179
ret = fork();
tools/testing/selftests/net/tls.c
2222
ret = fork();
tools/testing/selftests/net/tls.c
2693
ret = fork();
tools/testing/selftests/net/tls.c
2806
ret = fork();
tools/testing/selftests/net/tls.c
3265
pid = fork();
tools/testing/selftests/nolibc/nolibc-test.c
1408
CASE_TEST(fork); EXPECT_SYSZR(1, test_fork(FORK_STANDARD)); break;
tools/testing/selftests/nolibc/nolibc-test.c
1859
pid = fork();
tools/testing/selftests/nolibc/nolibc-test.c
949
pid = fork();
tools/testing/selftests/openat2/rename_attack_test.c
57
pid_t child = fork();
tools/testing/selftests/perf_events/remove_on_exec.c
103
pid_t pid = fork();
tools/testing/selftests/perf_events/remove_on_exec.c
131
pid_only_fork = fork();
tools/testing/selftests/perf_events/remove_on_exec.c
139
pid_exec = fork();
tools/testing/selftests/perf_events/remove_on_exec.c
179
pid_exec = fork();
tools/testing/selftests/perf_events/remove_on_exec.c
204
pids[i] = fork();
tools/testing/selftests/perf_events/watermark_signal.c
64
child = fork();
tools/testing/selftests/pid_namespace/pid_max.c
116
pids[0] = fork();
tools/testing/selftests/pid_namespace/pid_max.c
125
pids[1] = fork();
tools/testing/selftests/pid_namespace/pid_max.c
140
pid = fork();
tools/testing/selftests/pid_namespace/pid_max.c
196
pid = fork();
tools/testing/selftests/pid_namespace/pid_max.c
261
pid = fork();
tools/testing/selftests/pid_namespace/pid_max.c
70
pid = fork();
tools/testing/selftests/pid_namespace/regression_enomem.c
31
pid = fork();
tools/testing/selftests/pid_namespace/regression_enomem.c
39
pid = fork();
tools/testing/selftests/pidfd/pidfd_file_handle_test.c
253
pid = fork();
tools/testing/selftests/pidfd/pidfd_getfd_test.c
145
self->pid = fork();
tools/testing/selftests/pidfd/pidfd_info_test.c
272
pid_poller = fork();
tools/testing/selftests/pidfd/pidfd_info_test.c
447
pid_poller = fork();
tools/testing/selftests/pidfd/pidfd_info_test.c
608
pid_poller = fork();
tools/testing/selftests/pidfd/pidfd_poll_test.c
49
int child_pid = fork();
tools/testing/selftests/pidfd/pidfd_test.c
158
pid = fork();
tools/testing/selftests/pidfd/pidfd_test.c
245
pid1 = fork();
tools/testing/selftests/pidfd/pidfd_test.c
262
pid2 = fork();
tools/testing/selftests/pidfd/pidfd_test.c
305
recycled_pid = fork();
tools/testing/selftests/powerpc/benchmarks/context_switch.c
112
pid = fork();
tools/testing/selftests/powerpc/benchmarks/fork.c
50
pid = fork();
tools/testing/selftests/powerpc/benchmarks/fork.c
88
pid_t pid = fork();
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
127
pid = fork();
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
149
pid = fork();
tools/testing/selftests/powerpc/dexcr/hashchk_test.c
134
pid = fork();
tools/testing/selftests/powerpc/dexcr/hashchk_test.c
172
pid = fork();
tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c
62
pid = fork();
tools/testing/selftests/powerpc/dscr/dscr_inherit_test.c
42
pid = fork();
tools/testing/selftests/powerpc/harness.c
36
pid = fork();
tools/testing/selftests/powerpc/math/fpu_syscall.c
53
pid_t pid = fork();
tools/testing/selftests/powerpc/math/fpu_syscall.c
58
pid2 = fork();
tools/testing/selftests/powerpc/math/vmx_syscall.c
59
pid = fork();
tools/testing/selftests/powerpc/math/vmx_syscall.c
62
pid2 = fork();
tools/testing/selftests/powerpc/mm/large_vm_fork_separation.c
47
pid = fork();
tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c
142
pid = fork();
tools/testing/selftests/powerpc/mm/stack_expansion_ldst.c
134
pid = fork();
tools/testing/selftests/powerpc/mm/stack_expansion_signal.c
80
pid = fork();
tools/testing/selftests/powerpc/mm/tlbie_test.c
687
if (1 && !fork()) {
tools/testing/selftests/powerpc/pmu/ebb/cpu_event_pinned_vs_ebb_test.c
54
pid = fork();
tools/testing/selftests/powerpc/pmu/ebb/cpu_event_vs_ebb_test.c
52
pid = fork();
tools/testing/selftests/powerpc/pmu/ebb/ebb_on_child_test.c
55
pid = fork();
tools/testing/selftests/powerpc/pmu/ebb/ebb_on_willing_child_test.c
60
pid = fork();
tools/testing/selftests/powerpc/pmu/ebb/ebb_vs_cpu_event_test.c
52
pid = fork();
tools/testing/selftests/powerpc/pmu/ebb/fork_cleanup_test.c
64
pid = fork();
tools/testing/selftests/powerpc/pmu/ebb/multi_ebb_procs_test.c
85
pids[i] = fork();
tools/testing/selftests/powerpc/pmu/ebb/task_event_pinned_vs_ebb_test.c
50
pid = fork();
tools/testing/selftests/powerpc/pmu/ebb/task_event_vs_ebb_test.c
48
pid = fork();
tools/testing/selftests/powerpc/pmu/lib.c
117
pid = fork();
tools/testing/selftests/powerpc/ptrace/core-pkey.c
396
pid = fork();
tools/testing/selftests/powerpc/ptrace/perf-hwbreak.c
814
child_pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-gpr.c
133
pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c
597
child_pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c
194
*pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c
284
pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c
61
chld = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-tar.c
85
pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-tm-gpr.c
118
pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-gpr.c
124
pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-tar.c
134
pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-vsx.c
142
pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-tm-spr.c
120
pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-tm-tar.c
122
pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c
125
pid = fork();
tools/testing/selftests/powerpc/ptrace/ptrace-vsx.c
74
pid = fork();
tools/testing/selftests/powerpc/signal/sig_sc_double_restart.c
92
pid = fork();
tools/testing/selftests/powerpc/signal/sigfuz.c
222
t = fork();
tools/testing/selftests/powerpc/signal/signal.c
57
pid = fork();
tools/testing/selftests/powerpc/signal/sigreturn_kernel.c
37
pid = fork();
tools/testing/selftests/powerpc/tm/tm-poison.c
46
pid = fork();
tools/testing/selftests/powerpc/tm/tm-signal-context-force-tm.c
85
if (fork() == 0) {
tools/testing/selftests/powerpc/tm/tm-signal-stack.c
40
pid = fork();
tools/testing/selftests/prctl/disable-tsc-ctxt-sw-stress-test.c
85
if (fork() == 0)
tools/testing/selftests/prctl/disable-tsc-on-off-stress-test.c
89
if (fork() == 0)
tools/testing/selftests/proc/proc-empty-vm.c
176
pid = fork();
tools/testing/selftests/proc/proc-empty-vm.c
462
pid_t pid = fork();
tools/testing/selftests/proc/proc-loadavg-001.c
36
pid = fork();
tools/testing/selftests/proc/proc-loadavg-001.c
56
pid = fork();
tools/testing/selftests/proc/proc-maps-race.c
453
self->pid = fork();
tools/testing/selftests/proc/proc-pid-vm.c
247
pid = fork();
tools/testing/selftests/proc/proc-pid-vm.c
327
pid = fork();
tools/testing/selftests/proc/proc-pidns.c
74
pid_t pid = fork();
tools/testing/selftests/proc/proc-tid0.c
47
pid = fork();
tools/testing/selftests/proc/setns-dcache.c
69
pid = fork();
tools/testing/selftests/proc/setns-sysvipc.c
68
pid = fork();
tools/testing/selftests/ptrace/get_set_sud.c
25
child = fork();
tools/testing/selftests/ptrace/get_syscall_info.c
77
pid_t pid = fork();
tools/testing/selftests/ptrace/peeksiginfo.c
163
child = fork();
tools/testing/selftests/ptrace/set_syscall_info.c
326
tracee_pid = fork();
tools/testing/selftests/ptrace/vmaccess.c
26
int f, pid = fork();
tools/testing/selftests/ptrace/vmaccess.c
48
int s, k, pid = fork();
tools/testing/selftests/resctrl/resctrl_val.c
596
bm_pid = fork();
tools/testing/selftests/resctrl/resctrlfs.c
920
pid = fork();
tools/testing/selftests/riscv/abi/pointer_masking.c
164
if (fork()) {
tools/testing/selftests/riscv/abi/pointer_masking.c
178
if (fork()) {
tools/testing/selftests/riscv/cfi/cfitests.c
59
pid = fork();
tools/testing/selftests/riscv/cfi/shadowstack.c
171
pid = fork();
tools/testing/selftests/riscv/cfi/shadowstack.c
330
pid = fork();
tools/testing/selftests/riscv/cfi/shadowstack.c
98
pid = fork();
tools/testing/selftests/riscv/vector/v_helpers.c
57
pid = fork();
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
222
pid = fork();
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
28
pid = fork();
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
554
pid = fork();
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
761
pid = fork();
tools/testing/selftests/riscv/vector/validate_v_ptrace.c
98
pid = fork();
tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c
26
pid = fork();
tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c
47
pid = fork();
tools/testing/selftests/riscv/vector/vstate_ptrace.c
124
child = fork();
tools/testing/selftests/rlimits/rlimits-per-userns.c
46
pid_t pid = fork();
tools/testing/selftests/safesetid/safesetid-test.c
271
cpid = fork();
tools/testing/selftests/safesetid/safesetid-test.c
327
cpid = fork();
tools/testing/selftests/safesetid/safesetid-test.c
385
cpid = fork();
tools/testing/selftests/sched_ext/init_enable_count.bpf.c
23
if (args->fork)
tools/testing/selftests/sched_ext/init_enable_count.c
114
pids[i] = fork();
tools/testing/selftests/sched_ext/init_enable_count.c
53
pid_t pid = fork();
tools/testing/selftests/sched_ext/init_enable_count.c
84
pids[i] = fork();
tools/testing/selftests/sched_ext/rt_stall.c
159
ext_pid = fork();
tools/testing/selftests/sched_ext/rt_stall.c
174
rt_pid = fork();
tools/testing/selftests/sched_ext/select_cpu_dfl.c
41
pids[i] = fork();
tools/testing/selftests/sched_ext/select_cpu_dfl_nodispatch.c
41
pids[i] = fork();
tools/testing/selftests/sched_ext/select_cpu_dispatch.c
41
pids[i] = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
1619
tracer_pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3061
child_pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3307
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3401
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3433
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3529
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3583
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3656
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3690
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3730
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3741
pid2 = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3762
pid2 = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3808
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
3859
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4075
pid1 = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4082
pid2 = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4163
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4321
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4394
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4443
self->pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4555
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4579
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4669
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4736
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4806
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
4864
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
5005
pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
891
child_pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
910
child_pid = fork();
tools/testing/selftests/seccomp/seccomp_bpf.c
929
child_pid = fork();
tools/testing/selftests/sync/sync_test.c
47
childpid = fork();
tools/testing/selftests/timens/exec.c
63
pid = fork();
tools/testing/selftests/timens/futex.c
91
pid = fork();
tools/testing/selftests/timens/timer.c
106
pid = fork();
tools/testing/selftests/timens/timerfd.c
113
pid = fork();
tools/testing/selftests/timers/clocksource-switch.c
173
pid = fork();
tools/testing/selftests/timers/skew_consistency.c
48
pid = fork();
tools/testing/selftests/tty/tty_tiocsti_test.c
573
child_pid = fork();
tools/testing/selftests/tty/tty_tiocsti_test.c
586
child_pid = fork();
tools/testing/selftests/ublk/kublk.c
1436
res = fork();
tools/testing/selftests/ublk/kublk.c
1441
res2 = fork();
tools/testing/selftests/uevent/uevent_filtering.c
261
pid = fork();
tools/testing/selftests/user_events/abi_test.c
351
if (fork() == 0) {
tools/testing/selftests/user_events/abi_test.c
374
if (fork() == 0)
tools/testing/selftests/vDSO/vdso_test_getrandom.c
257
child = fork();
tools/testing/selftests/wireguard/qemu/init.c
168
pid = fork();
tools/testing/selftests/x86/amx.c
319
parent = fork();
tools/testing/selftests/x86/amx.c
337
child = fork();
tools/testing/selftests/x86/amx.c
368
grandchild = fork();
tools/testing/selftests/x86/amx.c
439
child = fork();
tools/testing/selftests/x86/amx.c
457
grandchild = fork();
tools/testing/selftests/x86/corrupt_xstate_header.c
74
pid_t child = fork();
tools/testing/selftests/x86/entry_from_vm86.c
324
if (fork() == 0)
tools/testing/selftests/x86/fsgsbase.c
431
pid_t child = fork();
tools/testing/selftests/x86/fsgsbase.c
493
pid_t child = fork();
tools/testing/selftests/x86/fsgsbase_restore.c
154
pid_t chld = fork();
tools/testing/selftests/x86/ioperm.c
105
pid_t child = fork();
tools/testing/selftests/x86/iopl.c
195
pid_t child = fork();
tools/testing/selftests/x86/lam.c
202
pid = fork();
tools/testing/selftests/x86/lam.c
761
pid = fork();
tools/testing/selftests/x86/lam.c
782
pid = fork();
tools/testing/selftests/x86/lam.c
822
pid = fork();
tools/testing/selftests/x86/ldt_gdt.c
334
pid_t child = fork();
tools/testing/selftests/x86/ldt_gdt.c
644
pid_t child = fork();
tools/testing/selftests/x86/mov_ss_trap.c
56
pid_t child = fork();
tools/testing/selftests/x86/ptrace_syscall.c
158
pid_t chld = fork();
tools/testing/selftests/x86/ptrace_syscall.c
278
pid_t chld = fork();
tools/testing/selftests/x86/syscall_numbering.c
427
testpid = fork();
tools/testing/selftests/x86/test_mremap_vdso.c
108
child = fork();
tools/testing/selftests/x86/test_shadow_stack.c
365
pid = fork();
tools/testing/selftests/x86/test_shadow_stack.c
893
pid = fork();
tools/testing/selftests/x86/test_syscall_vdso.c
345
pid = fork();
tools/testing/selftests/x86/xstate.c
326
child = fork();
tools/thermal/thermometer/thermometer.c
427
*pid = fork();
tools/thermal/tmon/tmon.c
340
pid_t sid, pid = fork();
tools/tracing/rtla/src/timerlat_u.c
154
pid = fork();
tools/usb/usbip/src/usbipd.c
350
childpid = fork();
tools/virtio/vringh_test.c
175
if (fork() != 0) {