/openbmc/openpower-proc-control/procedures/phal/ |
H A D | import_devtree.cpp | 44 pid_t pid = fork(); in importDevtree() local 45 if (pid == 0) in importDevtree() 60 else if (pid > 0) in importDevtree() 62 waitpid(pid, &status, 0); in importDevtree()
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | proc-uptime-002.c | 35 static inline int sys_sched_getaffinity(pid_t pid, unsigned int len, unsigned long *m) in sys_sched_getaffinity() argument 37 return syscall(SYS_sched_getaffinity, pid, len, m); in sys_sched_getaffinity() 40 static inline int sys_sched_setaffinity(pid_t pid, unsigned int len, unsigned long *m) in sys_sched_setaffinity() argument 42 return syscall(SYS_sched_setaffinity, pid, len, m); in sys_sched_setaffinity()
|
/openbmc/linux/arch/um/drivers/ |
H A D | xterm_kern.c | 17 int pid; member 26 fd = os_rcv_fd(xterm->fd, &xterm->pid); in xterm_interrupt() 49 .pid = -1, in xterm_fd() 71 *pid_out = data->pid; in xterm_fd()
|
/openbmc/qemu/gdbstub/ |
H A D | user.c | 465 void gdbserver_fork_end(CPUState *cpu, pid_t pid) in gdbserver_fork_end() argument 474 if (pid == -1) { in gdbserver_fork_end() 484 if (pid == 0) { in gdbserver_fork_end() 490 if (pid == 0) { in gdbserver_fork_end() 494 g_assert(gdbserver_state.processes[0].pid == in gdbserver_fork_end() 502 gdbserver_user_state.fork_peer_pid = pid; in gdbserver_fork_end() 503 gdbserver_user_state.fork_peer_tid = pid; in gdbserver_fork_end() 511 pid, pid, (int)getpid(), qemu_get_thread_id()); in gdbserver_fork_end() 582 if (pid == 0) { in gdbserver_fork_end() 607 bool gdb_handle_detach_user(uint32_t pid) in gdb_handle_detach_user() argument [all …]
|
/openbmc/linux/arch/um/include/shared/ |
H A D | os.h | 195 extern unsigned long os_process_pc(int pid); 196 extern int os_process_parent(int pid); 197 extern void os_alarm_process(int pid); 198 extern void os_stop_process(int pid); 199 extern void os_kill_process(int pid, int reap_child); 200 extern void os_kill_ptraced_process(int pid, int reap_child); 222 extern int helper_wait(int pid); 286 extern int is_skas_winch(int pid, int fd, void *data); 288 extern int copy_context_skas0(unsigned long stack, int pid); 327 extern int os_arch_prctl(int pid, int option, unsigned long *arg2);
|
/openbmc/linux/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_mux.c | 34 *vidtv_mux_get_pid_ctx(struct vidtv_mux *m, u16 pid) in vidtv_mux_get_pid_ctx() argument 38 hash_for_each_possible(m->pid_ctx, ctx, h, pid) in vidtv_mux_get_pid_ctx() 39 if (ctx->pid == pid) in vidtv_mux_get_pid_ctx() 49 ctx = vidtv_mux_get_pid_ctx(m, pid); in vidtv_mux_create_pid_ctx_once() 57 ctx->pid = pid; in vidtv_mux_create_pid_ctx_once() 59 hash_add(m->pid_ctx, &ctx->h, pid); in vidtv_mux_create_pid_ctx_once() 79 u16 pid; in vidtv_mux_pid_ctx_init() local 103 pid = vidtv_psi_get_pat_program_pid(p); in vidtv_mux_pid_ctx_init() 104 vidtv_mux_create_pid_ctx_once(m, pid); in vidtv_mux_pid_ctx_init() 192 pmt_args.pid = pmt_pid; in vidtv_mux_push_si() [all …]
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | e500.c | 161 int as, int pid, int pr) in kvmppc_e500_id_table_reset_one() argument 166 BUG_ON(pid >= NUM_TIDS); in kvmppc_e500_id_table_reset_one() 169 idt->id[as][pid][pr].val = 0; in kvmppc_e500_id_table_reset_one() 170 idt->id[as][pid][pr].pentry = NULL; in kvmppc_e500_id_table_reset_one() 221 void kvmppc_set_pid(struct kvm_vcpu *vcpu, u32 pid) in kvmppc_set_pid() argument 225 if (vcpu->arch.pid != pid) { in kvmppc_set_pid() 226 vcpu_e500->pid[0] = vcpu->arch.pid = pid; in kvmppc_set_pid() 237 int pid; in kvmppc_e500_tlbil_one() local 257 pid = local_sid_lookup(&idt->id[ts][tid][pr]); in kvmppc_e500_tlbil_one() 258 if (pid <= 0) { in kvmppc_e500_tlbil_one() [all …]
|
/openbmc/linux/drivers/macintosh/ |
H A D | windfarm_pm91.c | 104 struct wf_cpu_pid_state pid; member 119 struct wf_pid_state pid; member 132 struct wf_pid_state pid; member 254 if (temp > st->pid.param.tmax) in wf_smu_cpu_fans_tick() 316 wf_pid_init(&wf_smu_drive_fans->pid, ¶m); in wf_smu_create_drive_fans() 338 st->ticks = st->pid.param.interval; in wf_smu_drive_fans_tick() 351 if (temp > (st->pid.param.itarget + 0x50000)) in wf_smu_drive_fans_tick() 354 new_setpoint = wf_pid_run(&st->pid, temp); in wf_smu_drive_fans_tick() 397 wf_pid_init(&wf_smu_slots_fans->pid, ¶m); in wf_smu_create_slots_fans() 419 st->ticks = st->pid.param.interval; in wf_smu_slots_fans_tick() [all …]
|
/openbmc/linux/tools/testing/selftests/pidfd/ |
H A D | pidfd.h | 71 static inline int wait_for_pid(pid_t pid) in wait_for_pid() argument 76 ret = waitpid(pid, &status, 0); in wait_for_pid() 96 static inline int sys_pidfd_open(pid_t pid, unsigned int flags) in sys_pidfd_open() argument 98 return syscall(__NR_pidfd_open, pid, flags); in sys_pidfd_open()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_uprobe_autoattach.c | 94 int pid = bpf_get_current_pid_tgid() >> 32; in BPF_UPROBE() local 97 if (test_pid != pid) in BPF_UPROBE() 107 int pid = bpf_get_current_pid_tgid() >> 32; in BPF_URETPROBE() local 110 if (test_pid != pid) in BPF_URETPROBE()
|
H A D | fexit_sleep.c | 10 int pid = 0; variable 17 if (bpf_get_current_pid_tgid() >> 32 != pid) in nanosleep_fentry() 27 if (bpf_get_current_pid_tgid() >> 32 != pid) in nanosleep_fexit()
|
H A D | task_kfunc_success.c | 12 int err, pid; variable 35 return pid == cur_pid; in is_test_kfunc_task() 235 acquired = bpf_task_from_pid(p->pid); in lookup_compare_pid() 241 if (acquired->pid != p->pid) in lookup_compare_pid() 266 static int is_pid_lookup_valid(s32 pid) in is_pid_lookup_valid() argument 270 acquired = bpf_task_from_pid(pid); in is_pid_lookup_valid()
|
/openbmc/linux/tools/testing/selftests/powerpc/pmu/ |
H A D | event.c | 17 int perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, in perf_event_open() argument 20 return syscall(__NR_perf_event_open, attr, pid, cpu, in perf_event_open() 69 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd) in event_open_with_options() argument 71 e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0); in event_open_with_options() 85 int event_open_with_pid(struct event *e, pid_t pid) in event_open_with_pid() argument 87 return event_open_with_options(e, pid, PERF_NO_CPU, PERF_NO_GROUP); in event_open_with_pid()
|
/openbmc/linux/drivers/pinctrl/mvebu/ |
H A D | pinctrl-orion.c | 31 unsigned pid, unsigned long *config) in orion_mpp_ctrl_get() argument 33 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_get() 35 if (pid < 16) { in orion_mpp_ctrl_get() 36 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_get() 47 unsigned pid, unsigned long config) in orion_mpp_ctrl_set() argument 49 unsigned shift = (pid % MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_set() 51 if (pid < 16) { in orion_mpp_ctrl_set() 52 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in orion_mpp_ctrl_set()
|
/openbmc/linux/mm/ |
H A D | process_vm_access.c | 150 static ssize_t process_vm_rw_core(pid_t pid, struct iov_iter *iter, in process_vm_rw_core() argument 196 task = find_get_task_by_vpid(pid); in process_vm_rw_core() 253 static ssize_t process_vm_rw(pid_t pid, in process_vm_rw() argument 283 rc = process_vm_rw_core(pid, &iter, iov_r, riovcnt, flags, vm_write); in process_vm_rw() 291 SYSCALL_DEFINE6(process_vm_readv, pid_t, pid, const struct iovec __user *, lvec, in SYSCALL_DEFINE6() argument 295 return process_vm_rw(pid, lvec, liovcnt, rvec, riovcnt, flags, 0); in SYSCALL_DEFINE6() 298 SYSCALL_DEFINE6(process_vm_writev, pid_t, pid, in SYSCALL_DEFINE6() argument 303 return process_vm_rw(pid, lvec, liovcnt, rvec, riovcnt, flags, 1); in SYSCALL_DEFINE6()
|
/openbmc/linux/tools/lib/perf/Documentation/ |
H A D | libperf-sampling.txt | 23 cpu 0, pid 0, tid 0, ip ffffffffad06c4e6, period 1 24 cpu 0, pid 4465, tid 4469, ip ffffffffad118748, period 18322959 25 cpu 0, pid 0, tid 0, ip ffffffffad115722, period 33544846 26 cpu 0, pid 4465, tid 4470, ip 7f84fe0cdad6, period 23687474 27 cpu 0, pid 0, tid 0, ip ffffffffad9e0349, period 34255790 28 cpu 0, pid 4465, tid 4469, ip ffffffffad136581, period 38664069 29 cpu 0, pid 0, tid 0, ip ffffffffad9e55e2, period 21922384 30 cpu 0, pid 4465, tid 4470, ip 7f84fe0ebebf, period 17655175 192 85 int cpu, pid, tid; 202 95 pid = u.val32[0]; [all …]
|
/openbmc/linux/drivers/misc/lkdtm/ |
H A D | bugs.c | 145 pid_t pid = task_pid_nr(current); in lkdtm_REPORT_STACK() local 147 if (pid != stack_pid) { in lkdtm_REPORT_STACK() 148 pr_info("Starting stack offset tracking for pid %d\n", pid); in lkdtm_REPORT_STACK() 149 stack_pid = pid; in lkdtm_REPORT_STACK() 163 pid_t pid = task_pid_nr(current); in __lkdtm_REPORT_STACK_CANARY() local 186 init_offset, pid); in __lkdtm_REPORT_STACK_CANARY() 200 stack_canary_pid = pid; in __lkdtm_REPORT_STACK_CANARY() 204 } else if (pid == stack_canary_pid) { in __lkdtm_REPORT_STACK_CANARY() 205 pr_warn("ERROR: saw pid %d again -- please use a new pid\n", pid); in __lkdtm_REPORT_STACK_CANARY() 215 stack_canary_pid, pid, current_offset); in __lkdtm_REPORT_STACK_CANARY() [all …]
|
/openbmc/linux/tools/testing/selftests/filesystems/ |
H A D | devpts_pts.c | 62 static int wait_for_pid(pid_t pid) in wait_for_pid() argument 67 ret = waitpid(pid, &status, 0); in wait_for_pid() 73 if (ret != pid) in wait_for_pid() 138 pid_t pid = fork(); in do_tiocgptpeer() local 139 if (pid < 0) in do_tiocgptpeer() 142 if (pid == 0) { in do_tiocgptpeer() 172 ret = wait_for_pid(pid); in do_tiocgptpeer()
|
/openbmc/linux/tools/lib/subcmd/ |
H A D | run-command.c | 81 cmd->pid = fork(); in start_command() 82 if (!cmd->pid) { in start_command() 133 if (cmd->pid < 0) { in start_command() 166 static int wait_or_whine(pid_t pid) in wait_or_whine() argument 172 pid_t waiting = waitpid(pid, &status, 0); in wait_or_whine() 181 if (waiting != pid) in wait_or_whine() 202 return wait_or_whine(cmd->pid); in finish_command()
|
/openbmc/u-boot/include/linux/soc/ti/ |
H A D | ti_sci_protocol.h | 245 int (*proc_request)(const struct ti_sci_handle *handle, u8 pid); 246 int (*proc_release)(const struct ti_sci_handle *handle, u8 pid); 247 int (*proc_handover)(const struct ti_sci_handle *handle, u8 pid, 249 int (*set_proc_boot_cfg)(const struct ti_sci_handle *handle, u8 pid, 251 int (*set_proc_boot_ctrl)(const struct ti_sci_handle *handle, u8 pid, 253 int (*proc_auth_boot_image)(const struct ti_sci_handle *handle, u8 pid, 255 int (*get_proc_boot_status)(const struct ti_sci_handle *handle, u8 pid,
|
/openbmc/qemu/tests/qtest/ |
H A D | tpm-util.c | 134 gboolean tpm_util_swtpm_start(const char *path, GPid *pid, in tpm_util_swtpm_start() argument 155 NULL, NULL, pid, error); in tpm_util_swtpm_start() 164 void tpm_util_swtpm_kill(GPid pid) in tpm_util_swtpm_kill() argument 168 if (!pid) { in tpm_util_swtpm_kill() 172 g_spawn_close_pid(pid); in tpm_util_swtpm_kill() 174 n = kill(pid, 0); in tpm_util_swtpm_kill() 179 kill(pid, SIGKILL); in tpm_util_swtpm_kill()
|
/openbmc/linux/tools/testing/selftests/arm64/abi/ |
H A D | ptrace.c | 177 pid_t pid; in do_parent() local 185 pid = wait(&status); in do_parent() 186 if (pid == -1) { in do_parent() 195 if (pid != child) in do_parent() 206 if (ptrace(PTRACE_GETSIGINFO, pid, NULL, &si)) { in do_parent() 221 si.si_pid == pid) in do_parent() 225 if (ptrace(PTRACE_CONT, pid, NULL, sig)) { in do_parent()
|
/openbmc/qemu/ |
H A D | os-posix.c | 215 pid_t pid; in os_daemonize() local 222 pid = fork(); in os_daemonize() 223 if (pid > 0) { in os_daemonize() 237 } else if (pid < 0) { in os_daemonize() 246 pid = fork(); in os_daemonize() 247 if (pid > 0) { in os_daemonize() 249 } else if (pid < 0) { in os_daemonize()
|
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/ |
H A D | parsing.py | 133 def find_parent_id_for(pid): argument 134 if pid == 0: 313 pid *= 1000 315 if pid in processMap: 374 pid = opid 377 if pid in processMap: 380 pid += 1 642 ppid = kernel.pid 686 parent_map[pid] = ppid 711 pid = int (lines[0]) [all …]
|
/openbmc/linux/tools/testing/selftests/firmware/ |
H A D | fw_namespace.c | 81 pid_t pid; in test_fw_in_ns() local 84 pid = waitpid(child, &status, 0); in test_fw_in_ns() 85 if (pid == -1) { in test_fw_in_ns() 89 if (pid != child) { in test_fw_in_ns() 91 child, pid); in test_fw_in_ns()
|