Home
last modified time | relevance | path

Searched refs:pid (Results 251 – 275 of 2199) sorted by relevance

1...<<11121314151617181920>>...88

/openbmc/linux/tools/testing/selftests/powerpc/tm/
H A Dtm-poison.c28 int cpu, pid; in tm_poison_test() local
46 pid = fork(); in tm_poison_test()
47 if (!pid) { in tm_poison_test()
172 kill(pid, SIGKILL); in tm_poison_test()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtask_under_cgroup.c15 pid_t pid; in test_task_under_cgroup() local
37 pid = fork(); in test_task_under_cgroup()
38 if (pid == 0) in test_task_under_cgroup()
41 ret = (pid == -1); in test_task_under_cgroup()
/openbmc/linux/tools/testing/selftests/pidfd/
H A Dpidfd_getfd_test.c124 pid_t pid; in FIXTURE() local
143 self->pid = fork(); in FIXTURE_SETUP()
144 ASSERT_GE(self->pid, 0); in FIXTURE_SETUP()
146 if (self->pid == 0) { in FIXTURE_SETUP()
155 self->pidfd = sys_pidfd_open(self->pid, 0); in FIXTURE_SETUP()
171 EXPECT_EQ(0, wait_for_pid(self->pid)); in FIXTURE_TEARDOWN()
207 ret = sys_kcmp(getpid(), self->pid, KCMP_FILE, fd, self->remote_fd); in TEST_F()
H A Dpidfd_fdinfo_test.c88 pid_t pid; member
109 ret.pid = __clone2(fn, ret.stack, CHILD_STACK_SIZE, flags, args, &ret.fd); in clone_newns()
111 ret.pid = clone(fn, ret.stack + CHILD_STACK_SIZE, flags, args, &ret.fd); in clone_newns()
114 if (ret.pid < 0) { in clone_newns()
120 ksft_print_msg("New child: %d, fd: %d\n", ret.pid, ret.fd); in clone_newns()
134 r = wait_for_pid(child->pid); in child_join()
139 error_set(err, r, "child %d reported: %d", child->pid, r); in child_join()
273 verify_fdinfo(a.fd, &err, "NSpid:", 6, "\t%d\t%d\n", a.pid, 1); in test_pidfd_fdinfo_nspid()
274 verify_fdinfo(b.fd, &err, "NSpid:", 6, "\t%d\t%d\n", b.pid, 1); in test_pidfd_fdinfo_nspid()
/openbmc/linux/arch/um/os-Linux/skas/
H A Dmem.c23 extern void wait_stub_done(int pid);
56 int err, pid = mm_idp->u.pid; in do_syscall_stub() local
58 n = ptrace_setregs(pid, syscall_regs); in do_syscall_stub()
67 err = ptrace(PTRACE_CONT, pid, 0, 0); in do_syscall_stub()
69 panic("Failed to continue stub, pid = %d, errno = %d\n", pid, in do_syscall_stub()
72 wait_stub_done(pid); in do_syscall_stub()
/openbmc/linux/sound/firewire/oxfw/
H A Doxfw-command.c11 unsigned int pid, u8 *format, unsigned int len) in avc_stream_set_format() argument
27 buf[7] = 0xff & pid; /* Plug ID */ in avc_stream_set_format()
53 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format() argument
71 buf[7] = 0xff & pid; /* Plug ID */ in avc_stream_get_format()
113 unsigned short pid) in avc_general_inquiry_sig_fmt() argument
136 buf[3] = 0xff & pid; /* plug id */ in avc_general_inquiry_sig_fmt()
/openbmc/linux/tools/perf/bench/
H A Dsched-pipe.c92 pid_t pid, retpid __maybe_unused; in bench_sched_pipe() local
133 pid = fork(); in bench_sched_pipe()
134 assert(pid >= 0); in bench_sched_pipe()
136 if (!pid) { in bench_sched_pipe()
143 retpid = waitpid(pid, &wait_stat, 0); in bench_sched_pipe()
144 assert((retpid == pid) && WIFEXITED(wait_stat)); in bench_sched_pipe()
/openbmc/linux/tools/perf/util/
H A Dbpf_lock_contention.c107 u32 pid; in lock_contention_prepare() local
114 pid = perf_thread_map__pid(evlist->core.threads, i); in lock_contention_prepare()
115 bpf_map_update_elem(fd, &pid, &val, BPF_ANY); in lock_contention_prepare()
119 if (target__none(target) && evlist->workload.pid > 0) { in lock_contention_prepare()
120 u32 pid = evlist->workload.pid; in lock_contention_prepare() local
125 bpf_map_update_elem(fd, &pid, &val, BPF_ANY); in lock_contention_prepare()
186 int pid = key->pid; in lock_contention_get_name() local
190 if (pid) { in lock_contention_get_name()
191 struct thread *t = __machine__findnew_thread(machine, /*pid=*/-1, pid); in lock_contention_get_name()
195 if (!bpf_map_lookup_elem(task_fd, &pid, &task) && in lock_contention_get_name()
[all …]
/openbmc/linux/tools/testing/selftests/cgroup/
H A Dcgroup_util.h44 extern int cg_enter(const char *cgroup, int pid);
54 extern int set_oom_adj_score(int pid, int score);
58 extern ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size);
59 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
61 extern int clone_reap(pid_t pid, int options);
/openbmc/linux/Documentation/block/
H A Dioprio.rst46 # ionice -c<class> -n<level> -p<pid>
48 If pid isn't given, the current process is assumed. IO priority settings
55 For a running process, you can give the pid instead::
59 will change pid 100 to run at the realtime scheduling class, at priority 2.
120 int c, pid = 0;
133 pid = strtol(optarg, NULL, 10);
154 if (!pid && argv[optind])
155 pid = strtol(argv[optind], NULL, 10);
157 ioprio = ioprio_get(IOPRIO_WHO_PROCESS, pid);
159 printf("pid=%d, %d\n", pid, ioprio);
[all …]
/openbmc/linux/arch/um/drivers/
H A Dubd_user.c30 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/
H A Dsync_manager.cpp27 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/tools/testing/selftests/uevent/
H A Duevent_filtering.c54 int wait_for_pid(pid_t pid) in wait_for_pid() argument
59 ret = waitpid(pid, &status, 0); in wait_for_pid()
67 if (ret != pid) in wait_for_pid()
245 pid_t pid; in do_test() local
259 pid = fork(); in do_test()
260 if (pid < 0) { in do_test()
265 if (pid == 0) { in do_test()
326 ret = kill(pid, SIGTERM); /* success */ in do_test()
328 ret = kill(pid, SIGUSR1); /* error */ in do_test()
333 ret = wait_for_pid(pid); in do_test()
/openbmc/qemu/gdbstub/
H A Dgdbstub.c220 if (!pid) { in gdb_get_process()
226 if (gdbserver_state.processes[i].pid == pid) { in gdb_get_process()
341 if (pid && process->pid != pid) { in gdb_get_cpu()
695 if (pid) { in read_thread_id()
696 *pid = p; in read_thread_id()
1110 pid = gdb_get_cmd_param(params, 1)->thread_id.pid; in handle_set_thread()
2473 int pid; in gdb_create_default_process() local
2480 pid = s->processes[s->process_num - 1].pid; in gdb_create_default_process()
2482 pid = 0; in gdb_create_default_process()
2486 pid++; in gdb_create_default_process()
[all …]
/openbmc/linux/tools/testing/selftests/clone3/
H A Dclone3_selftests.h58 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/linux/tools/testing/selftests/kvm/x86_64/
H A Dmmio_warning_test.c104 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/tools/testing/selftests/net/
H A Dipv6_flowlabel_mgr.c77 pid_t pid; in run_tests() local
131 pid = fork(); in run_tests()
132 if (pid == -1) in run_tests()
134 if (!pid) { in run_tests()
152 pid = fork(); in run_tests()
153 if (pid == -1) in run_tests()
155 if (!pid) { in run_tests()
/openbmc/linux/tools/testing/selftests/x86/
H A Dtest_syscall_vdso.c342 pid_t pid; in ptrace_me() local
345 pid = fork(); in ptrace_me()
346 if (pid < 0) in ptrace_me()
348 if (pid == 0) { in ptrace_me()
359 pid = waitpid(-1, &status, __WALL); in ptrace_me()
364 if (pid <= 0 || !WIFSTOPPED(status)) /* paranoia */ in ptrace_me()
372 ptrace(PTRACE_SYSCALL, pid, 0L, 0L /*sig*/); in ptrace_me()
H A Dlam.c170 pid_t pid; in get_default_tag_bits() local
174 pid = fork(); in get_default_tag_bits()
175 if (pid < 0) { in get_default_tag_bits()
655 pid_t pid; in fork_test() local
657 pid = fork(); in fork_test()
676 pid_t pid; in handle_execve() local
678 pid = fork(); in handle_execve()
712 pid_t pid; in handle_inheritance() local
718 pid = fork(); in handle_inheritance()
755 pid_t pid; in handle_thread() local
[all …]
/openbmc/openbmc/poky/bitbake/bin/
H A Dtoaster54 if [ -f ${BUILDDIR}/.toastermain.pid ] ; then
59 for pidfile in ${BUILDDIR}/.toastermain.pid ${BUILDDIR}/.runbuilds.pid; do
61 pid=`cat ${pidfile}`
62 while kill -0 $pid 2>/dev/null; do
63 kill -SIGTERM $pid 2>/dev/null
88 & echo $! >${BUILDDIR}/.toastermain.pid
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_skmsg_load_helpers.c32 __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()
H A Dtest_d_path.c25 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()
/openbmc/openbmc/meta-security/meta-tpm/recipes-tpm2/tpm2-abrmd/files/
H A Dtpm2-abrmd-init.sh36 …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/kernel/
H A Dtaskstats.c50 pid_t pid; member
131 rc = genlmsg_unicast(&init_net, skb_cur, s->pid); in send_cpu_listeners()
205 tsk = find_get_task_by_vpid(pid); in fill_stats_for_pid()
320 s->pid = pid; in add_del_listener()
326 if (s2->pid == pid && s2->valid) in add_del_listener()
344 if (s->pid == pid) { in add_del_listener()
390 if (nla_put(skb, type, sizeof(pid), &pid) < 0) { in mk_reply()
505 u32 pid; in cmd_attr_pid() local
515 pid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_PID]); in cmd_attr_pid()
516 stats = mk_reply(rep_skb, TASKSTATS_TYPE_PID, pid); in cmd_attr_pid()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/signal/
H A Dsig_sc_double_restart.c84 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()

1...<<11121314151617181920>>...88