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

1234567891011>>

/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 init_pid_registers(int pid);
19 extern int get_fp_registers(int pid, unsigned long *regs);
20 extern int put_fp_registers(int pid, unsigned long *regs);
H A Dptrace_user.h12 extern int ptrace_getregs(long pid, unsigned long *regs_out);
13 extern int ptrace_setregs(long pid, unsigned long *regs_in);
/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/include/linux/
H A Dpidfs.h5 struct file *pidfs_alloc_file(struct pid *pid, unsigned int flags);
H A Dpid.h13 * What is struct pid?
15 * A struct pid is the kernel's internal notion of a process identifier.
17 * there are processes attached to it the struct pid lives in a hash
19 * quickly from the numeric pid value. The attached processes may be
20 * quickly accessed by following pointers from struct pid.
23 * problem. The process originally with that pid may have exited and the
24 * pid allocator wrapped, and another process could have come along
25 * and been assigned that pid.
32 * a struct pid is about 64 bytes.
34 * Holding a reference to struct pid solve
55 struct pid struct
81 get_pid(struct pid *pid) argument
90 pid_has_task(struct pid *pid, enum pid_type type) argument
145 ns_of_pid(struct pid *pid) argument
159 is_child_reaper(struct pid *pid) argument
175 pid_nr(struct pid *pid) argument
299 pid_t pid = 0; local
[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/tools/testing/selftests/bpf/progs/
H A Dtest_uprobe.c18 pid_t pid = bpf_get_current_pid_tgid() >> 32; local
20 if (pid != my_pid)
30 pid_t pid = bpf_get_current_pid_tgid() >> 32; local
32 if (pid != my_pid)
42 pid_t pid = bpf_get_current_pid_tgid() >> 32; local
44 if (pid != my_pid)
54 pid_t pid = bpf_get_current_pid_tgid() >> 32; local
56 if (pid != my_pid)
H A Dtask_kfunc_common.h25 struct task_struct *bpf_task_from_pid(s32 pid) __ksym;
31 s32 pid; local
34 status = bpf_probe_read_kernel(&pid, sizeof(pid), &p->pid);
38 return bpf_map_lookup_elem(&__tasks_kfunc_map, &pid);
46 s32 pid; local
48 status = bpf_probe_read_kernel(&pid, sizeof(pid), &p->pid);
[all...]
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/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/arch/x86/um/os-Linux/
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/testing/selftests/powerpc/ptrace/
H A Dptrace-perf-hwbreak.c39 static inline long sys_ptrace(long request, pid_t pid, unsigned long addr, unsigned long data) argument
41 return syscall(__NR_ptrace, request, pid, addr, data);
49 static long ptrace_getregs(pid_t pid, struct pt_regs *result) argument
51 return sys_ptrace(PTRACE_GETREGS, pid, 0, (unsigned long)result);
54 static long ptrace_setregs(pid_t pid, struct pt_regs *result) argument
56 return sys_ptrace(PTRACE_SETREGS, pid, 0, (unsigned long)result);
59 static long ptrace_cont(pid_t pid, long signal) argument
61 return sys_ptrace(PTRACE_CONT, pid, 0, signal);
64 static long ptrace_singlestep(pid_t pid, long signal) argument
66 return sys_ptrace(PTRACE_SINGLESTEP, pid,
69 ppc_ptrace_gethwdbginfo(pid_t pid, struct ppc_debug_info *dbginfo) argument
74 ppc_ptrace_sethwdbg(pid_t pid, struct ppc_hw_breakpoint *bp_info) argument
79 ppc_ptrace_delhwdbg(pid_t pid, int bp_id) argument
84 ptrace_getreg_pc(pid_t pid, void **pc) argument
98 ptrace_setreg_pc(pid_t pid, void *pc) argument
116 perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
175 check_watchpoints(pid_t pid) argument
190 ptrace_fork_child(pid_t *pid) argument
231 pid_t pid; /* PID of child process */ local
385 pid_t pid; /* PID of child process */ local
[all...]
/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,
/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/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/kernel/
H A Dpid.c9 * pid-structures are backing objects for tasks sharing a given ID to chain
49 struct pid init_struct_pid = {
112 void put_pid(struct pid *pid) argument
116 if (!pid)
119 ns = pid->numbers[pid->level].ns;
120 if (refcount_dec_and_test(&pid->count)) {
121 kmem_cache_free(ns->pid_cachep, pid);
129 struct pid *pi local
133 free_pid(struct pid *pid) argument
169 struct pid *pid; local
342 struct pid *pid = *task_pid_ptr(task, type); local
350 struct pid *pid; local
375 change_pid(struct task_struct *task, enum pid_type type, struct pid *pid) argument
409 pid_task(struct pid *pid, enum pid_type type) argument
453 struct pid *pid; local
461 get_pid_task(struct pid *pid, enum pid_type type) argument
475 struct pid *pid; local
485 pid_nr_ns(struct pid *pid, struct pid_namespace *ns) argument
499 pid_vnr(struct pid *pid) argument
540 struct pid *pid; local
571 struct pid *pid; local
603 pidfd_create(struct pid *pid, unsigned int flags) argument
709 pidfd_getfd(struct pid *pid, int fd) argument
749 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 267 milliseconds

1234567891011>>