Searched refs:pid (Results 1 - 25 of 1381) sorted by relevance

1234567891011>>

/linux-master/arch/x86/um/
H A Dptrace_user.c9 int ptrace_getregs(long pid, unsigned long *regs_out) argument
11 if (ptrace(PTRACE_GETREGS, pid, 0, regs_out) < 0)
16 int ptrace_setregs(long pid, unsigned long *regs) argument
18 if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0)
/linux-master/arch/um/include/shared/
H A Dregisters.h11 extern int save_i387_registers(int pid, unsigned long *fp_regs);
12 extern int restore_i387_registers(int pid, unsigned long *fp_regs);
13 extern int save_fp_registers(int pid, unsigned long *fp_regs);
14 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
15 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
16 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
17 extern int save_registers(int pid, struct uml_pt_regs *regs);
18 extern int restore_pid_registers(int pid, struct uml_pt_regs *regs);
19 extern int init_pid_registers(int pid);
21 extern int get_fp_registers(int pid, unsigne
[all...]
/linux-master/include/linux/
H A Dpid.h19 * What is struct pid?
21 * A struct pid is the kernel's internal notion of a process identifier.
23 * there are processes attached to it the struct pid lives in a hash
25 * quickly from the numeric pid value. The attached processes may be
26 * quickly accessed by following pointers from struct pid.
29 * problem. The process originally with that pid may have exited and the
30 * pid allocator wrapped, and another process could have come along
31 * and been assigned that pid.
38 * a struct pid is about 64 bytes.
40 * Holding a reference to struct pid solve
59 struct pid struct
84 get_pid(struct pid *pid) argument
93 pid_has_task(struct pid *pid, enum pid_type type) argument
151 ns_of_pid(struct pid *pid) argument
165 is_child_reaper(struct pid *pid) argument
181 pid_nr(struct pid *pid) argument
[all...]
/linux-master/tools/testing/selftests/powerpc/signal/
H A Dsigreturn_kernel.c35 pid_t pid; local
37 pid = fork();
38 if (pid == 0) {
43 return pid;
46 static int expect_segv(pid_t pid) argument
50 waitpid(pid, &child_ret, 0);
62 pid_t pid; local
73 pid = fork_child();
74 expect_segv(pid);
78 pid
[all...]
/linux-master/arch/x86/um/os-Linux/
H A Dprctl.c9 int os_arch_prctl(int pid, int option, unsigned long *arg2) argument
11 return ptrace(PTRACE_ARCH_PRCTL, pid, (unsigned long) arg2, option);
H A Dregisters.c22 int save_i387_registers(int pid, unsigned long *fp_regs) argument
24 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0)
29 int save_fp_registers(int pid, unsigned long *fp_regs) argument
37 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) < 0)
42 return save_i387_registers(pid, fp_regs);
45 int restore_i387_registers(int pid, unsigned long *fp_regs) argument
47 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0)
52 int restore_fp_registers(int pid, unsigned long *fp_regs) argument
59 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) < 0)
64 return restore_i387_registers(pid, fp_reg
69 save_fpx_registers(int pid, unsigned long *fp_regs) argument
76 restore_fpx_registers(int pid, unsigned long *fp_regs) argument
83 get_fp_registers(int pid, unsigned long *regs) argument
91 put_fp_registers(int pid, unsigned long *regs) argument
99 arch_init_registers(int pid) argument
116 get_fp_registers(int pid, unsigned long *regs) argument
121 put_fp_registers(int pid, unsigned long *regs) argument
126 arch_init_registers(int pid) argument
[all...]
/linux-master/tools/perf/include/bpf/
H A Dpid_filter.h10 static int pid_filter__add(struct bpf_map *pids, pid_t pid) argument
13 return bpf_map_update_elem(pids, &pid, &value, BPF_NOEXIST);
16 static bool pid_filter__has(struct bpf_map *pids, pid_t pid) argument
18 return bpf_map_lookup_elem(pids, &pid) != NULL;
/linux-master/arch/um/include/shared/skas/
H A Dmm_id.h12 int pid; member in union:mm_id::__anon135
/linux-master/tools/testing/selftests/pid_namespace/
H A Dregression_enomem.c19 * 35f71bc0a09a ("fork: report pid reservation failure properly")
20 * b26ebfe12f34 ("pid: Fix error return value in some cases")
24 pid_t pid; local
31 pid = fork();
32 ASSERT_GE(pid, 0);
34 if (pid == 0)
37 EXPECT_EQ(0, wait_for_pid(pid));
39 pid = fork();
40 ASSERT_LT(pid, 0);
/linux-master/tools/testing/selftests/proc/
H A Dproc-loadavg-001.c16 /* Test that /proc/loadavg correctly reports last pid in pid namespace. */
27 pid_t pid; local
36 pid = fork();
37 if (pid == -1)
39 if (pid == 0) {
52 /* pid 1 */
56 pid = fork();
57 if (pid == -1)
59 if (pid
[all...]
H A Dproc-tid0.c26 static pid_t pid = -1; variable
30 if (pid > 0) {
31 kill(pid, SIGKILL);
47 pid = fork();
48 if (pid == 0) {
55 } else if (pid > 0) {
60 snprintf(buf, sizeof(buf), "/proc/%u/task", pid);
H A Dthread-self.c30 pid_t pid, tid; local
33 pid = sys_getpid();
35 snprintf(buf1, sizeof(buf1), "%u/task/%u", pid, tid);
50 pid_t pid; local
59 pid = clone(f, stack + PAGE_SIZE, CLONE_THREAD|CLONE_SIGHAND|CLONE_VM, (void *)1);
60 assert(pid > 0);
/linux-master/include/trace/events/
H A Dgpu_mem.h25 * @pid: Put 0 for global total, while positive pid for process total.
32 TP_PROTO(uint32_t gpu_id, uint32_t pid, uint64_t size),
34 TP_ARGS(gpu_id, pid, size),
38 __field(uint32_t, pid)
44 __entry->pid = pid;
48 TP_printk("gpu_id=%u pid=%u size=%llu",
50 __entry->pid,
H A Doom.h17 __field( pid_t, pid)
23 __entry->pid = task->pid;
28 TP_printk("pid=%d comm=%s oom_score_adj=%hd",
29 __entry->pid, __entry->comm, __entry->oom_score_adj)
75 TP_PROTO(int pid),
77 TP_ARGS(pid),
80 __field(int, pid)
84 __entry->pid = pid;
[all...]
/linux-master/tools/perf/scripts/perl/bin/
H A Drw-by-pid-report3 perf script $@ -s "$PERF_EXEC_PATH"/scripts/perl/rw-by-pid.pl
/linux-master/arch/um/os-Linux/
H A Dregisters.c14 int save_registers(int pid, struct uml_pt_regs *regs) argument
18 err = ptrace(PTRACE_GETREGS, pid, 0, regs->gp);
24 int restore_pid_registers(int pid, struct uml_pt_regs *regs) argument
28 err = ptrace(PTRACE_SETREGS, pid, 0, regs->gp);
39 int init_pid_registers(int pid) argument
43 err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs);
47 arch_init_registers(pid);
48 get_fp_registers(pid, exec_fp_regs);
H A Dstart_up.c32 int pid = os_getpid(), ppid = getppid(); local
38 kill(pid, SIGKILL);
40 kill(pid, SIGSTOP);
48 if (sc_result == pid)
95 int pid, n, status; local
99 pid = fork();
100 if (pid == 0)
102 else if (pid < 0)
105 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED));
112 return pid;
121 stop_ptraced_child(int pid, int exitcode, int mustexit) argument
167 int pid, n, status, count=0; local
261 int pid, syscall, n, status; local
358 int pid; local
[all...]
/linux-master/arch/nios2/include/asm/
H A Dtlb.h14 extern void set_mmu_pid(unsigned long pid);
/linux-master/drivers/i3c/master/mipi-i3c-hci/
H A Ddct.h14 u64 *pid, unsigned int *dcr, unsigned int *bcr);
/linux-master/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-stack.c35 int pid; local
40 pid = fork();
41 if (pid < 0)
44 if (pid) { /* Parent */
/linux-master/tools/bpf/runqslower/
H A Drunqslower.h10 pid_t pid; member in struct:runq_event
/linux-master/tools/bpf/bpftool/skeleton/
H A Dpid_iter.h8 int pid; member in struct:pid_iter_entry
/linux-master/tools/testing/selftests/bpf/progs/
H A Dfexit_sleep.c10 int pid = 0; variable
17 if (bpf_get_current_pid_tgid() >> 32 != pid)
27 if (bpf_get_current_pid_tgid() >> 32 != pid)
/linux-master/kernel/
H A Dpid.c9 * pid-structures are backing objects for tasks sharing a given ID to chain
48 struct pid init_struct_pid = {
105 void put_pid(struct pid *pid) argument
109 if (!pid)
112 ns = pid->numbers[pid->level].ns;
113 if (refcount_dec_and_test(&pid->count)) {
114 kmem_cache_free(ns->pid_cachep, pid);
122 struct pid *pi local
126 free_pid(struct pid *pid) argument
162 struct pid *pid; local
333 struct pid *pid = *task_pid_ptr(task, type); local
341 struct pid *pid; local
361 change_pid(struct task_struct *task, enum pid_type type, struct pid *pid) argument
396 pid_task(struct pid *pid, enum pid_type type) argument
440 struct pid *pid; local
448 get_pid_task(struct pid *pid, enum pid_type type) argument
462 struct pid *pid; local
472 pid_nr_ns(struct pid *pid, struct pid_namespace *ns) argument
486 pid_vnr(struct pid *pid) argument
526 struct pid *pid; local
562 struct pid *pid; local
594 pidfd_create(struct pid *pid, unsigned int flags) argument
686 pidfd_getfd(struct pid *pid, int fd) argument
726 struct pid *pid; local
[all...]
/linux-master/tools/testing/selftests/rlimits/
H A Drlimits-per-userns.c32 pid_t pid = getpid(); local
38 warnx("(pid=%d): Setting RLIMIT_NPROC=%ld", pid, n);
41 err(EXIT_FAILURE, "(pid=%d): setrlimit(RLIMIT_NPROC)", pid);
46 pid_t pid = fork(); local
48 if (pid < 0)
51 if (pid > 0)
52 return pid;
54 pid
91 pid_t pid; local
[all...]

Completed in 252 milliseconds

1234567891011>>