/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | mmio_warning_test.c | 104 int pid = fork(); in main() local 106 if (pid < 0) in main() 108 if (pid == 0) { in main() 112 while (waitpid(pid, &status, __WALL) != pid) in main()
|
/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/drivers/misc/bcm-vk/ |
H A D | bcm_vk_msg.c | 210 static struct bcm_vk_ctx *bcm_vk_get_ctx(struct bcm_vk *vk, const pid_t pid) in bcm_vk_get_ctx() argument 214 u32 hash_idx = hash_32(pid, VK_PID_HT_SHIFT_BIT); in bcm_vk_get_ctx() 242 ctx->pid = pid; in bcm_vk_get_ctx() 295 pid_t pid; in bcm_vk_free_ctx() local 304 pid = ctx->pid; in bcm_vk_free_ctx() 318 if (entry->pid == pid) in bcm_vk_free_ctx() 686 const pid_t pid, const u32 q_num) in bcm_vk_send_shutdown_msg() argument 714 entry->to_v_msg[0].arg = pid; in bcm_vk_send_shutdown_msg() 720 get_q_num(&entry->to_v_msg[0]), pid); in bcm_vk_send_shutdown_msg() 727 static int bcm_vk_handle_last_sess(struct bcm_vk *vk, const pid_t pid, in bcm_vk_handle_last_sess() argument [all …]
|
/openbmc/linux/tools/lib/perf/include/perf/ |
H A D | event.h | 15 __u32 pid, tid; member 24 __u32 pid, tid; member 49 __u32 pid, tid; member 55 __u32 pid, tid; member 62 __u32 pid, ppid; member 85 __u32 pid, tid; member 294 pid_t pid; member 350 __u32 pid; member 369 __u32 pid; member 379 __u64 pid; member
|
/openbmc/linux/tools/perf/util/ |
H A D | synthetic-events.c | 56 .pid = -1, in perf_tool__process_synth_event() 72 static int perf_event__get_comm_ids(pid_t pid, pid_t tid, char *comm, size_t len, in perf_event__get_comm_ids() argument 84 if (pid) in perf_event__get_comm_ids() 85 snprintf(bf, sizeof(bf), "/proc/%d/task/%d/status", pid, tid); in perf_event__get_comm_ids() 153 static int perf_event__prepare_comm(union perf_event *event, pid_t pid, pid_t tid, in perf_event__prepare_comm() argument 164 if (perf_event__get_comm_ids(pid, tid, event->comm.comm, in perf_event__prepare_comm() 170 *tgid = machine->pid; in perf_event__prepare_comm() 176 event->comm.pid = *tgid; in perf_event__prepare_comm() 191 union perf_event *event, pid_t pid, in perf_event__synthesize_comm() argument 198 if (perf_event__prepare_comm(event, 0, pid, machine, &tgid, &ppid, in perf_event__synthesize_comm() [all …]
|
H A D | machine.c | 98 machine->pid) < 0) in machine__set_mmap_name() 104 static void thread__set_guest_comm(struct thread *thread, pid_t pid) in thread__set_guest_comm() argument 108 snprintf(comm, sizeof(comm), "[guest/%d]", pid); in thread__set_guest_comm() 112 int machine__init(struct machine *machine, const char *root_dir, pid_t pid) in machine__init() argument 129 machine->pid = pid; in machine__init() 144 if (pid != HOST_KERNEL_ID) { in machine__init() 146 pid); in machine__init() 151 thread__set_guest_comm(thread, pid); in machine__init() 286 struct machine *machines__add(struct machines *machines, pid_t pid, in machines__add() argument 297 if (machine__init(machine, root_dir, pid) != 0) { in machines__add() [all …]
|
/openbmc/linux/tools/perf/ |
H A D | builtin-daemon.c | 78 int pid; member 128 session->pid = -1; in daemon__add_session() 340 session->pid = fork(); in daemon_session__run() 341 if (session->pid < 0) in daemon_session__run() 343 if (session->pid > 0) { in daemon_session__run() 345 session->name, session->pid, session->run); in daemon_session__run() 400 pid_t pid; in handle_signalfd() local 415 if (session->pid == -1) in handle_signalfd() 418 pid = waitpid(session->pid, &status, WNOHANG); in handle_signalfd() 419 if (pid <= 0) in handle_signalfd() [all …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | ubd_user.c | 30 int pid, fds[2], err; in start_io_thread() local 50 pid = clone(io_thread, (void *) sp, CLONE_FILES | CLONE_VM, NULL); in start_io_thread() 51 if(pid < 0){ in start_io_thread() 57 return(pid); in start_io_thread()
|
/openbmc/phosphor-bmc-code-mgmt/bmc/ |
H A D | sync_manager.cpp | 27 pid_t pid = fork(); in processEntry() local 29 if (pid == 0) in processEntry() 73 else if (pid > 0) in processEntry() 75 waitpid(pid, &status, 0); in processEntry()
|
/openbmc/linux/drivers/macintosh/ |
H A D | windfarm_pm81.c | 187 struct wf_pid_state pid; member 253 struct wf_cpu_pid_state pid; member 314 wf_pid_init(&wf_smu_sys_fans->pid, &pid_param); in wf_smu_create_sys_fans() 352 if (temp > (st->pid.param.itarget + 0x50000)) in wf_smu_sys_fans_tick() 355 new_setpoint = wf_pid_run(&st->pid, temp); in wf_smu_sys_fans_tick() 363 cputarget = wf_smu_cpu_fans ? wf_smu_cpu_fans->pid.target : 0; in wf_smu_sys_fans_tick() 366 scaled = max(scaled, st->pid.param.min); in wf_smu_sys_fans_tick() 367 scaled = min(scaled, st->pid.param.max); in wf_smu_sys_fans_tick() 454 wf_cpu_pid_init(&wf_smu_cpu_fans->pid, &pid_param); in wf_smu_create_cpu_fans() 508 if (temp > st->pid.param.tmax) in wf_smu_cpu_fans_tick() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/signal/ |
H A D | sig_sc_double_restart.c | 84 pid_t pid; in test_restart() local 92 pid = fork(); in test_restart() 93 if (pid == -1) { in test_restart() 98 if (pid == 0) { /* Child reads from pipe */ in test_restart() 147 kill(pid, SIGUSR1); in test_restart()
|
/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/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/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/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/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/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/bpf/progs/ |
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()
|
H A D | test_d_path.c | 25 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local 31 if (pid != my_pid) in BPF_PROG() 46 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local 52 if (pid != my_pid) in BPF_PROG()
|
H A D | test_skmsg_load_helpers.c | 32 __u32 pid, tpid; in prog_msg_verdict() local 35 pid = bpf_get_current_pid_tgid() >> 32; in prog_msg_verdict() 39 *sk_stg = pid; in prog_msg_verdict() 41 if (pid != tpid) in prog_msg_verdict()
|
/openbmc/linux/tools/testing/selftests/clone3/ |
H A D | clone3_selftests.h | 58 pid_t pid; in test_clone3_supported() local 66 pid = sys_clone3(&args, sizeof(args)); in test_clone3_supported() 67 if (!pid) in test_clone3_supported() 70 if (pid > 0) { in test_clone3_supported()
|
/openbmc/openbmc/meta-security/meta-tpm/recipes-tpm2/tpm2-abrmd/files/ |
H A D | tpm2-abrmd-init.sh | 36 …start-stop-daemon --start --quiet --oknodo --background --pidfile /var/run/${NAME}.pid --user ${US… 39 [ "$RETVAL" = 0 ] && pidof $DAEMON > /var/run/${NAME}.pid 46 …start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/${NAME}.pid --user ${USER} --exec ${D… 49 rm -f /var/run/${NAME}.pid
|
/openbmc/linux/drivers/net/mctp/ |
H A D | mctp-i3c.c | 65 u64 pid; member 89 u64 pid; member 122 put_unaligned_be48(mi->pid, ihdr->source); in mctp_i3c_read() 123 put_unaligned_be48(mi->mbus->pid, ihdr->dest); in mctp_i3c_read() 158 put_unaligned_be48(mi->pid, cb->haddr); in mctp_i3c_read() 215 mi->pid = info.pid; in mctp_i3c_setup() 341 mctp_i3c_lookup(struct mctp_i3c_bus *mbus, u64 pid) in mctp_i3c_lookup() argument 347 if (mi->pid == pid) { in mctp_i3c_lookup() 366 u64 pid; in mctp_i3c_xmit() local 373 pid = get_unaligned_be48(ihdr->dest); in mctp_i3c_xmit() [all …]
|