Home
last modified time | relevance | path

Searched full:fork (Results 1 – 25 of 815) sorted by relevance

12345678910>>...33

/openbmc/linux/tools/testing/selftests/exec/
H A Dnull-argv.c10 #define FORK(exec) \ macro
12 pid = fork(); \
27 perror("# fork"); in check_result()
28 ksft_test_result_fail("fork failed: %s\n", msg); in check_result()
71 FORK(execve(argv[0], str, NULL)); in main()
72 FORK(execve(argv[0], NULL, NULL)); in main()
73 FORK(execve(argv[0], NULL, envp)); in main()
74 FORK(execve(argv[0], args, NULL)); in main()
75 FORK(execve(argv[0], args, envp)); in main()
/openbmc/linux/tools/testing/selftests/ftrace/test.d/ftrace/
H A Dfunc-filter-pid.tc12 if [ ! -f options/function-fork ]; then
14 echo "no option for function-fork found. Option will not be tested."
20 # default value of function-fork option
21 orig_value=`grep function-fork trace_options`
49 echo nofunction-fork > trace_options
71 echo function-fork > trace_options
81 fail "PID filtering not following fork?"
H A Dfunc-filter-notrace-pid.tc11 if [ ! -f options/function-fork ]; then
13 echo "no option for function-fork found. Option will not be tested."
19 # default value of function-fork option
20 orig_value=`grep function-fork trace_options`
49 echo nofunction-fork > trace_options
71 echo function-fork > trace_options
86 fail "PID filtering not following fork? traced task = $count_pid; other tasks = $count_other "
/openbmc/linux/tools/testing/selftests/x86/
H A Damx.c514 parent = fork(); in test_dynamic_state()
516 /* fork() failed */ in test_dynamic_state()
517 fatal_error("fork"); in test_dynamic_state()
520 /* fork() succeeded. Now in the parent. */ in test_dynamic_state()
527 /* fork() succeeded. Now in the child . */ in test_dynamic_state()
529 printf("[RUN]\tCheck ARCH_REQ_XCOMP_PERM around process fork() and sigaltack() test.\n"); in test_dynamic_state()
532 child = fork(); in test_dynamic_state()
534 fatal_error("fork"); in test_dynamic_state()
563 grandchild = fork(); in test_dynamic_state()
565 /* fork() failed */ in test_dynamic_state()
[all …]
/openbmc/linux/Documentation/admin-guide/cgroup-v1/
H A Dpids.rst9 new tasks from being fork()'d or clone()'d after a certain limit is reached.
27 policy through fork() or clone(). fork() and clone() will return -EAGAIN if the
39 - max: Number of times fork failed because limit was hit.
64 sh: fork: Resource temporary unavailable
79 sh: fork: Resource temporary unavailable
88 sh: fork: Resource temporary unavailable
91 sh: fork: Resource temporary unavailable
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Ddaemonize.py32 # Fork a child process so the parent can exit. This returns control to
37 pid = os.fork()
47 # Fork a second child and exit immediately to prevent zombies. This
52 # based systems). This second fork guarantees that the child is no
55 pid = os.fork() # Fork a second child.
66 # removed. It's therefore recommended that child branches of a fork()
/openbmc/linux/tools/testing/selftests/powerpc/benchmarks/
H A Dfork.c50 pid = fork(); in start_process_on()
52 perror("fork"); in start_process_on()
88 pid_t pid = fork(); in bench_fork()
90 perror("fork"); in bench_fork()
112 perror("fork"); in bench_vfork()
211 { "fork", no_argument, &do_fork, 1 },
221 fprintf(stderr, "Usage: fork <options> CPU\n\n"); in usage()
222 fprintf(stderr, "\t\t--fork\tUse fork() (default threads)\n"); in usage()
303 printf("fork"); in main()
/openbmc/openbmc-test-automation/lib/
H A Dbmc_ssh_utils.py19 fork=0, argument
37 fork Indicates that sshlib.start is to be used rather than
88 fork,
100 fork=0, argument
121 fork Indicates that sshlib.start is to be used rather than
161 fork,
173 fork=0, argument
190 fork Indicates that sshlib.start is to be used rather than
232 fork,
254 fork Indicates that sshlib.start is to be used rather than
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/netperf/files/
H A Dvfork.patch1 Subject: [PATCH] netperf: fix vfork/fork
28 switch (fork()) {
34 "%s: fork() error %s (errno %d)\n",
49 switch (fork()) {
55 "%s: fork() error %s (errno %d)\n",
/openbmc/linux/tools/testing/selftests/perf_events/
H A Dremove_on_exec.c99 /* Verify event propagates to fork'd child. */
103 pid_t pid = fork(); in TEST_F()
118 * Verify that event does _not_ propagate to fork+exec'd child; event enabled
119 * after fork+exec.
131 pid_only_fork = fork(); in TEST_F()
139 pid_exec = fork(); in TEST_F()
169 * Verify that event does _not_ propagate to fork+exec'd child; event enabled
170 * before fork+exec.
179 pid_exec = fork(); in TEST_F()
204 pids[i] = fork(); in TEST_F()
/openbmc/qemu/tests/tcg/multiarch/
H A DMakefile.target119 run-gdbstub-follow-fork-mode-child: follow-fork-mode
123 --bin $< --test $(MULTIARCH_SRC)/gdbstub/follow-fork-mode-child.py, \
124 following children on fork)
126 run-gdbstub-follow-fork-mode-parent: follow-fork-mode
130 --bin $< --test $(MULTIARCH_SRC)/gdbstub/follow-fork-mode-parent.py, \
131 following parents on fork)
140 run-gdbstub-catch-syscalls run-gdbstub-follow-fork-mode-child \
141 run-gdbstub-follow-fork-mode-parent \
H A Dfollow-fork-mode.c2 * Test GDB's follow-fork-mode.
4 * fork() a chain of processes.
6 * position in the chain, in order to prove that they survived GDB's fork()
30 child = fork(); in main()
/openbmc/linux/tools/testing/selftests/powerpc/math/
H A Dfpu_syscall.c5 * This test attempts to see if the FPU registers change across a syscall (fork).
31 /* test_fpu will fork() */ in syscall_fpu()
51 pid_t pid = fork(); in test_syscall_fpu()
56 pid2 = fork(); in test_syscall_fpu()
60 * Couldn't fork, ensure test is a fail in test_syscall_fpu()
H A Dvmx_syscall.c5 * This test attempts to see if the VMX registers change across a syscall (fork).
32 /* test_vmx will fork() */ in vmx_syscall()
59 pid = fork(); in test_vmx_syscall()
62 pid2 = fork(); in test_vmx_syscall()
67 * Couldn't fork, ensure child_ret is set and is a fail in test_vmx_syscall()
/openbmc/linux/fs/xfs/
H A Dxfs_attr_inactive.c247 * Indiscriminately delete the entire attribute fork
319 * xfs_attr_inactive kills all traces of an attribute fork on an inode. It
320 * removes both the on-disk and in-memory inode fork. Note that this also has to
321 * handle the condition of inodes without attributes but with an attribute fork
324 * The in-memory attribute fork is removed even on error.
361 * Invalidate and truncate the attribute fork extents. Make sure the in xfs_attr_inactive()
362 * fork actually has xattr blocks as otherwise the invalidation has no in xfs_attr_inactive()
363 * blocks to read and returns an error. In this case, just do the fork in xfs_attr_inactive()
376 /* Reset the attribute fork - this also destroys the in-core fork */ in xfs_attr_inactive()
386 /* kill the in-core attr fork before we drop the inode lock */ in xfs_attr_inactive()
H A Dxfs_aops.c109 * Clean up all COW blocks and underlying data fork delalloc blocks on in xfs_end_ioend()
111 * mapped to blocks in the COW fork and the associated pages are no in xfs_end_ioend()
216 * This is not a COW mapping. Check the sequence number of the data fork in xfs_imap_valid()
218 * the COW fork because concurrent changes since the last time we in xfs_imap_valid()
261 * COW fork blocks can overlap data fork blocks even if the blocks in xfs_map_blocks()
264 * COW one, or the COW fork hasn't changed from the last time we looked in xfs_map_blocks()
267 * It's safe to check the COW fork if_seq here without the ILOCK because in xfs_map_blocks()
292 * it directly instead of looking up anything in the data fork. in xfs_map_blocks()
334 * opportunity to do this because we can skip COW fork lookups for the in xfs_map_blocks()
354 * although it could have moved from the COW to the data fork by another in xfs_map_blocks()
[all …]
H A Dxfs_reflink.c63 * D: --RRRRRRSSSRRRRRRRR--- (data fork)
64 * C: ------DDDDDDD--------- (CoW fork)
78 * the mappings must be stored in a separate CoW fork because we do not want
79 * to disturb the mapping in the data fork until we're sure that the write
81 * mapping from the data fork and moving the new mapping from the CoW fork to
82 * the data fork. This will be discussed shortly.
97 * because we don't want to destroy the old data fork map until we're sure
99 * separate fork, we can simply iterate these mappings to find the ones
101 * unmap the corresponding range in the data fork, map the new range into
102 * the data fork, and remove the extent from the CoW fork. Because of
[all …]
/openbmc/linux/fs/xfs/scrub/
H A Dbmap.c44 * We don't want any ephemeral data/cow fork updates sitting around in xchk_setup_inode_bmap()
58 * space mappings for the data fork. Leave accumulated errors in xchk_setup_inode_bmap()
88 * Inode fork block mapping (BMBT) scrubber.
90 * all the extents regardless of whether or not the fork
100 /* Previous fork mapping that we examined */
103 /* Is this a realtime fork? */
112 /* Which inode fork are we checking? */
146 * any data fork extent of a reflink inode) then we have to use the in xchk_bmap_get_rmap()
165 /* Make sure that we have rmapbt records for this data/attr fork extent. */
213 * the rmap. Note that the (in-memory) CoW fork distinguishes between in xchk_bmap_xref_rmap()
[all …]
/openbmc/linux/tools/testing/selftests/mm/
H A Dcow.c180 ret = fork(); in do_test_cow_in_parent()
182 ksft_test_result_fail("fork() failed\n"); in do_test_cow_in_parent()
278 ret = fork(); in do_test_vmsplice_in_parent()
280 ksft_test_result_fail("fork() failed\n"); in do_test_vmsplice_in_parent()
403 * fork() and keep the child alive until we're done. Note that in do_test_iouring()
406 ret = fork(); in do_test_iouring()
408 ksft_test_result_fail("fork() failed\n"); in do_test_iouring()
552 ret = fork(); in do_test_ro_pin()
554 ksft_test_result_fail("fork() failed\n"); in do_test_ro_pin()
838 ret = fork(); in do_run_with_thp()
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_inode_fork.c43 * If we are using the local fork to store a symlink body we need to in xfs_init_local_fork()
45 * Overallocate the in-memory fork by one for that and add a zero in xfs_init_local_fork()
81 "corrupt inode %llu (bad size %d for local fork, size = %zd).", in xfs_iformat_local()
184 * blow out if -- fork has less extents than can fit in in xfs_iformat_btree()
185 * fork (fork shouldn't be a btree format), root btree in xfs_iformat_btree()
186 * block has more records than can fit into the fork, in xfs_iformat_btree()
548 * In the case of the data fork, the in-core and on-disk fork sizes can be
550 * here, so callers must always use the physical fork size to determine the
588 * and log flags, e.g. having XFS_ILOG_?DATA set when the fork is
589 * in EXTENTS format, this can only happen when the fork has
[all …]
H A Dxfs_inode_fork.h18 unsigned int if_seq; /* fork mod counter */
24 xfs_extnum_t if_nextents; /* # of extents in this fork */
26 int8_t if_format; /* format of this fork */
31 * Worst-case increase in the fork extent count when we're adding a single
32 * extent to a fork and there's no possibility of splitting an existing mapping.
63 * Moving an extent to data fork can cause a sub-interval of an existing extent
79 * Fork handling.
263 /* returns true if the fork has extents but they are not read in yet. */
/openbmc/linux/tools/testing/selftests/arm64/fp/
H A DMakefile11 za-fork za-ptrace
22 EXTRA_CLEAN += $(OUTPUT)/asm-utils.o $(OUTPUT)/rdvl.o $(OUTPUT)/za-fork-asm.o
39 $(OUTPUT)/za-fork: za-fork.c $(OUTPUT)/za-fork-asm.o
/openbmc/qemu/tests/unit/
H A Dtest-seccomp.c116 int ret = fork(); in doit_fork()
232 g_test_add_func("/seccomp/sys-fork/on", in main()
234 g_test_add_func("/seccomp/sys-fork/on-nospawn", in main()
236 g_test_add_func("/seccomp/sys-fork/off", in main()
240 g_test_add_func("/seccomp/fork/on", in main()
242 g_test_add_func("/seccomp/fork/on-nospawn", in main()
244 g_test_add_func("/seccomp/fork/off", in main()
/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dfork_cleanup_test.c19 * Test that a fork clears the PMU state of the child. eg. BESCR/EBBHR/EBBRR
41 /* Tests that fork clears EBB state */
64 pid = fork(); in fork_cleanup()
71 /* After fork */ in fork_cleanup()
/openbmc/linux/fs/hfs/
H A Dhfs.h58 /* legal values for hfs_ext_key.FkType and hfs_file.fork */
65 #define HFS_FIL_DOPEN 0x04 /* data fork open */
66 #define HFS_FIL_ROPEN 0x08 /* resource fork open */
190 __be32 LgLen; /* The logical EOF of the data fork*/
191 __be32 PyLen; /* The physical EOF of the data fork */
193 __be32 RLgLen; /* The logical EOF of the rsrc fork */
194 __be32 RPyLen; /* The physical EOF of the rsrc fork */
202 for the data fork */
204 for the resource fork */

12345678910>>...33