Home
last modified time | relevance | path

Searched refs:pid (Results 201 – 225 of 2178) sorted by relevance

12345678910>>...88

/openbmc/linux/arch/nios2/mm/
H A Dtlb.c25 static void get_misc_and_pid(unsigned long *misc, unsigned long *pid) in get_misc_and_pid() argument
29 *pid = *misc & TLBMISC_PID; in get_misc_and_pid()
58 unsigned long pid; in replace_tlb_one_pid() local
68 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK; in replace_tlb_one_pid()
69 if (pid != mmu_pid) in replace_tlb_one_pid()
231 unsigned long pid; in flush_tlb_pid() local
236 pid = (tlbmisc >> TLBMISC_PID_SHIFT) & TLBMISC_PID_MASK; in flush_tlb_pid()
237 if (pid != mmu_pid) in flush_tlb_pid()
292 void set_mmu_pid(unsigned long pid) in set_mmu_pid() argument
298 tlbmisc |= (pid & TLBMISC_PID_MASK) << TLBMISC_PID_SHIFT; in set_mmu_pid()
/openbmc/linux/drivers/misc/ocxl/
H A Dtrace.h76 TP_PROTO(pid_t pid, void *spa, int pasid, u32 pidr, u32 tidr),
77 TP_ARGS(pid, spa, pasid, pidr, tidr),
80 __field(pid_t, pid)
88 __entry->pid = pid;
96 __entry->pid,
105 TP_PROTO(pid_t pid, void *spa, int pasid, u32 pidr, u32 tidr),
106 TP_ARGS(pid, spa, pasid, pidr, tidr)
110 TP_PROTO(pid_t pid, void *spa, int pasid, u32 pidr, u32 tidr),
111 TP_ARGS(pid, spa, pasid, pidr, tidr)
/openbmc/linux/fs/proc/
H A Dinternal.h93 struct pid_namespace *ns, struct pid *pid,
99 struct pid *pid; member
123 static inline struct pid *proc_pid(const struct inode *inode) in proc_pid()
125 return PROC_I(inode)->pid; in proc_pid()
153 struct pid *, struct task_struct *);
155 struct pid *, struct task_struct *);
157 struct pid *, struct task_struct *);
159 struct pid *, struct task_struct *);
/openbmc/linux/tools/testing/selftests/proc/
H A Dproc-pid-vm.c72 static pid_t pid = -1; variable
75 if (pid > 0) { in ate()
76 kill(pid, SIGTERM); in ate()
239 pid_t pid; in vsyscall() local
242 pid = fork(); in vsyscall()
243 if (pid < 0) { in vsyscall()
247 if (pid == 0) { in vsyscall()
274 waitpid(pid, &wstatus, 0); in vsyscall()
322 pid = fork(); in main()
323 if (pid == -1) { in main()
[all …]
/openbmc/linux/tools/thermal/thermometer/
H A Dthermometer.c426 *pid = fork(); in thermometer_execute()
427 if (*pid < 0) { in thermometer_execute()
432 if (!(*pid)) { in thermometer_execute()
442 pid_t pid = *(pid_t *)arg; in kill_process() local
444 if (kill(pid, SIGTERM)) in kill_process()
445 ERROR("Failed to send SIGTERM signal to '%d': %p\n", pid); in kill_process()
446 else if (waitpid(pid, NULL, 0)) in kill_process()
447 ERROR("Failed to wait pid '%d': %p\n", pid); in kill_process()
486 if (mainloop_add(fd, pid < 0 ? exit_mainloop : kill_process, &pid)) { in thermometer_wait()
542 pid_t pid = -1; in main() local
[all …]
/openbmc/linux/drivers/tty/
H A Dtty_jobctrl.c36 struct pid *pgrp, *tty_pgrp; in __tty_check_change()
200 struct pid *tty_pgrp = NULL; in tty_signal_session_leader()
289 struct pid *old_pgrp; in disassociate_ctty()
424 struct pid *pgrp; in tty_get_pgrp()
441 static struct pid *session_of_pgrp(struct pid *pgrp) in session_of_pgrp()
444 struct pid *sid = NULL; in session_of_pgrp()
468 struct pid *pid; in tiocgpgrp() local
476 pid = tty_get_pgrp(real_tty); in tiocgpgrp()
477 ret = put_user(pid_vnr(pid), p); in tiocgpgrp()
478 put_pid(pid); in tiocgpgrp()
[all …]
/openbmc/linux/Documentation/trace/postprocess/
H A Dtrace-pagealloc-postprocess.pl137 my $pid = $_[0];
140 if (open(STAT, "/proc/$pid/stat")) {
153 my $pid = $_[0];
156 if ($pid == 0) {
163 return "$1-$pid";
167 my $pid = $_[0];
171 if ($pid == 0) {
203 my $pid = $2;
205 $statline = read_statline($pid);
208 $process_pid = guess_process_pid($pid, $statline);
[all …]
/openbmc/linux/arch/um/os-Linux/
H A Dumid.c138 char pid[sizeof("nnnnnnnnn")], *end, *file; in is_umdir_used() local
159 n = read(fd, pid, sizeof(pid)); in is_umdir_used()
170 p = strtoul(pid, &end, 0); in is_umdir_used()
171 if (end == pid) { in is_umdir_used()
212 char pid[sizeof("nnnnnnnnn")], *file; in create_pid_file() local
230 snprintf(pid, sizeof(pid), "%d\n", getpid()); in create_pid_file()
231 n = write(fd, pid, strlen(pid)); in create_pid_file()
232 if (n != strlen(pid)) in create_pid_file()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_syscall_macro.c36 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_KPROBE() local
39 if (pid != filter_pid) in BPF_KPROBE()
71 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_KSYSCALL() local
73 if (pid != filter_pid) in BPF_KSYSCALL()
95 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_KSYSCALL() local
97 if (pid != filter_pid) in BPF_KSYSCALL()
H A Ddynptr_success.c14 int pid, err, val; variable
17 int pid; member
43 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_read_write()
76 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_dynptr_data()
131 sample->pid += index; in ringbuf_callback()
142 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_ringbuf()
156 sample->pid = 10; in test_ringbuf()
161 if (sample->pid != 55) in test_ringbuf()
220 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_adjust()
272 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_adjust_err()
[all …]
H A Dbpf_loop.c25 int pid; variable
70 if (bpf_get_current_pid_tgid() >> 32 != pid) in test_prog()
86 if (bpf_get_current_pid_tgid() >> 32 != pid) in prog_null_ctx()
99 if (bpf_get_current_pid_tgid() >> 32 != pid) in prog_invalid_flags()
112 if (bpf_get_current_pid_tgid() >> 32 != pid) in prog_nested_calls()
141 if (bpf_get_current_pid_tgid() >> 32 != pid) in prog_non_constant_callback()
205 if (bpf_get_current_pid_tgid() >> 32 != pid) in stack_check()
H A Dlocal_storage.c64 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local
70 if (pid != monitored_pid) in BPF_PROG()
141 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local
145 if (pid != monitored_pid || !sk) in BPF_PROG()
187 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local
191 if (pid != monitored_pid || !sk) in BPF_PROG()
210 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local
213 if (pid != monitored_pid) in BPF_PROG()
/openbmc/linux/arch/um/drivers/
H A Dharddog_user.c34 int in_fds[2], out_fds[2], pid, n, err; in start_watchdog() local
68 pid = run_helper(pre_exec, &data, args); in start_watchdog()
73 if (pid < 0) { in start_watchdog()
74 err = -pid; in start_watchdog()
82 helper_wait(pid); in start_watchdog()
89 helper_wait(pid); in start_watchdog()
H A Dnet_user.c182 int pid, fds[2], err; in change_tramp() local
193 pid = run_helper(change_pre_exec, &pe_data, argv); in change_tramp()
195 if (pid > 0) /* Avoid hang as we won't get data in failure case. */ in change_tramp()
201 if (pid > 0) in change_tramp()
202 helper_wait(pid); in change_tramp()
203 return pid; in change_tramp()
215 int output_len, pid; in change() local
228 pid = change_tramp(argv, output, output_len); in change()
229 if (pid < 0) { in change()
/openbmc/linux/tools/testing/selftests/timens/
H A Dtimer.c75 pid_t pid; in main() local
104 pid = fork(); in main()
105 if (pid < 0) in main()
107 if (pid == 0) { in main()
119 if (waitpid(pid, &status, 0) != pid) in main()
H A Dtimerfd.c82 pid_t pid; in main() local
111 pid = fork(); in main()
112 if (pid < 0) in main()
114 if (pid == 0) { in main()
126 if (waitpid(pid, &status, 0) != pid) in main()
H A Dvfork_exec.c81 pid_t pid; in main() local
109 pid = vfork(); in main()
110 if (pid < 0) in main()
113 if (pid == 0) { in main()
125 if (waitpid(pid, &status, 0) != pid) 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/testing/selftests/x86/
H A Dtest_shadow_stack.c319 pid_t pid; in test_gup() local
364 pid = fork(); in test_gup()
365 if (!pid) { in test_gup()
377 waitpid(pid, &status, 0); in test_gup()
696 int pid; in test_ptrace() local
701 pid = fork(); in test_ptrace()
702 if (!pid) { in test_ptrace()
722 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_SHSTK, &iov)) { in test_ptrace()
769 if (ptrace(PTRACE_DETACH, pid, NULL, NULL)) { in test_ptrace()
774 waitpid(pid, &status, 0); in test_ptrace()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/dscr/
H A Ddscr_inherit_exec_test.c45 pid_t pid; in dscr_inherit_exec() local
62 pid = fork(); in dscr_inherit_exec()
63 if (pid == -1) { in dscr_inherit_exec()
66 } else if (pid) { in dscr_inherit_exec()
69 if (waitpid(pid, &status, 0) == -1) { in dscr_inherit_exec()
/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/tools/perf/tests/
H A Dbackward-ring-buffer.c88 char pid[16], sbuf[STRERR_BUFSIZE]; in test__backward_ring_buffer() local
102 snprintf(pid, sizeof(pid), "%d", getpid()); in test__backward_ring_buffer()
103 pid[sizeof(pid) - 1] = '\0'; in test__backward_ring_buffer()
104 opts.target.tid = opts.target.pid = pid; in test__backward_ring_buffer()
/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/linux/drivers/android/
H A Dbinder_alloc.c222 alloc->pid); in binder_update_page_range()
253 alloc->pid, page_addr); in binder_update_page_range()
343 if (buffer->pid != pid) in debug_low_async_space_locked()
359 alloc->pid, pid, num_buffers, total_alloc_size); in debug_low_async_space_locked()
374 int pid) in binder_alloc_new_buf_locked() argument
389 alloc->pid); in binder_alloc_new_buf_locked()
463 alloc->pid, size); in binder_alloc_new_buf_locked()
518 buffer->pid = pid; in binder_alloc_new_buf_locked()
566 int pid) in binder_alloc_new_buf() argument
611 alloc->pid, in binder_delete_free_buffer()
[all …]
/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()

12345678910>>...88