Home
last modified time | relevance | path

Searched refs:pid (Results 101 – 125 of 2178) sorted by relevance

12345678910>>...88

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_map_ops.c29 const volatile pid_t pid; variable
43 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_update()
56 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_delete()
69 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_push()
82 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_pop()
95 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_peek()
111 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_for_each_pass()
129 if (pid != (bpf_get_current_pid_tgid() >> 32)) in map_for_each_fail()
/openbmc/linux/tools/testing/selftests/powerpc/tm/
H A Dtm-syscall.c38 pid_t pid; in getppid_tm() local
43 pid = getppid_scv_tm_suspended(); in getppid_tm()
45 pid = getppid_tm_suspended(); in getppid_tm()
48 pid = getppid_scv_tm_active(); in getppid_tm()
50 pid = getppid_tm_active(); in getppid_tm()
53 if (pid >= 0) in getppid_tm()
54 return pid; in getppid_tm()
/openbmc/linux/tools/testing/selftests/riscv/vector/
H A Dvstate_exec_nolibc.c6 int rc, pid, status, test_inherit = 0; in main() local
20 pid = fork(); in main()
21 if (pid == -1) { in main()
27 if (!pid) { in main()
41 pid = fork(); in main()
42 if (pid == -1) { in main()
47 if (!pid) { in main()
/openbmc/linux/tools/perf/scripts/python/
H A Dcompaction-times.py32 def filter(self, pid, comm): argument
41 def filter(self, pid, comm): argument
42 return not (pid >= self.low and (self.high == 0 or pid <= self.high))
121 head = cls.heads[pid]
125 filtered = cls.fobj.filter(pid, comm)
126 head = cls.heads[pid] = chead(comm, pid, filtered)
133 head = cls.heads[pid]
141 def complete_pending(cls, pid, secs, nsecs): argument
142 head = cls.heads[pid]
159 def __init__(self, comm, pid, filtered): argument
[all …]
/openbmc/linux/tools/testing/selftests/proc/
H A Dthread-self.c30 pid_t pid, tid; in f() local
33 pid = sys_getpid(); in f()
35 snprintf(buf1, sizeof(buf1), "%u/task/%u", pid, tid); in f()
50 pid_t pid; in main() local
59 pid = clone(f, stack + PAGE_SIZE, CLONE_THREAD|CLONE_SIGHAND|CLONE_VM, (void *)1); in main()
60 assert(pid > 0); in main()
/openbmc/linux/net/ax25/
H A Dax25_iface.c55 void ax25_protocol_release(unsigned int pid) in ax25_protocol_release() argument
64 if (protocol->pid == pid) { in ax25_protocol_release()
70 if (protocol->next->pid == pid) { in ax25_protocol_release()
158 int (*ax25_protocol_function(unsigned int pid))(struct sk_buff *, ax25_cb *) in ax25_protocol_function() argument
165 if (protocol->pid == pid) { in ax25_protocol_function()
200 int ax25_protocol_is_registered(unsigned int pid) in ax25_protocol_is_registered() argument
207 if (protocol->pid == pid) { in ax25_protocol_is_registered()
/openbmc/linux/tools/bpf/bpftool/
H A Dperf.c65 static void print_perf_json(int pid, int fd, __u32 prog_id, __u32 fd_type, in print_perf_json() argument
69 jsonw_int_field(json_wtr, "pid", pid); in print_perf_json()
115 static void print_perf_plain(int pid, int fd, __u32 prog_id, __u32 fd_type, in print_perf_plain() argument
118 printf("pid %d fd %d: prog_id %u ", pid, fd, prog_id); in print_perf_plain()
158 int err, pid, fd; in show_proc() local
167 pid = 0; in show_proc()
172 pid = pid * 10 + *pch - '0'; in show_proc()
200 err = bpf_task_fd_query(pid, fd, 0, buf, &len, in show_proc()
207 print_perf_json(pid, fd, prog_id, fd_type, buf, in show_proc()
210 print_perf_plain(pid, fd, prog_id, fd_type, buf, in show_proc()
/openbmc/openbmc-test-automation/bin/plug_ins/Mem_tracker/
H A Dmemcheck.sh64 local pid="${1}" ; shift
69 [ ! -f /proc/${pid}/status -o ! -f /proc/${pid}/smaps ] && return 0
77 …pss_total=$(grep -e "^Pss:" /proc/${pid}/smaps | awk '{print $2}' | awk '{sum += $1} END {print su…
78 …private_total=$(grep -e "^Private" /proc/${pid}/smaps | awk '{print $2}' | awk '{sum += $1} END {p…
82 name=$(cut -d "" -f 1 /proc/${pid}/cmdline)
98 for pid in ${pids} ; do
99 get_process_mem ${pid} >> ${temp_file_path_1}
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-vsx.c61 pid_t pid; in ptrace_vsx() local
74 pid = fork(); in ptrace_vsx()
75 if (pid < 0) { in ptrace_vsx()
80 if (pid == 0) in ptrace_vsx()
83 if (pid) { in ptrace_vsx()
88 ret = trace_vsx(pid); in ptrace_vsx()
90 kill(pid, SIGTERM); in ptrace_vsx()
101 if (ret != pid) { in ptrace_vsx()
H A Dptrace-tar.c78 pid_t pid; in ptrace_tar() local
85 pid = fork(); in ptrace_tar()
86 if (pid < 0) { in ptrace_tar()
91 if (pid == 0) in ptrace_tar()
94 if (pid) { in ptrace_tar()
101 ret = trace_tar(pid); in ptrace_tar()
105 ret = trace_tar_write(pid); in ptrace_tar()
120 if (ret != pid) { in ptrace_tar()
H A Dptrace-pkey.c194 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3); in parent()
211 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3); in parent()
252 ret = ptrace_write_regs(pid, NT_PPC_PKEY, regs, 2); in parent()
267 ret = ptrace_read_regs(pid, NT_PPC_PKEY, regs, 3); in parent()
282 if (ret != pid) { in parent()
299 pid_t pid; in ptrace_pkey() local
308 pid = fork(); in ptrace_pkey()
309 if (pid < 0) { in ptrace_pkey()
312 } else if (pid == 0) in ptrace_pkey()
315 ret = parent(info, pid); in ptrace_pkey()
[all …]
H A Dptrace-tm-gpr.c112 pid_t pid; in ptrace_tm_gpr() local
118 pid = fork(); in ptrace_tm_gpr()
119 if (pid < 0) { in ptrace_tm_gpr()
123 if (pid == 0) in ptrace_tm_gpr()
126 if (pid) { in ptrace_tm_gpr()
131 ret = trace_tm_gpr(pid); in ptrace_tm_gpr()
133 kill(pid, SIGTERM); in ptrace_tm_gpr()
141 if (ret != pid) { in ptrace_tm_gpr()
/openbmc/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_gcr_el1_cswitch.c30 pid_t pid = *((pid_t *)x); in execute_thread() local
37 srand(time(NULL) ^ (pid << 16) ^ (tid << 16)); in execute_thread()
69 int execute_test(pid_t pid) in execute_test() argument
76 execute_thread, (void *)&pid); in execute_test()
90 pid_t pid; in mte_gcr_fork_test() local
96 pid = fork(); in mte_gcr_fork_test()
98 if (pid < 0) in mte_gcr_fork_test()
101 if (pid == 0) { in mte_gcr_fork_test()
/openbmc/u-boot/drivers/spmi/
H A Dspmi-sandbox.c44 static bool check_address_valid(int usid, int pid, int off) in check_address_valid() argument
48 if (pid < EMUL_GPIO_PID_START || pid > EMUL_GPIO_PID_END) in check_address_valid()
55 static int sandbox_spmi_write(struct udevice *dev, int usid, int pid, int off, in sandbox_spmi_write() argument
61 if (!check_address_valid(usid, pid, off)) in sandbox_spmi_write()
64 regs = priv->gpios[pid & 0x3].r; /* Last 3 bits of pid are gpio # */ in sandbox_spmi_write()
82 static int sandbox_spmi_read(struct udevice *dev, int usid, int pid, int off) in sandbox_spmi_read() argument
87 if (!check_address_valid(usid, pid, off)) in sandbox_spmi_read()
90 regs = priv->gpios[pid & 0x3].r; /* Last 3 bits of pid are gpio # */ in sandbox_spmi_read()
/openbmc/linux/tools/perf/util/bpf_skel/
H A Doff_cpu.bpf.c28 __u32 pid; member
161 __u32 pid; in can_record() local
164 pid = t->tgid; in can_record()
166 pid = t->pid; in can_record()
168 ok = bpf_map_lookup_elem(&task_filter, &pid); in can_record()
214 .pid = next->pid, in off_cpu_stat()
241 u32 pid; in on_newtask() local
249 pid = BPF_CORE_READ(task, tgid); in on_newtask()
250 if (!bpf_map_lookup_elem(&task_filter, &pid)) in on_newtask()
256 pid = task->tgid; in on_newtask()
[all …]
/openbmc/linux/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c192 ret = waitpid(pid, &status, 0); in wait_for_pid()
383 pid_t pid; in TEST() local
395 pid = fork(); in TEST()
396 ASSERT_GE(pid, 0) { in TEST()
402 if (pid == 0) { in TEST()
488 ret = wait_for_pid(pid); in TEST()
507 pid_t pid; in TEST() local
514 pid = fork(); in TEST()
515 ASSERT_GE(pid, 0) { in TEST()
521 if (pid == 0) { in TEST()
[all …]
/openbmc/linux/tools/perf/util/
H A Dbpf_off_cpu.c27 u32 pid; member
79 u32 pid; in off_cpu_start() local
86 bpf_map_update_elem(fd, &pid, &val, BPF_ANY); in off_cpu_start()
151 if (target->pid) { in off_cpu_prepare()
161 int pid = strtol(pos->s, &end_ptr, 10); in off_cpu_prepare() local
163 if (pid == INT_MIN || pid == INT_MAX || in off_cpu_prepare()
218 if (target->pid) { in off_cpu_prepare()
228 int pid = strtol(pos->s, &end_ptr, 10); in off_cpu_prepare() local
230 if (pid == INT_MIN || pid == INT_MAX || in off_cpu_prepare()
234 tgid = pid; in off_cpu_prepare()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/math/
H A Dvmx_syscall.c23 extern int test_vmx(vector int *varray, pid_t *pid);
52 pid_t pid; in test_vmx_syscall() local
59 pid = fork(); in test_vmx_syscall()
60 FAIL_IF(pid == -1); in test_vmx_syscall()
79 if (pid) in test_vmx_syscall()
80 waitpid(pid, &child_ret, 0); in test_vmx_syscall()
/openbmc/linux/tools/testing/selftests/nsfs/
H A Downer.c31 pid_t pid; in main() local
37 pid = fork(); in main()
38 if (pid < 0) in main()
40 if (pid == 0) { in main()
55 snprintf(path, sizeof(path), "/proc/%d/ns/uts", pid); in main()
67 snprintf(path, sizeof(path), "/proc/%d/ns/user", pid); in main()
89 kill(pid, SIGKILL); in main()
/openbmc/linux/mm/kasan/
H A Dreport_tags.c35 u32 pid; in kasan_complete_mode_report_info() local
71 pid = READ_ONCE(entry->pid); in kasan_complete_mode_report_info()
83 info->free_track.pid = pid; in kasan_complete_mode_report_info()
98 info->alloc_track.pid = pid; in kasan_complete_mode_report_info()
/openbmc/linux/scripts/gdb/linux/
H A Dtasks.py42 def get_task_by_pid(pid): argument
44 if int(task['pid']) == pid:
58 def invoke(self, pid): argument
59 task = get_task_by_pid(pid)
63 raise gdb.GdbError("No task of PID " + str(pid))
132 def invoke(self, pid): argument
133 task = get_task_by_pid(pid)
137 raise gdb.GdbError("No task of PID " + str(pid))
/openbmc/linux/tools/perf/bench/
H A Dsyscall.c40 pid_t pid = fork(); in test_fork() local
42 if (pid < 0) { in test_fork()
45 } else if (pid == 0) { in test_fork()
48 if (waitpid(pid, NULL, 0) < 0) { in test_fork()
59 pid_t pid = fork(); in test_execve() local
61 if (pid < 0) { in test_execve()
64 } else if (pid == 0) { in test_execve()
69 if (waitpid(pid, NULL, 0) < 0) { in test_execve()
/openbmc/linux/kernel/
H A Dcapability.c109 static inline int cap_get_target_pid(pid_t pid, kernel_cap_t *pEp, in cap_get_target_pid() argument
114 if (pid && (pid != task_pid_vnr(current))) { in cap_get_target_pid()
119 target = find_task_by_vpid(pid); in cap_get_target_pid()
144 pid_t pid; in SYSCALL_DEFINE2() local
153 if (get_user(pid, &header->pid)) in SYSCALL_DEFINE2()
156 if (pid < 0) in SYSCALL_DEFINE2()
159 ret = cap_get_target_pid(pid, &pE, &pI, &pP); in SYSCALL_DEFINE2()
227 pid_t pid; in SYSCALL_DEFINE2() local
233 if (get_user(pid, &header->pid)) in SYSCALL_DEFINE2()
237 if (pid != 0 && pid != task_pid_vnr(current)) in SYSCALL_DEFINE2()
/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dtask_event_vs_ebb_test.c40 pid_t pid; in task_event_vs_ebb() local
48 pid = fork(); in task_event_vs_ebb()
49 if (pid == 0) { in task_event_vs_ebb()
55 rc = setup_child_event(&event, pid); in task_event_vs_ebb()
57 kill_child_and_wait(pid); in task_event_vs_ebb()
71 FAIL_IF(wait_for_child(pid)); in task_event_vs_ebb()
/openbmc/openbmc/poky/meta/recipes-core/initscripts/initscripts-1.0/
H A Dfunctions26 # pidofproc - print the pid of a process
31 pid=`pidof $1`
35 echo $pid
54 pid=`pidofproc $1` && kill $pid
58 local pid
63 pid=`pidofproc $1`
64 if [ -n "$pid" ]; then
65 echo "$1 (pid $pid) is running..."

12345678910>>...88