Home
last modified time | relevance | path

Searched refs:pid_t (Results 1 – 25 of 534) sorted by relevance

12345678910>>...22

/linux/include/linux/
H A Dpid.h133 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid,
179 static inline pid_t pid_nr(struct pid *pid) in pid_nr()
181 pid_t nr = 0; in pid_nr()
187 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
188 pid_t pid_vnr(struct pid *pid);
232 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
234 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr()
239 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns()
244 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr()
250 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr()
[all …]
H A Delfcore.h38 pid_t pr_pid;
39 pid_t pr_ppid;
40 pid_t pr_pgrp;
41 pid_t pr_sid;
66 pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
/linux/tools/include/nolibc/
H A Dsys.h342 pid_t sys_fork(void) in sys_fork()
357 pid_t fork(void) in fork()
364 pid_t sys_vfork(void) in sys_vfork()
384 pid_t vfork(void) in vfork()
449 pid_t sys_getpgid(pid_t pid) in sys_getpgid()
455 pid_t getpgid(pid_t pid) in getpgid()
466 pid_t sys_getpgrp(void) in sys_getpgrp()
472 pid_t getpgrp(void) in getpgrp()
483 pid_t sys_getpid(void) in sys_getpid()
489 pid_t getpid(void) in getpid()
[all …]
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h64 int start_trace(pid_t child) in start_trace()
81 int stop_trace(pid_t child) in stop_trace()
93 int cont_trace(pid_t child) in cont_trace()
105 int ptrace_read_regs(pid_t child, unsigned long type, unsigned long regs[], in ptrace_read_regs()
125 long ptrace_write_regs(pid_t child, unsigned long type, unsigned long regs[], in ptrace_write_regs()
144 int show_tar_registers(pid_t child, unsigned long *out) in show_tar_registers()
189 int write_tar_registers(pid_t child, unsigned long tar, in write_tar_registers()
233 int show_tm_checkpointed_state(pid_t child, unsigned long *out) in show_tm_checkpointed_state()
280 int write_ckpt_tar_registers(pid_t child, unsigned long tar, in write_ckpt_tar_registers()
325 int show_fpr(pid_t child, __u64 *fpr) in show_fpr()
[all …]
H A Dptrace-perf-hwbreak.c39 static inline long sys_ptrace(long request, pid_t pid, unsigned long addr, unsigned long data) in sys_ptrace()
49 static long ptrace_getregs(pid_t pid, struct pt_regs *result) in ptrace_getregs()
54 static long ptrace_setregs(pid_t pid, struct pt_regs *result) in ptrace_setregs()
59 static long ptrace_cont(pid_t pid, long signal) in ptrace_cont()
64 static long ptrace_singlestep(pid_t pid, long signal) in ptrace_singlestep()
69 static long ppc_ptrace_gethwdbginfo(pid_t pid, struct ppc_debug_info *dbginfo) in ppc_ptrace_gethwdbginfo()
74 static long ppc_ptrace_sethwdbg(pid_t pid, struct ppc_hw_breakpoint *bp_info) in ppc_ptrace_sethwdbg()
79 static long ppc_ptrace_delhwdbg(pid_t pid, int bp_id) in ppc_ptrace_delhwdbg()
84 static long ptrace_getreg_pc(pid_t pid, void **pc) in ptrace_getreg_pc()
98 static long ptrace_setreg_pc(pid_t pid, void *pc) in ptrace_setreg_pc()
[all …]
H A Dptrace-hwbreak.c52 static void get_dbginfo(pid_t child_pid, struct ppc_debug_info *dbginfo) in get_dbginfo()
212 static void check_success(pid_t child_pid, const char *name, const char *type, in check_success()
246 static void ptrace_set_debugreg(pid_t child_pid, unsigned long wp_addr) in ptrace_set_debugreg()
254 static int ptrace_sethwdebug(pid_t child_pid, struct ppc_hw_breakpoint *info) in ptrace_sethwdebug()
265 static void ptrace_delhwdebug(pid_t child_pid, int wh) in ptrace_delhwdebug()
277 static int test_set_debugreg(pid_t child_pid) in test_set_debugreg()
318 static int test_set_debugreg_kernel_userspace(pid_t child_pid) in test_set_debugreg_kernel_userspace()
351 static void test_sethwdebug_exact(pid_t child_pid) in test_sethwdebug_exact()
381 static void test_sethwdebug_exact_kernel_userspace(pid_t child_pid) in test_sethwdebug_exact_kernel_userspace()
397 static void test_sethwdebug_range_aligned(pid_t child_pid) in test_sethwdebug_range_aligned()
[all …]
/linux/tools/perf/util/
H A Dmachine.h34 pid_t pid;
59 pid_t *current_tid;
105 struct thread *machine__find_thread(struct machine *machine, pid_t pid,
106 pid_t tid);
161 struct machine *machines__add(struct machines *machines, pid_t pid,
163 struct machine *machines__find(struct machines *machines, pid_t pid);
164 struct machine *machines__findnew(struct machines *machines, pid_t pid);
165 struct machine *machines__find_guest(struct machines *machines, pid_t pid);
166 struct thread *machines__findnew_guest_code(struct machines *machines, pid_t pid);
167 struct thread *machine__findnew_guest_code(struct machine *machine, pid_t pid);
[all …]
H A Dthread_map.h12 struct perf_thread_map *thread_map__new_by_pid(pid_t pid);
13 struct perf_thread_map *thread_map__new_by_tid(pid_t tid);
14 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid);
25 bool thread_map__has(struct perf_thread_map *threads, pid_t pid);
H A Dthread.h35 pid_t pid_; /* Not all tools update this */ in DECLARE_RC_STRUCT()
37 pid_t tid; in DECLARE_RC_STRUCT()
39 pid_t ppid; in DECLARE_RC_STRUCT()
77 struct thread *thread__new(pid_t pid, pid_t tid);
144 static inline pid_t thread__pid(const struct thread *thread) in thread__pid()
149 static inline void thread__set_pid(struct thread *thread, pid_t pid_) in thread__set_pid()
154 static inline pid_t thread__tid(const struct thread *thread) in thread__tid()
159 static inline void thread__set_tid(struct thread *thread, pid_t tid) in thread__set_tid()
164 static inline pid_t thread__ppid(const struct thread *thread) in thread__ppid()
169 static inline void thread__set_ppid(struct thread *thread, pid_t ppid) in thread__set_ppid()
H A Dthread_map.c34 struct perf_thread_map *thread_map__new_by_pid(pid_t pid) in thread_map__new_by_pid()
62 struct perf_thread_map *thread_map__new_by_tid(pid_t tid) in thread_map__new_by_tid()
96 pid_t pid = strtol(dirent->d_name, &end, 10); in thread_map__new_all_cpus()
151 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid) in thread_map__new()
166 pid_t pid, prev_pid = INT_MAX; in thread_map__new_by_pid_str()
225 pid_t tid, prev_tid = INT_MAX; in thread_map__new_by_tid_str()
292 static int get_comm(char **comm, pid_t pid) in get_comm()
318 pid_t pid = perf_thread_map__pid(map, i); in comm_init()
353 perf_thread_map__set_pid(threads, i, (pid_t) event->entries[i].pid); in thread_map__copy_event()
371 bool thread_map__has(struct perf_thread_map *threads, pid_t pid) in thread_map__has()
H A Dnamespaces.c62 static int nsinfo__get_nspid(pid_t *tgid, pid_t *nstgid, bool *in_pidns, const char *path) in nsinfo__get_nspid()
76 *tgid = (pid_t)strtol(strrchr(statln, '\t'), NULL, 10); in nsinfo__get_nspid()
82 *nstgid = (pid_t)strtol(nspid, NULL, 10); in nsinfo__get_nspid()
153 struct nsinfo *nsinfo__new(pid_t pid) in nsinfo__new()
253 pid_t nsinfo__tgid(const struct nsinfo *nsi) in nsinfo__tgid()
258 pid_t nsinfo__nstgid(const struct nsinfo *nsi) in nsinfo__nstgid()
263 pid_t nsinfo__pid(const struct nsinfo *nsi) in nsinfo__pid()
375 pid_t tgid = 0, nstgid = 0; in nsinfo__is_in_root_namespace()
/linux/tools/testing/selftests/pid_namespace/
H A Dpid_max.c20 static pid_t do_clone(int (*fn)(void *), void *arg, int flags) in do_clone()
23 pid_t ret; in do_clone()
41 pid_t pid; in pid_max_cb()
86 pid_t pids[2]; in pid_max_nested_inner()
138 pid_t pid; in pid_max_nested_inner()
160 pid_t pids[1000]; in pid_max_nested_outer()
162 pid_t pid; in pid_max_nested_outer()
230 pid_t pid; in pid_max_nested_limit_inner()
231 pid_t pids[1000]; in pid_max_nested_limit_inner()
288 pid_t pid; in pid_max_nested_limit_outer()
[all …]
/linux/include/trace/events/
H A Dsched.h24 __field( pid_t, pid )
149 __field( pid_t, pid )
231 __field( pid_t, prev_pid )
235 __field( pid_t, next_pid )
280 __field( pid_t, pid )
307 __field( pid_t, pid )
343 __field( pid_t, pid )
379 __field( pid_t, pid )
404 __field( pid_t, parent_pid )
406 __field( pid_t, child_pid )
[all …]
/linux/tools/testing/selftests/resctrl/
H A Dresctrl.h143 pid_t bm_pid);
177 int taskset_benchmark(pid_t bm_pid, int cpu_no, cpu_set_t *old_affinity);
178 int taskset_restore(pid_t bm_pid, cpu_set_t *old_affinity);
181 int write_bm_pid_to_resctrl(pid_t bm_pid, const char *ctrlgrp, const char *mongrp);
182 int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu,
190 struct resctrl_val_param *param, pid_t bm_pid);
210 int perf_open(struct perf_event_attr *pea, pid_t pid, int cpu_no);
213 const char *filename, pid_t bm_pid);
214 int measure_llc_resctrl(const char *filename, pid_t bm_pid);
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_uprobe.c8 pid_t my_pid = 0;
18 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_UPROBE()
30 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_UPROBE()
42 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_URETPROBE()
54 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_UPROBE()
69 pid_t pid = bpf_get_current_pid_tgid() >> 32;
91 pid_t pid = bpf_get_current_pid_tgid() >> 32;
/linux/tools/include/nolibc/sys/
H A Dwait.h24 int sys_waitid(int which, pid_t pid, siginfo_t *infop, int options, struct rusage *rusage) in sys_waitid()
30 int waitid(int which, pid_t pid, siginfo_t *infop, int options) in waitid()
37 pid_t waitpid(pid_t pid, int *status, int options) in waitpid()
41 pid_t id; in waitpid()
100 pid_t wait(int *status) in wait()
/linux/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c15 static int sys_rt_sigqueueinfo(pid_t tgid, int sig, siginfo_t *uinfo) in sys_rt_sigqueueinfo()
20 static int sys_rt_tgsigqueueinfo(pid_t tgid, pid_t tid, in sys_rt_tgsigqueueinfo()
26 static int sys_ptrace(int request, pid_t pid, void *addr, void *data) in sys_ptrace()
44 static int check_error_paths(pid_t child) in check_error_paths()
105 int check_direct_path(pid_t child, int shared, int nr) in check_direct_path()
157 pid_t child; in main()
168 pid_t ppid = getppid(); in main()
/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_gcr_el1_cswitch.c30 pid_t pid = *((pid_t *)x); in execute_thread()
31 pid_t tid = gettid(); in execute_thread()
69 int execute_test(pid_t pid) in execute_test()
90 pid_t pid; in mte_gcr_fork_test()
92 pid_t cpid; in mte_gcr_fork_test()
/linux/tools/testing/selftests/arm64/fp/
H A Dzt-ptrace.c56 static struct user_za_header *get_za(pid_t pid, void **buf, size_t *size) in get_za()
93 static int set_za(pid_t pid, const struct user_za_header *za) in set_za()
102 static int get_zt(pid_t pid, char zt[ZT_SIG_REG_BYTES]) in get_zt()
111 static int set_zt(pid_t pid, const char zt[ZT_SIG_REG_BYTES]) in set_zt()
121 static void ptrace_za_disabled_read_zt(pid_t child) in ptrace_za_disabled_read_zt()
157 static void ptrace_set_get_zt(pid_t child) in ptrace_set_get_zt()
190 static void ptrace_enable_za_via_zt(pid_t child) in ptrace_enable_za_via_zt()
256 static int do_parent(pid_t child) in do_parent()
259 pid_t pid; in do_parent()
335 pid_t child; in main()
H A Dza-ptrace.c61 static struct user_za_header *get_za(pid_t pid, void **buf, size_t *size) in get_za()
98 static int set_za(pid_t pid, const struct user_za_header *za) in set_za()
108 static void ptrace_set_get_vl(pid_t child, unsigned int vl, bool *supported) in ptrace_set_get_vl()
151 static void ptrace_set_no_data(pid_t child, unsigned int vl) in ptrace_set_no_data()
192 static void ptrace_set_get_data(pid_t child, unsigned int vl) in ptrace_set_get_data()
250 static int do_parent(pid_t child) in do_parent()
253 pid_t pid; in do_parent()
345 pid_t child; in main()
/linux/tools/testing/selftests/rlimits/
H A Drlimits-per-userns.c32 pid_t pid = getpid(); in setrlimit_nproc()
44 static pid_t fork_child(void) in fork_child()
46 pid_t pid = fork(); in fork_child()
88 pid_t child[NR_CHILDS]; in main()
91 pid_t pid; in main()
120 pid_t ret = waitpid(child[i], &wstatus[i], WNOHANG); in main()
/linux/tools/lib/perf/include/perf/
H A Dthreadmap.h11 LIBPERF_API struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array);
13 LIBPERF_API void perf_thread_map__set_pid(struct perf_thread_map *map, int idx, pid_t pid);
16 LIBPERF_API pid_t perf_thread_map__pid(struct perf_thread_map *map, int idx);
17 LIBPERF_API int perf_thread_map__idx(struct perf_thread_map *map, pid_t pid);
/linux/tools/testing/selftests/powerpc/math/
H A Dfpu_syscall.c19 extern int test_fpu(double *darray, pid_t *pid);
25 pid_t fork_pid; in syscall_fpu()
52 pid_t pid2; in test_syscall_fpu()
53 pid_t pid = fork(); in test_syscall_fpu()
H A Dvmx_syscall.c23 extern int test_vmx(vector int *varray, pid_t *pid);
27 pid_t fork_pid; in vmx_syscall()
51 pid_t pid2; in test_vmx_syscall()
52 pid_t pid; in test_vmx_syscall()
/linux/include/linux/sched/
H A Dtask.h37 pid_t *set_tid;
98 extern pid_t kernel_clone(struct kernel_clone_args *kargs);
103 extern pid_t kernel_thread(int (*fn)(void *), void *arg, const char *name,
105 extern pid_t user_mode_thread(int (*fn)(void *), void *arg, unsigned long flags);
106 extern long kernel_wait4(pid_t, int __user *, int, struct rusage *);
107 int kernel_wait(pid_t pid, int *stat);

12345678910>>...22