Home
last modified time | relevance | path

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

12345678910>>...16

/tools/include/nolibc/sys/
A Dwait.h25 pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage) in sys_wait4()
35 pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage) in wait4()
41 int sys_waitid(int which, pid_t pid, siginfo_t *infop, int options, struct rusage *rusage) in sys_waitid()
47 int waitid(int which, pid_t pid, siginfo_t *infop, int options) in waitid()
54 pid_t waitpid(pid_t pid, int *status, int options) in waitpid()
58 pid_t id; in waitpid()
111 pid_t wait(int *status) in wait()
/tools/testing/selftests/bpf/progs/
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()
A Dtest_d_path.c10 pid_t my_pid = 0;
25 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
46 pid_t pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG()
/tools/perf/util/
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);
A Dnamespaces.h34 pid_t pid; in DECLARE_RC_STRUCT()
35 pid_t tgid; in DECLARE_RC_STRUCT()
36 pid_t nstgid; in DECLARE_RC_STRUCT()
50 struct nsinfo *nsinfo__new(pid_t pid);
58 pid_t nsinfo__tgid(const struct nsinfo *nsi);
59 pid_t nsinfo__nstgid(const struct nsinfo *nsi);
60 pid_t nsinfo__pid(const struct nsinfo *nsi);
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);
234 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid);
272 int machines__create_kernel_maps(struct machines *machines, pid_t pid);
302 pid_t machine__get_current_tid(struct machine *machine, int cpu);
[all …]
A Dthreads.h27 struct thread *threads__find(struct threads *threads, pid_t tid);
28 struct thread *threads__findnew(struct threads *threads, pid_t pid, pid_t tid, bool *created);
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()
A Djit.h9 pid_t pid, pid_t tid, u64 *nbytes);
/tools/lib/perf/include/perf/
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);
/tools/testing/selftests/resctrl/
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);
/tools/testing/selftests/pid_namespace/
A Dpid_max.c23 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()
288 pid_t pid; in pid_max_nested_limit_outer()
333 pid_t pid; in TEST()
343 pid_t pid; in TEST()
[all …]
/tools/testing/selftests/powerpc/ptrace/
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()
325 int show_fpr(pid_t child, __u64 *fpr) in show_fpr()
344 int write_fpr(pid_t child, __u64 val) in write_fpr()
367 int show_ckpt_fpr(pid_t child, __u64 *fpr) in show_ckpt_fpr()
419 int show_gpr(pid_t child, unsigned long *gpr) in show_gpr()
452 __u64 *peek_fprs(pid_t child) in peek_fprs()
508 int write_gpr(pid_t child, unsigned long val) in write_gpr()
657 int show_vsx(pid_t child, unsigned long *vsx) in show_vsx()
[all …]
A Dptrace-perf-hwbreak.c49 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()
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()
175 static int check_watchpoints(pid_t pid) in check_watchpoints()
190 static int ptrace_fork_child(pid_t *pid) in ptrace_fork_child()
231 pid_t pid; /* PID of child process */ in same_watch_addr_test()
[all …]
/tools/testing/selftests/arm64/mte/
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()
/tools/testing/selftests/powerpc/math/
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()
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()
/tools/include/nolibc/
A Dsys.h339 pid_t fork(void) in fork()
368 pid_t vfork(void) in vfork()
433 pid_t sys_getpgid(pid_t pid) in sys_getpgid()
439 pid_t getpgid(pid_t pid) in getpgid()
456 pid_t getpgrp(void) in getpgrp()
473 pid_t getpid(void) in getpid()
490 pid_t getppid(void) in getppid()
507 pid_t gettid(void) in gettid()
829 int sys_setpgid(pid_t pid, pid_t pgid) in sys_setpgid()
835 int setpgid(pid_t pid, pid_t pgid) in setpgid()
[all …]
/tools/testing/selftests/ptrace/
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()
/tools/testing/selftests/powerpc/pmu/
A Dlib.h23 extern int kill_child_and_wait(pid_t child_pid);
24 extern int wait_for_child(pid_t child_pid);
29 extern pid_t eat_cpu(int (test_function)(void));
/tools/testing/selftests/rlimits/
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()
/tools/testing/selftests/arm64/fp/
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()
112 static int set_zt(pid_t pid, const char zt[ZT_SIG_REG_BYTES]) in set_zt()
122 static void ptrace_za_disabled_read_zt(pid_t child) in ptrace_za_disabled_read_zt()
158 static void ptrace_set_get_zt(pid_t child) in ptrace_set_get_zt()
191 static void ptrace_enable_za_via_zt(pid_t child) in ptrace_enable_za_via_zt()
257 static int do_parent(pid_t child) in do_parent()
260 pid_t pid; in do_parent()
336 pid_t child; in main()
/tools/testing/selftests/clone3/
A Dclone3_cap_checkpoint_restore.c38 pid_t *set_tid, size_t set_tid_size) in call_clone3_set_tid()
41 pid_t pid = -1; in call_clone3_set_tid()
80 pid_t *set_tid, size_t set_tid_size) in test_clone3_set_tid()
136 pid_t pid; in TEST()
139 pid_t set_tid[1]; in TEST()
/tools/testing/selftests/powerpc/signal/
A Dsigreturn_kernel.c33 static pid_t fork_child(void) in fork_child()
35 pid_t pid; in fork_child()
46 static int expect_segv(pid_t pid) in expect_segv()
62 pid_t pid; in test_sigreturn_kernel()
/tools/testing/selftests/exec/
A Dnull-argv.c22 void check_result(pid_t pid, const char *msg) in check_result()
26 if (pid == (pid_t)-1) { in check_result()
49 pid_t pid; in main()

Completed in 29 milliseconds

12345678910>>...16