Home
last modified time | relevance | path

Searched refs:pid (Results 126 – 150 of 2199) sorted by relevance

12345678910>>...88

/openbmc/sdeventplus/src/sdeventplus/source/
H A Dchild.cpp15 Child::Child(const Event& event, pid_t pid, int options, Callback&& callback) : in Child() argument
16 Base(event, create_source(event, pid, options), std::false_type()) in Child()
33 pid_t pid; in get_pid() local
36 event.getSdEvent()->sd_event_source_get_child_pid(get(), &pid)); in get_pid()
37 return pid; in get_pid()
50 sd_event_source* Child::create_source(const Event& event, pid_t pid, in create_source() argument
57 event.get(), &source, pid, options, childCallback, nullptr)); in create_source()
/openbmc/linux/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c54 pid_t pid; in FIXTURE() local
141 self->pid = getpid(); in FIXTURE_SETUP()
148 info->name, self->pid); in FIXTURE_SETUP()
362 pid_t pid; in TEST_F() local
368 pid = getpid(); in TEST_F()
380 pid_t pid; in TEST_F() local
382 pid = getpid(); in TEST_F()
416 pid_t pid; in TEST_F() local
418 pid = getpid(); in TEST_F()
453 pid_t pid; in TEST_F() local
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Duprobe_multi_test.c30 int pid; member
41 if (child->pid > 0) in release_child()
42 waitpid(child->pid, &child_status, 0); in release_child()
66 child.pid = fork(); in spawn_child()
67 if (child.pid < 0) { in spawn_child()
74 if (child.pid == 0) { in spawn_child()
105 skel->bss->pid = child ? 0 : getpid(); in uprobe_multi_test_run()
156 pid_t pid = child ? child->pid : -1; in __test_attach_api() local
183 pid, binary, pattern, opts); in __test_attach_api()
259 opts.uprobe_multi.pid = child ? child->pid : 0; in __test_link_api()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dtask_event_pinned_vs_ebb_test.c42 pid_t pid; in task_event_pinned_vs_ebb() local
50 pid = fork(); in task_event_pinned_vs_ebb()
51 if (pid == 0) { in task_event_pinned_vs_ebb()
57 rc = setup_child_event(&event, pid); in task_event_pinned_vs_ebb()
59 kill_child_and_wait(pid); in task_event_pinned_vs_ebb()
73 FAIL_IF(wait_for_child(pid) != 2); in task_event_pinned_vs_ebb()
/openbmc/linux/tools/perf/scripts/python/
H A Dsched-migration.py33 def thread_name(pid): argument
34 return "%s:%d" % (threads[pid], pid)
213 new_rq = old_rq.wake_up_new(pid)
215 new_rq = old_rq.wake_up(pid)
379 common_callchain, comm, pid, delay): argument
384 common_callchain, comm, pid, delay): argument
399 common_callchain, comm, pid, prio): argument
404 common_callchain, comm, pid, prio): argument
409 common_callchain, comm, pid, prio): argument
448 common_callchain, comm, pid, prio): argument
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-tm-spd-gpr.c118 pid_t pid; in ptrace_tm_spd_gpr() local
124 pid = fork(); in ptrace_tm_spd_gpr()
125 if (pid < 0) { in ptrace_tm_spd_gpr()
130 if (pid == 0) in ptrace_tm_spd_gpr()
133 if (pid) { in ptrace_tm_spd_gpr()
140 ret = trace_tm_spd_gpr(pid); in ptrace_tm_spd_gpr()
142 kill(pid, SIGTERM); in ptrace_tm_spd_gpr()
152 if (ret != pid) { in ptrace_tm_spd_gpr()
H A Dptrace-tm-spr.c113 pid_t pid; in ptrace_tm_spr() local
120 pid = fork(); in ptrace_tm_spr()
121 if (pid < 0) { in ptrace_tm_spr()
126 if (pid == 0) in ptrace_tm_spr()
129 if (pid) { in ptrace_tm_spr()
135 ret = trace_tm_spr(pid); in ptrace_tm_spr()
137 kill(pid, SIGKILL); in ptrace_tm_spr()
150 if (ret != pid) { in ptrace_tm_spr()
H A Dptrace-tm-spd-vsx.c128 pid_t pid; in ptrace_tm_spd_vsx() local
142 pid = fork(); in ptrace_tm_spd_vsx()
143 if (pid < 0) { in ptrace_tm_spd_vsx()
148 if (pid == 0) in ptrace_tm_spd_vsx()
151 if (pid) { in ptrace_tm_spd_vsx()
156 ret = trace_tm_spd_vsx(pid); in ptrace_tm_spd_vsx()
158 kill(pid, SIGKILL); in ptrace_tm_spd_vsx()
167 if (ret != pid) { in ptrace_tm_spd_vsx()
H A Dptrace-tm-vsx.c112 pid_t pid; in ptrace_tm_vsx() local
125 pid = fork(); in ptrace_tm_vsx()
126 if (pid < 0) { in ptrace_tm_vsx()
131 if (pid == 0) in ptrace_tm_vsx()
134 if (pid) { in ptrace_tm_vsx()
139 ret = trace_tm_vsx(pid); in ptrace_tm_vsx()
141 kill(pid, SIGKILL); in ptrace_tm_vsx()
150 if (ret != pid) { in ptrace_tm_vsx()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_varlen.c45 int pid = bpf_get_current_pid_tgid() >> 32; in handler64_unsigned() local
50 if (test_pid != pid || !capture) in handler64_unsigned()
75 int pid = bpf_get_current_pid_tgid() >> 32; in handler64_signed() local
80 if (test_pid != pid || !capture) in handler64_signed()
101 int pid = bpf_get_current_pid_tgid() >> 32; in handler32_unsigned() local
106 if (test_pid != pid || !capture) in handler32_unsigned()
129 int pid = bpf_get_current_pid_tgid() >> 32; in handler32_signed() local
134 if (test_pid != pid || !capture) in handler32_signed()
H A Dima.c31 u32 pid; in ima_test_common() local
33 pid = bpf_get_current_pid_tgid() >> 32; in ima_test_common()
34 if (pid == monitored_pid) { in ima_test_common()
57 u32 pid; in ima_test_deny() local
59 pid = bpf_get_current_pid_tgid() >> 32; in ima_test_deny()
60 if (pid == monitored_pid && test_deny) in ima_test_deny()
H A Datomics.c13 __u32 pid = 0; variable
26 if (pid != (bpf_get_current_pid_tgid() >> 32)) in add()
52 if (pid != (bpf_get_current_pid_tgid() >> 32)) in sub()
76 if (pid != (bpf_get_current_pid_tgid() >> 32)) in and()
97 if (pid != (bpf_get_current_pid_tgid() >> 32)) in or()
117 if (pid != (bpf_get_current_pid_tgid() >> 32)) in xor()
138 if (pid != (bpf_get_current_pid_tgid() >> 32)) in cmpxchg()
159 if (pid != (bpf_get_current_pid_tgid() >> 32)) in xchg()
/openbmc/u-boot/drivers/spmi/
H A Dspmi-msm.c55 static int msm_spmi_write(struct udevice *dev, int usid, int pid, int off, in msm_spmi_write() argument
64 if (pid >= SPMI_MAX_PERIPH) in msm_spmi_write()
67 channel = priv->channel_map[usid][pid]; in msm_spmi_write()
79 reg |= (pid << SPMI_CMD_ADDR_SHIFT); in msm_spmi_write()
101 static int msm_spmi_read(struct udevice *dev, int usid, int pid, int off) in msm_spmi_read() argument
109 if (pid >= SPMI_MAX_PERIPH) in msm_spmi_read()
112 channel = priv->channel_map[usid][pid]; in msm_spmi_read()
120 reg |= (pid << SPMI_CMD_ADDR_SHIFT); in msm_spmi_read()
178 uint8_t pid = (periph & 0xff00) >> 8; in msm_spmi_probe() local
180 priv->channel_map[slave_id][pid] = i; in msm_spmi_probe()
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dtsn_lib.sh67 local pid="ptp4l_pid_$(if_names_to_label ${if_names})"
89 declare -g "${pid}=$!"
100 local pid="ptp4l_pid_$(if_names_to_label ${if_names})"
102 { kill ${!pid} && wait ${!pid}; } 2> /dev/null
149 local pid="isochron_pid_${stats_port}"
163 declare -g "${pid}=$!"
171 local pid="isochron_pid_${stats_port}"
173 { kill ${!pid} && wait ${!pid}; } 2> /dev/null
/openbmc/linux/tools/perf/tests/
H A Dhists_filter.c17 u32 pid; member
28 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, .socket = 0 },
30 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_MAIN, .socket = 0 },
32 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, .socket = 0 },
36 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, .socket = 1 },
38 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_PAGE_FAULT, .socket = 1 },
40 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_MAIN, .socket = 2 },
42 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, .socket = 2 },
44 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, .socket = 3 },
79 sample.pid = fake_samples[i].pid; in add_hist_entries()
[all …]
H A Dperf-record.c17 static int sched__get_first_possible_cpu(pid_t pid, cpu_set_t *maskp) in sched__get_first_possible_cpu() argument
23 if (sched_getaffinity(pid, sizeof(*maskp), maskp) == -1) { in sched__get_first_possible_cpu()
114 err = sched__get_first_possible_cpu(evlist->workload.pid, &cpu_mask); in test__PERF_RECORD()
126 if (sched_setaffinity(evlist->workload.pid, cpu_mask_size, &cpu_mask) < 0) { in test__PERF_RECORD()
212 if ((pid_t)sample.pid != evlist->workload.pid) { in test__PERF_RECORD()
214 name, evlist->workload.pid, sample.pid); in test__PERF_RECORD()
218 if ((pid_t)sample.tid != evlist->workload.pid) { in test__PERF_RECORD()
220 name, evlist->workload.pid, sample.tid); in test__PERF_RECORD()
229 (pid_t)event->comm.pid != evlist->workload.pid) { in test__PERF_RECORD()
237 event->comm.pid != event->comm.tid) { in test__PERF_RECORD()
/openbmc/linux/tools/testing/selftests/timers/
H A Dskew_consistency.c45 pid_t pid; in main() local
50 pid = fork(); in main()
51 if (!pid) in main()
57 while (pid != waitpid(pid, &ret, WNOHANG)) { in main()
/openbmc/linux/include/linux/sched/
H A Dsignal.h163 struct pid *pids[PIDTYPE_MAX];
169 struct pid *tty_old_pgrp;
338 extern int kill_pid_info(int sig, struct kernel_siginfo *info, struct pid *pid);
341 extern int kill_pgrp(struct pid *pid, int sig, int priv);
342 extern int kill_pid(struct pid *pid, int sig, int priv);
674 struct pid *pid; in task_pid_type() local
676 pid = task_pid(task); in task_pid_type()
678 pid = task->signal->pids[type]; in task_pid_type()
679 return pid; in task_pid_type()
682 static inline struct pid *task_tgid(struct task_struct *task) in task_tgid()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/signal/
H A Dsignal.c23 extern long signal_self(pid_t pid, int sig);
41 pid_t pid; in test_signal() local
57 pid = fork(); in test_signal()
58 if (pid == -1) { in test_signal()
62 if (pid == 0) { in test_signal()
75 waitpid(pid, NULL, 0); in test_signal()
/openbmc/linux/tools/testing/selftests/proc/
H A Dfd-003-kthread.c40 static int kernel_thread_fd(unsigned int pid) in kernel_thread_fd() argument
47 snprintf(buf, sizeof(buf), "/proc/%u", pid); in kernel_thread_fd()
157 unsigned int pid; in main() local
166 pid = 2; in main()
167 while ((fd = kernel_thread_fd(pid)) == -1 && pid < 1024) { in main()
168 pid++; in main()
171 if (pid >= 1024) in main()
/openbmc/linux/tools/bpf/runqslower/
H A Drunqslower.c14 pid_t pid; member
46 int pid; in parse_arg() local
55 pid = strtol(arg, NULL, 10); in parse_arg()
56 if (errno || pid <= 0) { in parse_arg()
60 env.pid = pid; in parse_arg()
100 printf("%-8s %-16s %-6d %14llu\n", ts, e->task, e->pid, e->delta_us); in handle_event()
135 obj->rodata->targ_pid = env.pid; in main()
/openbmc/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-perf.rst56 pid 21711 fd 5: prog_id 5 kprobe func __x64_sys_write offset 0
57 pid 21765 fd 5: prog_id 7 kretprobe func __x64_sys_nanosleep offset 0
58 pid 21767 fd 5: prog_id 8 tracepoint sys_enter_nanosleep
59 pid 21800 fd 5: prog_id 9 uprobe filename /home/yhs/a.out offset 1159
66 [{"pid":21711,"fd":5,"prog_id":5,"fd_type":"kprobe","func":"__x64_sys_write","offset":0}, \
67 … {"pid":21765,"fd":5,"prog_id":7,"fd_type":"kretprobe","func":"__x64_sys_nanosleep","offset":0}, \
68 {"pid":21767,"fd":5,"prog_id":8,"fd_type":"tracepoint","tracepoint":"sys_enter_nanosleep"}, \
69 {"pid":21800,"fd":5,"prog_id":9,"fd_type":"uprobe","filename":"/home/yhs/a.out","offset":1159}]
/openbmc/linux/kernel/
H A Dexit.c1040 pid_t pid; member
1221 infop->pid = pid; in wait_task_zombie()
1225 return pid; in wait_task_zombie()
1264 pid_t pid; in wait_task_stopped() local
1318 infop->pid = pid; in wait_task_stopped()
1321 return pid; in wait_task_stopped()
1333 pid_t pid; in wait_task_continued() local
1366 infop->pid = pid; in wait_task_continued()
1649 struct pid *pid = NULL; in kernel_waitid() local
1748 struct pid *pid = NULL; in kernel_wait4() local
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/tests/
H A Devent.py478 self.assertEqual(event.pid, EventClassesTest._worker_pid)
485 self.assertEqual(event.pid, EventClassesTest._worker_pid)
492 self.assertEqual(event.pid, EventClassesTest._worker_pid)
501 self.assertEqual(event.pid, EventClassesTest._worker_pid)
510 self.assertEqual(event.pid, EventClassesTest._worker_pid)
515 self.assertEqual(event.pid, EventClassesTest._worker_pid)
522 self.assertEqual(event.pid, EventClassesTest._worker_pid)
529 self.assertEqual(event.pid, EventClassesTest._worker_pid)
536 self.assertEqual(event.pid, EventClassesTest._worker_pid)
545 self.assertEqual(event.pid, EventClassesTest._worker_pid)
[all …]
/openbmc/linux/tools/testing/selftests/timens/
H A Dexec.c25 pid_t pid; in main() local
61 pid = fork(); in main()
62 if (pid < 0) in main()
65 if (pid == 0) { in main()
84 if (waitpid(pid, &status, 0) != pid) in main()

12345678910>>...88