/openbmc/openbmc/poky/bitbake/lib/bb/ui/ |
H A D | uihelper.py | 25 def removetid(pid, tid): argument 28 if self.pidmap[pid] == tid: 29 del self.pidmap[pid] 35 …s:%s %s" % (event._mc, event._package, event._task), 'starttime' : time.time(), 'pid' : event.pid } 37 …{ 'title' : "%s %s" % (event._package, event._task), 'starttime' : time.time(), 'pid' : event.pid } 39 self.pidmap[event.pid] = tid 43 removetid(event.pid, tid) 46 removetid(event.pid, tid) 50 removetid(event.pid, tid) 59 if event.pid > 0 and event.pid in self.pidmap: [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/ |
H A D | harness.c | 31 pid_t pid; in run_test() local 36 pid = fork(); in run_test() 37 if (pid == 0) { in run_test() 40 } else if (pid == -1) { in run_test() 45 setpgid(pid, pid); in run_test() 53 rc = waitpid(pid, &status, 0); in run_test() 62 kill(-pid, SIGKILL); in run_test() 66 kill(-pid, SIGTERM); in run_test() 74 kill(-pid, SIGTERM); in run_test()
|
/openbmc/linux/tools/perf/tests/ |
H A D | hists_link.c | 18 u32 pid; member 28 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, }, 30 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, }, 32 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, }, 34 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, }, 36 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, }, 42 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_RUN_COMMAND, }, 44 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, }, 46 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_PAGE_FAULT, }, 48 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_SYS_PERF_EVENT_OPEN, }, [all …]
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | setns-dcache.c | 36 static pid_t pid = -1; variable 40 if (pid > 0) { in f() 41 kill(pid, SIGTERM); in f() 69 pid = fork(); in main() 70 if (pid == -1) { in main() 74 if (pid == 0) { in main() 94 snprintf(buf, sizeof(buf), "/proc/%u/ns/net", pid); in main() 108 kill(pid, SIGTERM); in main() 109 pid = 0; in main()
|
H A D | setns-sysvipc.c | 35 static pid_t pid = -1; variable 39 if (pid > 0) { in f() 40 kill(pid, SIGTERM); in f() 68 pid = fork(); in main() 69 if (pid == -1) { in main() 73 if (pid == 0) { in main() 93 snprintf(buf, sizeof(buf), "/proc/%u/ns/ipc", pid); in main() 107 kill(pid, SIGTERM); in main() 108 pid = 0; in main()
|
/openbmc/linux/arch/um/drivers/ |
H A D | slirp_user.c | 40 int pid; in slirp_tramp() local 44 pid = run_helper(slirp_pre_exec, &pe_data, argv); in slirp_tramp() 46 return pid; in slirp_tramp() 52 int fds[2], pid, err; in slirp_open() local 63 pid = err; in slirp_open() 68 pri->pid = err; in slirp_open() 87 if (pri->pid<1) { in slirp_close() 94 if (kill(pri->pid, SIGHUP)<0) { in slirp_close() 96 "(%d)\n", pri->pid, errno); in slirp_close() 99 err = helper_wait(pri->pid); in slirp_close() [all …]
|
/openbmc/linux/tools/testing/selftests/core/ |
H A D | close_range_test.c | 115 pid_t pid; in TEST() local 134 pid = sys_clone3(&args, sizeof(args)); in TEST() 135 ASSERT_GE(pid, 0); in TEST() 137 if (pid == 0) { in TEST() 196 EXPECT_EQ(waitpid(pid, &status, 0), pid); in TEST() 204 pid_t pid; in TEST() local 223 pid = sys_clone3(&args, sizeof(args)); in TEST() 224 ASSERT_GE(pid, 0); in TEST() 226 if (pid == 0) { in TEST() 239 EXPECT_EQ(waitpid(pid, &status, 0), pid); in TEST() [all …]
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | vas-trace.h | 24 __field(int, pid) 34 __entry->pid = tsk->pid; 43 __entry->pid, __entry->vasid, __entry->cop, 59 __field(int, pid) 68 __entry->pid = tsk->pid; 76 __entry->pid, __entry->vasid, __entry->cop, 90 __field(int, pid) 97 __entry->pid = tsk->pid; 104 __entry->pid, __entry->vasid, __entry->winid,
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | registers.c | 14 int save_registers(int pid, struct uml_pt_regs *regs) in save_registers() argument 18 err = ptrace(PTRACE_GETREGS, pid, 0, regs->gp); in save_registers() 24 int restore_pid_registers(int pid, struct uml_pt_regs *regs) in restore_pid_registers() argument 28 err = ptrace(PTRACE_SETREGS, pid, 0, regs->gp); in restore_pid_registers() 39 int init_pid_registers(int pid) in init_pid_registers() argument 43 err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs); in init_pid_registers() 47 arch_init_registers(pid); in init_pid_registers() 48 get_fp_registers(pid, exec_fp_regs); in init_pid_registers()
|
/openbmc/linux/fs/ |
H A D | fcntl.c | 89 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type, in __f_setown() argument 93 if (force || !filp->f_owner.pid) { in __f_setown() 94 put_pid(filp->f_owner.pid); in __f_setown() 95 filp->f_owner.pid = get_pid(pid); in __f_setown() 98 if (pid) { in __f_setown() 112 struct pid *pid = NULL; in f_setown() local 127 pid = find_vpid(who); in f_setown() 128 if (!pid) in f_setown() 133 __f_setown(filp, pid, type, force); in f_setown() 147 pid_t pid = 0; in f_getown() local [all …]
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | mrelease_test.c | 92 pid_t pid; in main() local 114 pid = fork(); in main() 115 if (pid < 0) { in main() 122 if (pid == 0) { in main() 138 if (!kill(pid, SIGKILL)) in main() 139 waitpid(pid, NULL, 0); in main() 143 pidfd = syscall(__NR_pidfd_open, pid, 0); in main() 146 if (!kill(pid, SIGKILL)) in main() 147 waitpid(pid, NULL, 0); in main() 154 if (kill(pid, SIGKILL)) { in main() [all …]
|
/openbmc/linux/tools/testing/selftests/pid_namespace/ |
H A D | regression_enomem.c | 24 pid_t pid; in TEST() local 31 pid = fork(); in TEST() 32 ASSERT_GE(pid, 0); in TEST() 34 if (pid == 0) in TEST() 37 EXPECT_EQ(0, wait_for_pid(pid)); in TEST() 39 pid = fork(); in TEST() 40 ASSERT_LT(pid, 0); in TEST()
|
/openbmc/linux/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 49 static void join_newpid_thread(pid_t pid); 395 pid_t pid; in mfd_assert_fork_private_write() local 410 pid = fork(); in mfd_assert_fork_private_write() 411 if (pid == 0) { in mfd_assert_fork_private_write() 415 waitpid(pid, NULL, 0); in mfd_assert_fork_private_write() 770 pid_t pid; in spawn_thread() local 778 pid = clone(fn, stack + STACK_SIZE, SIGCHLD | flags, arg); in spawn_thread() 779 if (pid < 0) { in spawn_thread() 784 return pid; in spawn_thread() 787 static void join_thread(pid_t pid) in join_thread() argument [all …]
|
/openbmc/linux/include/net/ |
H A D | scm.h | 20 u32 pid; member 33 struct pid *pid; /* Skb credentials */ member 58 struct pid *pid, kuid_t uid, kgid_t gid) in scm_set_cred() argument 60 scm->pid = get_pid(pid); in scm_set_cred() 61 scm->creds.pid = pid_vnr(pid); in scm_set_cred() 68 put_pid(scm->pid); in scm_destroy_cred() 69 scm->pid = NULL; in scm_destroy_cred() 142 if (!scm->pid) in scm_pidfd_recv() 145 pidfd = pidfd_prepare(scm->pid, 0, &pidfd_file); in scm_pidfd_recv() 175 .pid = scm->creds.pid, in __scm_recv_common()
|
/openbmc/openbmc/poky/meta/recipes-extended/sysklogd/files/ |
H A D | sysklogd | 20 pidfile_syslogd=/var/run/syslogd.pid 68 pid=`cat $pidfile_syslogd` 72 if [ -z "$pid" ] 77 if [ ! -d /proc/$pid ] 82 cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1` 96 pid=$1 98 if [ -z "$pid" ]; then 105 kill -0 $pid 2> /dev/null || break 129 pid=`cat $pidfile_syslogd 2> /dev/null` 131 waitpid $pid
|
/openbmc/linux/include/linux/i3c/ |
H A D | device.h | 82 #define I3C_PID_MANUF_ID(pid) (((pid) & GENMASK_ULL(47, 33)) >> 33) argument 83 #define I3C_PID_RND_LOWER_32BITS(pid) (!!((pid) & BIT_ULL(32))) argument 84 #define I3C_PID_RND_VAL(pid) ((pid) & GENMASK_ULL(31, 0)) argument 85 #define I3C_PID_PART_ID(pid) (((pid) & GENMASK_ULL(31, 16)) >> 16) argument 86 #define I3C_PID_INSTANCE_ID(pid) (((pid) & GENMASK_ULL(15, 12)) >> 12) argument 87 #define I3C_PID_EXTRA_INFO(pid) ((pid) & GENMASK_ULL(11, 0)) argument 122 u64 pid; member
|
/openbmc/linux/scripts/ |
H A D | generate_initcall_order.pl | 158 my $pid = 0; 167 $pid = waitpid(-1, WNOHANG); 168 if ($pid > 0) { 169 if (!exists($jobs->{$pid})) { 173 my $fh = $jobs->{$pid}; 181 delete($jobs->{$pid}); 183 } while ($pid > 0); 195 my $pid = open(my $fh, '-|'); 197 if (!defined($pid)) { 199 } elsif ($pid) { [all …]
|
/openbmc/linux/drivers/android/ |
H A D | binder.c | 488 thread->pid == current->pid && !thread->process_todo) in binder_enqueue_thread_work_ilocked() 686 current->pid, nice, min_nice); in binder_set_nice() 690 binder_user_error("%d RLIMIT_NICE not set\n", current->pid); in binder_set_nice() 783 proc->pid, current->pid, node->debug_id, in binder_init_node_ilocked() 1124 proc->pid, new_ref->data.debug_id, new_ref->data.desc, in binder_get_ref_for_node_olocked() 1136 ref->proc->pid, ref->data.debug_id, ref->data.desc, in binder_cleanup_ref_olocked() 1164 ref->proc->pid, ref->data.debug_id, in binder_cleanup_ref_olocked() 1219 ref->proc->pid, ref->data.debug_id, in binder_dec_ref_olocked() 1230 ref->proc->pid, ref->data.debug_id, in binder_dec_ref_olocked() 1568 from_proc = t->from ? t->from->proc->pid : 0; in binder_txn_latency_free() [all …]
|
/openbmc/linux/tools/testing/selftests/sched/ |
H A D | cs_prctl_test.c | 112 static unsigned long get_cs_cookie(int pid) in get_cs_cookie() argument 117 ret = prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, pid, PIDTYPE_PID, in get_cs_cookie() 239 int pid; in main() local 294 pid = procs[pidx].cpid; in main() 296 validate(get_cs_cookie(0) == get_cs_cookie(pid)); in main() 299 printf("\n## Set a new cookie on entire process/TGID [%d]\n", pid); in main() 300 if (_prctl(PR_SCHED_CORE, PR_SCHED_CORE_CREATE, pid, PIDTYPE_TGID, 0) < 0) in main() 304 validate(get_cs_cookie(0) != get_cs_cookie(pid)); in main() 305 validate(get_cs_cookie(pid) != 0); in main() 306 validate(get_cs_cookie(pid) == get_cs_cookie(procs[pidx].thr_tids[0])); in main() [all …]
|
/openbmc/linux/tools/testing/selftests/clone3/ |
H A D | clone3_clear_sighand.c | 27 static int wait_for_pid(pid_t pid) in wait_for_pid() argument 32 ret = waitpid(pid, &status, 0); in wait_for_pid() 49 pid_t pid; in test_clone3_clear_sighand() local 59 pid = sys_clone3(&args, sizeof(args)); in test_clone3_clear_sighand() 60 if (pid > 0) in test_clone3_clear_sighand() 88 pid = sys_clone3(&args, sizeof(args)); in test_clone3_clear_sighand() 89 if (pid < 0) in test_clone3_clear_sighand() 93 if (pid == 0) { in test_clone3_clear_sighand() 111 ret = wait_for_pid(pid); in test_clone3_clear_sighand()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/openvpn/openvpn/ |
H A D | openvpn | 18 start-stop-daemon --start --quiet --pidfile /var/run/openvpn.$NAME.pid \ 20 --daemon --writepid /var/run/openvpn.$NAME.pid \ 58 for PIDFILE in `ls /var/run/openvpn.*.pid 2> /dev/null`; do 60 NAME=${NAME%%.pid} 65 if test -e /var/run/openvpn.$2.pid ; then 66 PIDFILE=`ls /var/run/openvpn.$2.pid 2> /dev/null` 68 NAME=${NAME%%.pid} 80 for PIDFILE in `ls /var/run/openvpn.*.pid 2> /dev/null`; do 82 NAME=${NAME%%.pid}
|
/openbmc/linux/tools/testing/selftests/powerpc/dexcr/ |
H A D | hashchk_test.c | 118 pid_t pid; in hashchk_exec_random_key_test() local 128 pid = fork(); in hashchk_exec_random_key_test() 129 if (pid == 0) { in hashchk_exec_random_key_test() 137 await_child_success(pid); in hashchk_exec_random_key_test() 157 pid_t pid; in hashchk_fork_share_key_test() local 166 pid = fork(); in hashchk_fork_share_key_test() 167 if (pid == 0) { in hashchk_fork_share_key_test() 173 await_child_success(pid); in hashchk_fork_share_key_test() 192 pid_t pid; in hashchk_clone_share_key_test() local 204 pid = clone(hashchk_clone_child_fn, child_stack + STACK_SIZE, in hashchk_clone_share_key_test() [all …]
|
/openbmc/linux/tools/perf/scripts/perl/ |
H A D | rwtop.pl | 136 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=> 138 my $comm = $reads{$pid}{comm} || ""; 139 my $total_reads = $reads{$pid}{total_reads} || 0; 140 my $bytes_requested = $reads{$pid}{bytes_requested} || 0; 141 my $bytes_read = $reads{$pid}{bytes_read} || 0; 143 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm, 160 foreach my $pid (sort { ($writes{$b}{bytes_written} || 0) <=> 162 my $comm = $writes{$pid}{comm} || ""; 163 my $total_writes = $writes{$pid}{total_writes} || 0; 164 my $bytes_written = $writes{$pid}{bytes_written} || 0; [all …]
|
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | timerlat_u.c | 145 pid_t pid; in timerlat_u_dispatcher() local 158 pid = fork(); in timerlat_u_dispatcher() 161 if (!pid) { in timerlat_u_dispatcher() 176 if (pid == -1) { in timerlat_u_dispatcher() 183 procs[i] = pid; in timerlat_u_dispatcher() 188 pid = waitpid(-1, &wstatus, WNOHANG); in timerlat_u_dispatcher() 189 if (pid != 0) { in timerlat_u_dispatcher() 191 if (procs[i] == pid) { in timerlat_u_dispatcher() 207 pid = waitpid(-1, &wstatus, 0); in timerlat_u_dispatcher() 208 if (pid == -1) { in timerlat_u_dispatcher() [all …]
|
/openbmc/linux/fs/proc/ |
H A D | array.c | 149 struct pid *pid, struct task_struct *p) in task_state() argument 186 seq_put_decimal_ull(m, "\nPid:\t", pid_nr_ns(pid, ns)); in task_state() 210 for (g = ns->level; g <= pid->level; g++) in task_state() 211 seq_put_decimal_ull(m, "\t", task_tgid_nr_ns(p, pid->numbers[g].ns)); in task_state() 213 for (g = ns->level; g <= pid->level; g++) in task_state() 214 seq_put_decimal_ull(m, "\t", task_pid_nr_ns(p, pid->numbers[g].ns)); in task_state() 216 for (g = ns->level; g <= pid->level; g++) in task_state() 217 seq_put_decimal_ull(m, "\t", task_pgrp_nr_ns(p, pid->numbers[g].ns)); in task_state() 219 for (g = ns->level; g <= pid->level; g++) in task_state() 220 seq_put_decimal_ull(m, "\t", task_session_nr_ns(p, pid->numbers[g].ns)); in task_state() [all …]
|