Home
last modified time | relevance | path

Searched refs:pid (Results 226 – 250 of 2175) sorted by relevance

12345678910>>...87

/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dcpu_event_pinned_vs_ebb_test.c44 pid_t pid; in cpu_event_pinned_vs_ebb() local
54 pid = fork(); in cpu_event_pinned_vs_ebb()
55 if (pid == 0) { in cpu_event_pinned_vs_ebb()
63 kill_child_and_wait(pid); in cpu_event_pinned_vs_ebb()
77 FAIL_IF(wait_for_child(pid) != 2); in cpu_event_pinned_vs_ebb()
/openbmc/linux/arch/mips/kernel/
H A Dmips-mt-fpaff.c41 static inline struct task_struct *find_process_by_pid(pid_t pid) in find_process_by_pid() argument
43 return pid ? find_task_by_vpid(pid) : current; in find_process_by_pid()
65 asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_setaffinity() argument
82 p = find_process_by_pid(pid); in mipsmt_sys_sched_setaffinity()
157 asmlinkage long mipsmt_sys_sched_getaffinity(pid_t pid, unsigned int len, in mipsmt_sys_sched_getaffinity() argument
173 p = find_process_by_pid(pid); in mipsmt_sys_sched_getaffinity()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsend_signal.c21 pid_t pid; in test_send_signal_common() local
32 pid = fork(); in test_send_signal_common()
33 if (!ASSERT_GE(pid, 0, "fork")) { in test_send_signal_common()
41 if (pid == 0) { in test_send_signal_common()
103 pmu_fd = syscall(__NR_perf_event_open, attr, pid, -1 /* cpu */, in test_send_signal_common()
122 skel->bss->pid = pid; in test_send_signal_common()
/openbmc/u-boot/include/spmi/
H A Dspmi.h17 int (*read)(struct udevice *dev, int usid, int pid, int reg);
18 int (*write)(struct udevice *dev, int usid, int pid, int reg,
31 int spmi_reg_read(struct udevice *dev, int usid, int pid, int reg);
43 int spmi_reg_write(struct udevice *dev, int usid, int pid, int reg,
/openbmc/linux/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c193 pid_t pid; in test_unpriv_remount() local
195 pid = waitpid(child, &status, 0); in test_unpriv_remount()
196 if (pid == -1) { in test_unpriv_remount()
200 if (pid != child) { in test_unpriv_remount()
202 child, pid); in test_unpriv_remount()
271 pid_t pid; in test_priv_mount_unpriv_remount() local
273 pid = waitpid(child, &status, 0); in test_priv_mount_unpriv_remount()
274 if (pid == -1) { in test_priv_mount_unpriv_remount()
278 if (pid != child) { in test_priv_mount_unpriv_remount()
280 child, pid); in test_priv_mount_unpriv_remount()
/openbmc/openbmc/meta-security/recipes-scanners/arpwatch/files/
H A Darpwatch_init47 --pidfile /var/run/${INSTANCE}.pid \
50 ps h -C $NAME -o pid,args | \
51 awk "/$IFACE/ { print \$1 }" > /var/run/${INSTANCE}.pid
57 [ -f /var/run/${INSTANCE}.pid ] || return 0
60 --pidfile /var/run/${INSTANCE}.pid
62 rm -f /var/run/${INSTANCE}.pid
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_core_reloc_kernel.c28 int pid; member
39 int pid; member
57 int pid, tgid; in test_core_kernel() local
62 if (CORE_READ(&pid, &task->pid) || in test_core_kernel()
67 out->valid[0] = (((uint64_t)pid << 32) | tgid) == pid_tgid; in test_core_kernel()
/openbmc/qemu/gdbstub/
H A Dgdbstub.c210 return gdbserver_state.processes[index].pid; in gdb_get_cpu_pid()
216 GDBProcess *gdb_get_process(uint32_t pid) in gdb_get_process() argument
220 if (!pid) { in gdb_get_process()
226 if (gdbserver_state.processes[i].pid == pid) { in gdb_get_process()
257 if (gdb_get_cpu_pid(cpu) == process->pid) { in gdb_get_first_cpu_in_process()
267 uint32_t pid = gdb_get_cpu_pid(cpu); in gdb_next_cpu_in_process() local
271 if (gdb_get_cpu_pid(cpu) == pid) { in gdb_next_cpu_in_process()
310 static CPUState *gdb_get_cpu(uint32_t pid, uint32_t tid) in gdb_get_cpu() argument
315 if (!pid && !tid) { in gdb_get_cpu()
318 } else if (pid && !tid) { in gdb_get_cpu()
[all …]
/openbmc/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c283 static int wait_for_pid(pid_t pid) in wait_for_pid() argument
288 ret = waitpid(pid, &status, 0); in wait_for_pid()
350 pid_t pid; in TEST_F() local
358 pid = do_clone(get_nestedns_mount_cb, (void *)&ca_from, CLONE_VFORK | in TEST_F()
359 CLONE_VM | CLONE_FILES); ASSERT_GT(pid, 0); in TEST_F()
360 ASSERT_EQ(wait_for_pid(pid), 0); in TEST_F()
362 pid = do_clone(get_nestedns_mount_cb, (void *)&ca_to, CLONE_VFORK | in TEST_F()
363 CLONE_VM | CLONE_FILES); ASSERT_GT(pid, 0); in TEST_F()
364 ASSERT_EQ(wait_for_pid(pid), 0); in TEST_F()
/openbmc/linux/tools/testing/selftests/nsfs/
H A Dpidns.c48 pid_t pid; in main() local
50 pid = clone(child, ca.stack_ptr, CLONE_NEWUSER | CLONE_NEWPID | SIGCHLD, NULL); in main()
51 if (pid < 0) in main()
55 snprintf(path, sizeof(path), "/proc/%d/ns/%s", pid, ns_strs[i]); in main()
76 kill(pid, SIGKILL); in main()
/openbmc/linux/arch/sh/mm/
H A Dasids-debugfs.c36 int pid = p->pid; in asids_debugfs_show() local
38 if (unlikely(!pid)) in asids_debugfs_show()
42 seq_printf(file, "%5d : %04lx\n", pid, in asids_debugfs_show()
/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/x86/
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()
177 } else if (pid == 0) { in get_default_tag_bits()
655 pid_t pid; in fork_test() local
657 pid = fork(); in fork_test()
658 if (pid < 0) { in fork_test()
661 } else if (pid == 0) { in fork_test()
676 pid_t pid; in handle_execve() local
678 pid = fork(); in handle_execve()
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dipv6_route_update_soft_lockup.sh103 for pid in $(ip netns pids ${ns}); do
104 [ -e /proc/$pid/cmdline ] && grep -qe "${pattern}" /proc/$pid/cmdline && kill -9 $pid
128 for pid in $(ip netns pids ${source_ns}); do
129 if [ -e /proc/$pid/cmdline ] && grep -qe 'iperf3' /proc/$pid/cmdline; then
/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/openbmc/meta-openembedded/meta-oe/recipes-benchmark/lmbench/lmbench/
H A D0001-lat_fifo-Fix-cleanup-sequence.patch28 if (state->pid > 0) {
29 - kill(state->pid, 15);
30 + kill(state->pid, SIGKILL);
31 waitpid(state->pid, NULL, 0);
32 state->pid = 0;
/openbmc/linux/arch/um/kernel/
H A Dreboot.c22 int pid; in kill_off_processes() local
31 pid = t->mm->context.id.u.pid; in kill_off_processes()
33 os_kill_ptraced_process(pid, 1); in kill_off_processes()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/openhpi/files/
H A Dopenhpi.init141 if test -f /var/run/openhpid.pid && test "`cat /var/run/openhpid.pid`" != ""
154 if test "$RETVAL" -eq 0 && test -f /var/run/openhpid.pid
157 rm -f /var/run/openhpid.pid
172 pid="`pidofproc /usr/sbin/openhpid`"
173 if test "${pid}" != ""
181 if test -f /var/run/openhpid.pid &&
/openbmc/openbmc/poky/meta/recipes-core/udev/eudev/
H A Dinit22 pid=`pidof -x udevd`
23 [ -n "$pid" ] && kill $pid
119 pid=`pidof -x udevd`
120 if [ -n "$pid" ]; then
121 echo "udevd (pid $pid) is running ..."
/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/linux/tools/perf/trace/beauty/
H A Dpid.c5 int pid = arg->val; in syscall_arg__scnprintf_pid() local
7 size_t printed = scnprintf(bf, size, "%d", pid); in syscall_arg__scnprintf_pid()
8 struct thread *thread = machine__findnew_thread(trace->host, pid, pid); in syscall_arg__scnprintf_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()
201 static int fill_stats_for_pid(pid_t pid, struct taskstats *stats) in fill_stats_for_pid() argument
205 tsk = find_get_task_by_vpid(pid); in fill_stats_for_pid()
296 static int add_del_listener(pid_t pid, const struct cpumask *mask, int isadd) in add_del_listener() argument
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()
377 static struct taskstats *mk_reply(struct sk_buff *skb, int type, u32 pid) in mk_reply() argument
390 if (nla_put(skb, type, sizeof(pid), &pid) < 0) { in mk_reply()
[all …]
/openbmc/linux/tools/testing/selftests/pidfd/
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()
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()
/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()

12345678910>>...87