Home
last modified time | relevance | path

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

12345678910>>...88

/openbmc/linux/arch/um/drivers/
H A Dchan_user.c223 int fds[2], n, err, pid; in winch_tramp() local
241 pid = run_helper_thread(winch_thread, &data, CLONE_FILES, stack_out); in winch_tramp()
242 if (pid < 0) { in winch_tramp()
243 err = pid; in winch_tramp()
267 return pid; in winch_tramp()
279 int pid, thread, count, thread_fd = -1; in register_winch() local
285 pid = tcgetpgrp(fd); in register_winch()
286 if (is_skas_winch(pid, fd, port)) { in register_winch()
291 if (pid == -1) { in register_winch()
/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/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/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/linux/tools/testing/selftests/powerpc/ptrace/
H A Dcore-pkey.c175 pid_t pid) in try_core_file() argument
256 static int parent(struct shared_info *info, pid_t pid) in parent() argument
268 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3); in parent()
281 if (ret != pid) { in parent()
312 core_size = try_core_file(filename[i], info, pid); in parent()
412 pid_t pid; in core_pkey() local
425 pid = fork(); in core_pkey()
426 if (pid < 0) { in core_pkey()
429 } else if (pid == 0) in core_pkey()
432 ret = parent(info, pid); in core_pkey()
[all …]
/openbmc/u-boot/drivers/spmi/
H A Dspmi-uclass.c14 int spmi_reg_read(struct udevice *dev, int usid, int pid, int reg) in spmi_reg_read() argument
21 return ops->read(dev, usid, pid, reg); in spmi_reg_read()
24 int spmi_reg_write(struct udevice *dev, int usid, int pid, int reg, in spmi_reg_write() argument
32 return ops->write(dev, usid, pid, reg, value); in spmi_reg_write()
/openbmc/linux/tools/perf/tests/
H A Dhists_cumulate.c18 u32 pid; member
28 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, },
30 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_MAIN, },
32 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_CMD_RECORD, },
34 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, },
36 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_FREE, },
38 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, },
42 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_MAIN, },
44 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, },
101 sample.pid = fake_samples[i].pid; in add_hist_entries()
[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/tools/perf/bench/
H A Dinject-buildid.c40 int pid; member
167 event.fork.pid = data->pid; in synthesize_fork()
168 event.fork.tid = data->pid; in synthesize_fork()
188 event.mmap2.pid = data->pid; in synthesize_mmap()
189 event.mmap2.tid = data->pid; in synthesize_mmap()
223 .tid = data->pid, in synthesize_sample()
224 .pid = data->pid, in synthesize_sample()
291 data->pid = fork(); in setup_injection()
292 if (data->pid < 0) in setup_injection()
295 if (data->pid == 0) { in setup_injection()
[all …]
/openbmc/linux/drivers/media/spi/
H A Dcxd2880-spi.c36 u16 pid; member
200 u16 pid = 0; in cxd2880_set_pid_filter() local
219 pid = cfg->pid_config[i].pid; in cxd2880_set_pid_filter()
222 data[2 + (i * 2)] = pid & 0xff; in cxd2880_set_pid_filter()
347 if (feed->pid == 0x2000) { in cxd2880_start_feed()
369 cfgtmp.pid_config[i].pid = feed->pid; in cxd2880_start_feed()
371 feed->pid, i); in cxd2880_start_feed()
444 if (feed->pid == 0x2000) { in cxd2880_stop_feed()
461 if (feed->pid == cfgtmp.pid_config[i].pid && in cxd2880_stop_feed()
464 cfgtmp.pid_config[i].pid = 0; in cxd2880_stop_feed()
[all …]
/openbmc/linux/arch/um/kernel/skas/
H A Dprocess.c20 int pid; in start_kernel_proc() local
23 pid = os_getpid(); in start_kernel_proc()
25 cpu_tasks[0].pid = pid; in start_kernel_proc()
/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dfork_cleanup_test.c44 pid_t pid; in fork_cleanup() local
64 pid = fork(); in fork_cleanup()
65 if (pid == 0) in fork_cleanup()
69 FAIL_IF(wait_for_child(pid)); in fork_cleanup()
/openbmc/linux/tools/perf/util/
H A Dthread_map.h12 struct perf_thread_map *thread_map__new_by_pid(pid_t pid);
16 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid);
19 struct perf_thread_map *thread_map__new_str(const char *pid,
27 bool thread_map__has(struct perf_thread_map *threads, pid_t pid);
/openbmc/linux/drivers/media/dvb-core/
H A Ddvb_demux.c442 if ((feed->pid != pid) && (feed->pid != 0x2000)) in dvb_dmx_swfilter_packet()
447 pid, buf[1]); in dvb_dmx_swfilter_packet()
462 if ((feed->pid != pid) && (feed->pid != 0x2000)) in dvb_dmx_swfilter_packet()
469 pid, demux->cnt_storage[pid], in dvb_dmx_swfilter_packet()
478 if ((feed->pid != pid) && (feed->pid != 0x2000)) in dvb_dmx_swfilter_packet()
486 if (feed->pid == pid) in dvb_dmx_swfilter_packet()
717 feed->pid = pid; in dmx_ts_feed_set()
808 feed->pid = 0xffff; in dvbdmx_allocate_ts_feed()
853 feed->pid = 0xffff; in dvbdmx_release_ts_feed()
903 if (pid > 0x1fff) in dmx_section_feed_set()
[all …]
/openbmc/linux/tools/perf/scripts/python/
H A Dfailed-syscalls-by-pid.py72 for pid in pid_keys:
73 print("\n%s [%d]" % (comm, pid))
74 id_keys = syscalls[comm][pid].keys()
77 ret_keys = syscalls[comm][pid][id].keys()
78 …for ret, val in sorted(syscalls[comm][pid][id].items(), key = lambda kv: (kv[1], kv[0]), reverse =…
/openbmc/linux/tools/testing/selftests/powerpc/mm/
H A Dstack_expansion_signal.c75 pid_t pid; in test_one_size() local
80 pid = fork(); in test_one_size()
81 if (pid == 0) { in test_one_size()
91 kill(pid, SIGUSR1); in test_one_size()
93 FAIL_IF(wait_for_child(pid)); in test_one_size()
/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/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/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/linux/include/uapi/linux/
H A Dif_pppol2tp.h28 __kernel_pid_t pid; /* pid that owns the fd. member
42 __kernel_pid_t pid; /* pid that owns the fd. member
56 __kernel_pid_t pid; /* pid that owns the fd. member
67 __kernel_pid_t pid; /* pid that owns the fd. member
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/postfix/files/
H A Dpostfix32 PIDFile=/var/spool/postfix/pid/master.pid
80 pid=`sed -e 's/\s//g' $PIDFile`
81 echo "The Postfix mail system is running (PID: $pid)"
/openbmc/linux/arch/x86/um/os-Linux/
H A Dtls.c48 int os_set_thread_area(user_desc_t *info, int pid) in os_set_thread_area() argument
52 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, in os_set_thread_area()
59 int os_get_thread_area(user_desc_t *info, int pid) in os_get_thread_area() argument
63 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number, in os_get_thread_area()

12345678910>>...88