Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 222) sorted by relevance

123456789

/f-stack/app/redis-5.0.5/deps/jemalloc/test/unit/
H A Dfork.c9 wait_for_child_exit(int pid) { in wait_for_child_exit() argument
34 pid_t pid; in TEST_BEGIN() local
52 pid = fork(); in TEST_BEGIN()
60 if (pid == -1) { in TEST_BEGIN()
63 } else if (pid == 0) { in TEST_BEGIN()
79 int pid = fork(); in do_fork_thd() local
80 if (pid == -1) { in do_fork_thd()
83 } else if (pid == 0) { in do_fork_thd()
118 int pid = fork(); in TEST_BEGIN() local
119 if (pid == -1) { in TEST_BEGIN()
[all …]
/f-stack/dpdk/drivers/net/failsafe/
H A Dfailsafe_eal.c14 uint16_t pid; in fs_ethdev_portid_get() local
22 for (pid = 0; pid < RTE_MAX_ETHPORTS; pid++) { in fs_ethdev_portid_get()
23 if (rte_eth_dev_is_valid_port(pid) && in fs_ethdev_portid_get()
25 *port_id = pid; in fs_ethdev_portid_get()
38 uint16_t pid; in fs_bus_init() local
45 if (fs_ethdev_portid_get(da->name, &pid) != 0) { in fs_bus_init()
66 rte_eth_dev_owner_get(pid, &pid_owner); in fs_bus_init()
79 rte_eth_devices[pid].device->devargs; in fs_bus_init()
89 rte_eth_devices[pid].device->name, in fs_bus_init()
110 rte_eth_dev_owner_unset(pid, in fs_bus_init()
[all …]
/f-stack/freebsd/amd64/linux/
H A Dlinux_ptrace.c313 error = kern_ptrace(td, PT_READ_I, pid, addr, 0); in linux_ptrace_peek()
424 error = kern_ptrace(td, PT_GETREGS, pid, &b_reg, 0); in linux_ptrace_getregs()
466 error = kern_ptrace(td, PT_SETREGS, pid, &b_reg, 0); in linux_ptrace_setregs()
488 error = kern_ptrace(td, PT_GETREGS, pid, &b_reg, 0); in linux_ptrace_getregset_prstatus()
572 pid_t pid; in linux_ptrace() local
575 pid = (pid_t)uap->pid; in linux_ptrace()
590 error = linux_ptrace_peek(td, pid, in linux_ptrace()
604 error = kern_ptrace(td, PT_WRITE_D, pid, in linux_ptrace()
623 error = kern_ptrace(td, PT_STEP, pid, (void *)1, sig); in linux_ptrace()
647 error = linux_ptrace_setoptions(td, pid, uap->data); in linux_ptrace()
[all …]
/f-stack/dpdk/lib/librte_latencystats/
H A Drte_latencystats.c219 uint16_t pid; in rte_latencystats_init() local
265 RTE_ETH_FOREACH_DEV(pid) { in rte_latencystats_init()
272 pid, strerror(-ret)); in rte_latencystats_init()
278 cbs = &rx_cbs[pid][qid]; in rte_latencystats_init()
284 "qid=%d\n", pid, qid); in rte_latencystats_init()
287 cbs = &tx_cbs[pid][qid]; in rte_latencystats_init()
293 "qid=%d\n", pid, qid); in rte_latencystats_init()
302 uint16_t pid; in rte_latencystats_uninit() local
309 RTE_ETH_FOREACH_DEV(pid) { in rte_latencystats_uninit()
316 pid, strerror(-ret)); in rte_latencystats_uninit()
[all …]
/f-stack/tools/libutil/
H A Duucplock.c57 static int put_pid (int fd, pid_t pid);
68 pid_t pid, pid_old; in uu_lock() local
73 pid = getpid(); in uu_lock()
75 pid); in uu_lock()
107 if (!put_pid (tmpfd, pid)) in uu_lock()
128 uu_lock_txfr(const char *tty_name, pid_t pid) in uu_lock_txfr() argument
199 put_pid(int fd, pid_t pid) in put_pid() argument
204 len = sprintf (buf, "%10d\n", (int)pid); in put_pid()
213 pid_t pid; in get_pid() local
220 pid = -1; in get_pid()
[all …]
/f-stack/dpdk/app/test/
H A Dtest_debug.c26 int pid; in test_panic() local
29 pid = fork(); in test_panic()
31 if (pid == 0) in test_panic()
33 else if (pid < 0){ in test_panic()
51 int pid; in test_exit_val() local
59 pid = fork(); in test_exit_val()
61 if (pid == 0) in test_exit_val()
63 else if (pid < 0){ in test_exit_val()
/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_process.c91 ngx_pid_t pid; in ngx_spawn_process() local
186 pid = fork(); in ngx_spawn_process()
188 switch (pid) { in ngx_spawn_process()
208 ngx_processes[s].pid = pid; in ngx_spawn_process()
212 return pid; in ngx_spawn_process()
257 return pid; in ngx_spawn_process()
475 ngx_pid_t pid; in ngx_process_get_status() local
485 if (pid == 0) { in ngx_process_get_status()
489 if (pid == -1) { in ngx_process_get_status()
525 if (ngx_processes[i].pid == pid) { in ngx_process_get_status()
[all …]
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_wait/
H A Dzfs_wait.kshlib59 typeset pid=$1
60 [[ $pid ]] && proc_exists $pid && log_must kill -s TERM $pid
73 typeset pid=$1
77 proc_must_not_exist $pid
78 wait $pid || log_fail "process exited with status $?"
H A Dzfs_wait_deleteq.ksh36 kill_if_running $pid
42 typeset pid
50 pid=$!
51 proc_must_exist $pid
55 bkgrnd_proc_succeeded $pid
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_wait/scan/
H A Dzpool_wait_resilver.ksh36 kill_if_running $pid
42 typeset pid
51 pid=$!
52 check_while_waiting $pid "$IN_PROGRESS_CHECK"
58 pid=$!
59 while ! is_pool_resilvering $TESTPOOL && proc_exists $pid; do
62 check_while_waiting $pid "$IN_PROGRESS_CHECK"
H A Dzpool_wait_rebuild.ksh36 kill_if_running $pid
42 typeset pid
51 pid=$!
52 check_while_waiting $pid "$IN_PROGRESS_CHECK"
58 pid=$!
59 while ! is_pool_resilvering $TESTPOOL && proc_exists $pid; do
62 check_while_waiting $pid "$IN_PROGRESS_CHECK"
H A Dzpool_wait_replace.ksh37 kill_if_running $pid
49 typeset pid
60 pid=$!
61 check_while_waiting $pid in_progress
65 pid=$!
66 while ! is_pool_resilvering $TESTPOOL && proc_exists $pid; do
69 check_while_waiting $pid in_progress
H A Dzpool_wait_scrub_flag.ksh34 kill_if_running $pid
37 typeset pid
44 pid=$!
47 proc_must_exist $pid
50 bkgrnd_proc_succeeded $pid
H A Dzpool_wait_scrub_cancel.ksh38 kill_if_running $pid
48 pid=$!
51 proc_must_exist $pid
54 bkgrnd_proc_succeeded $pid
57 typeset pid
H A Dzpool_wait_replace_cancel.ksh39 kill_if_running $pid
47 typeset pid
57 pid=$!
60 proc_must_exist $pid
63 bkgrnd_proc_succeeded $pid
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_wait/
H A Dzpool_wait.kshlib71 typeset pid=$1
72 [[ $pid ]] && proc_exists $pid && log_must kill -s TERM $pid
85 typeset pid=$1
89 proc_must_not_exist $pid
90 wait $pid || log_fail "zpool process exited with status $?"
H A Dzpool_wait_remove.ksh39 kill_if_running $pid
56 pid=$!
58 while ! is_pool_removing $TESTPOOL && proc_exists $pid; do
64 pid=$!
69 proc_must_exist $pid
73 check_while_waiting $pid "is_pool_removing $TESTPOOL"
80 typeset pid
H A Dzpool_wait_discard.ksh39 kill_if_running $pid
59 pid=$!
61 while ! is_pool_discarding $TESTPOOL && proc_exists $pid; do
67 pid=$!
70 check_while_waiting $pid "is_pool_discarding $TESTPOOL"
75 typeset pid default_mem_limit
H A Dzpool_wait_remove_cancel.ksh36 kill_if_running $pid
43 typeset pid
54 pid=$!
57 proc_must_exist $pid
60 bkgrnd_proc_succeeded $pid
H A Dzpool_wait_initialize_cancel.ksh39 kill_if_running $pid
53 pid=$!
57 proc_must_exist $pid
61 bkgrnd_proc_succeeded $pid
64 typeset pid default_chunk_sz
H A Dzpool_wait_trim_cancel.ksh38 kill_if_running $pid
50 pid=$!
54 proc_must_exist $pid
58 bkgrnd_proc_succeeded $pid
65 typeset pid
/f-stack/freebsd/contrib/openzfs/cmd/zed/
H A Dzed_exec.c86 pid_t pid; in _zed_exec_fork_child() local
103 pid = fork(); in _zed_exec_fork_child()
104 if (pid < 0) { in _zed_exec_fork_child()
109 } else if (pid == 0) { in _zed_exec_fork_child()
125 prog, eid, pid); in _zed_exec_fork_child()
134 wpid = waitpid(pid, &status, WNOHANG); in _zed_exec_fork_child()
140 prog, eid, pid); in _zed_exec_fork_child()
155 prog, eid, pid, WEXITSTATUS(status)); in _zed_exec_fork_child()
159 prog, eid, pid, WTERMSIG(status), in _zed_exec_fork_child()
174 prog, pid); in _zed_exec_fork_child()
[all …]
/f-stack/tools/libutil/tests/
H A Dpidfile_test.c131 pid_t other = 0, pid = 0; in common_test_pidfile_child() local
149 pid = fork(); in common_test_pidfile_child()
150 if (pid == -1) in common_test_pidfile_child()
152 if (pid == 0) { in common_test_pidfile_child()
197 kill(pid, SIGTERM); in common_test_pidfile_child()
217 if (other != pid) { in common_test_pidfile_child()
226 if (kill(pid, SIGINT) != 0) in common_test_pidfile_child()
228 if (waitpid(pid, &status, 0) == -1) in common_test_pidfile_child()
272 char path[PATH_MAX], pid[32], tmpdir[PATH_MAX]; in test_pidfile_relative() local
289 if (read(fd, pid, sizeof(pid)) < 0) in test_pidfile_relative()
[all …]
/f-stack/freebsd/contrib/device-tree/scripts/
H A Drewrite-index.pl5 my $pid;
12 if (!defined $pid) {
13 …$pid = open2(*Rderef, *Wderef, "git cat-file --batch-check='deref-ok %(objectname)' --follow-symli…
71 kill $pid if $pid;
/f-stack/dpdk/app/test-pmd/
H A Dtestpmd.c1114 *pid = pi; in get_allowed_max_nb_rxq()
1164 *pid = pi; in get_allowed_max_nb_txq()
1212 *pid = pi; in get_allowed_max_nb_rxd()
1236 *pid = pi; in get_allowed_min_nb_rxd()
1298 *pid = pi; in get_allowed_max_nb_txd()
1322 *pid = pi; in get_allowed_min_nb_txd()
1379 *pid = pi; in get_allowed_max_nb_hairpinq()
2528 if (pid != pi && pid != (portid_t)RTE_PORT_ALL) in start_port()
2775 if (pid != pi && pid != (portid_t)RTE_PORT_ALL) in stop_port()
2858 if (pid != pi && pid != (portid_t)RTE_PORT_ALL) in close_port()
[all …]

123456789