/linux/tools/perf/util/ |
A D | machine.h | 43 pid_t pid; 57 pid_t *current_tid; 107 struct thread *machine__find_thread(struct machine *machine, pid_t pid, 108 pid_t tid); 163 struct machine *machines__add(struct machines *machines, pid_t pid, 166 struct machine *machines__find(struct machines *machines, pid_t pid); 167 struct machine *machines__findnew(struct machines *machines, pid_t pid); 213 struct thread *__machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid); 214 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid); 268 pid_t machine__get_current_tid(struct machine *machine, int cpu); [all …]
|
A D | thread_map.h | 14 struct perf_thread_map *thread_map__new_by_pid(pid_t pid); 15 struct perf_thread_map *thread_map__new_by_tid(pid_t tid); 18 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid); 29 bool thread_map__has(struct perf_thread_map *threads, pid_t pid);
|
A D | thread_map.c | 33 struct perf_thread_map *thread_map__new_by_pid(pid_t pid) in thread_map__new_by_pid() 61 struct perf_thread_map *thread_map__new_by_tid(pid_t tid) in thread_map__new_by_tid() 95 pid_t pid = strtol(dirent->d_name, &end, 10); in __thread_map__new_all_cpus() 170 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid) in thread_map__new() 188 pid_t pid, prev_pid = INT_MAX; in thread_map__new_by_pid_str() 247 pid_t tid, prev_tid = INT_MAX; in thread_map__new_by_tid_str() 318 static int get_comm(char **comm, pid_t pid) in get_comm() 344 pid_t pid = perf_thread_map__pid(map, i); in comm_init() 379 perf_thread_map__set_pid(threads, i, (pid_t) event->entries[i].pid); in thread_map__copy_event() 397 bool thread_map__has(struct perf_thread_map *threads, pid_t pid) in thread_map__has()
|
A D | namespaces.h | 33 pid_t pid; 34 pid_t tgid; 35 pid_t nstgid; 49 struct nsinfo *nsinfo__new(pid_t pid);
|
A D | thread.h | 38 pid_t pid_; /* Not all tools update this */ 39 pid_t tid; 40 pid_t ppid; 68 struct thread *thread__new(pid_t pid, pid_t tid);
|
/linux/tools/testing/selftests/powerpc/ptrace/ |
A D | ptrace.h | 60 int start_trace(pid_t child) in start_trace() 77 int stop_trace(pid_t child) in stop_trace() 89 int cont_trace(pid_t child) in cont_trace() 321 int show_fpr(pid_t child, unsigned long *fpr) in show_fpr() 340 int write_fpr(pid_t child, unsigned long val) in write_fpr() 363 int show_ckpt_fpr(pid_t child, unsigned long *fpr) in show_ckpt_fpr() 415 int show_gpr(pid_t child, unsigned long *gpr) in show_gpr() 440 int write_gpr(pid_t child, unsigned long val) in write_gpr() 529 int show_vmx(pid_t child, unsigned long vmx[][2]) in show_vmx() 589 int show_vsx(pid_t child, unsigned long *vsx) in show_vsx() [all …]
|
A D | ptrace-perf-hwbreak.c | 155 static int test1(pid_t child_pid) in test1() 180 static int test2(pid_t child_pid) in test2() 209 static int test3(pid_t child_pid) in test3() 234 static int test4(pid_t child_pid) in test4() 263 static int test5(pid_t child_pid) in test5() 302 static int test6(pid_t child_pid) in test6() 340 static int test7(pid_t child_pid) in test7() 365 static int test8(pid_t child_pid) in test8() 571 static int do_test(const char *msg, int (*fun)(pid_t arg), pid_t arg) in do_test() 600 static int test(pid_t child_pid) in test() [all …]
|
A D | ptrace-hwbreak.c | 51 static void get_dbginfo(pid_t child_pid, struct ppc_debug_info *dbginfo) in get_dbginfo() 264 static void ptrace_delhwdebug(pid_t child_pid, int wh) in ptrace_delhwdebug() 276 static int test_set_debugreg(pid_t child_pid) in test_set_debugreg() 317 static int test_set_debugreg_kernel_userspace(pid_t child_pid) in test_set_debugreg_kernel_userspace() 350 static void test_sethwdebug_exact(pid_t child_pid) in test_sethwdebug_exact() 396 static void test_sethwdebug_range_aligned(pid_t child_pid) in test_sethwdebug_range_aligned() 432 static void test_multi_sethwdebug_range(pid_t child_pid) in test_multi_sethwdebug_range() 495 static void test_sethwdebug_range_unaligned(pid_t child_pid) in test_sethwdebug_range_unaligned() 532 static void test_sethwdebug_range_unaligned_dar(pid_t child_pid) in test_sethwdebug_range_unaligned_dar() 550 static void test_sethwdebug_dawr_max_range(pid_t child_pid) in test_sethwdebug_dawr_max_range() [all …]
|
/linux/include/trace/events/ |
A D | sched.h | 24 __field( pid_t, pid ) 149 __field( pid_t, pid ) 279 __field( pid_t, pid ) 306 __field( pid_t, pid ) 352 __field( pid_t, pid ) 406 __field( pid_t, pid ) 441 __field( pid_t, pid ) 499 __field( pid_t, pid ) 533 __field( pid_t, pid ) 560 __field( pid_t, pid ) [all …]
|
/linux/tools/testing/selftests/ptrace/ |
A D | peeksiginfo.c | 15 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/include/nolibc/ |
A D | nolibc.h | 1513 pid_t sys_fork(void) in sys_fork() 1541 pid_t sys_getpgid(pid_t pid) in sys_getpgid() 1708 int sys_setpgid(pid_t pid, pid_t pgid) in sys_setpgid() 1793 pid_t sys_waitpid(pid_t pid, int *status, int options) in sys_waitpid() 1945 pid_t fork(void) in fork() 1981 pid_t getpgid(pid_t pid) in getpgid() 1993 pid_t getpgrp(void) in getpgrp() 2005 pid_t getpid(void) in getpid() 2212 int setpgid(pid_t pid, pid_t pgid) in setpgid() 2224 pid_t setsid(void) in setsid() [all …]
|
/linux/tools/testing/selftests/arm64/mte/ |
A D | check_gcr_el1_cswitch.c | 41 pid_t pid = *((pid_t *)x); in execute_thread() 42 pid_t tid = gettid(); in execute_thread() 80 int execute_test(pid_t pid) in execute_test() 101 pid_t pid; in mte_gcr_fork_test() 103 pid_t cpid; in mte_gcr_fork_test()
|
/linux/tools/testing/selftests/rlimits/ |
A D | rlimits-per-userns.c | 32 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/include/linux/ |
A D | elfcore.h | 38 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;
|
A D | agpgart.h | 64 pid_t pid; /* pid of process */ 92 pid_t pid; 100 pid_t pid; 115 pid_t my_pid;
|
A D | sched.h | 941 pid_t pid; 942 pid_t tgid; 1522 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr() 1532 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr() 1538 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr() 1563 static inline pid_t task_pgrp_vnr(struct task_struct *tsk) in task_pgrp_vnr() 1584 static inline pid_t task_tgid_vnr(struct task_struct *tsk) in task_tgid_vnr() 1591 pid_t pid = 0; in task_ppid_nr_ns() 1607 static inline pid_t task_pgrp_nr(struct task_struct *tsk) in task_pgrp_nr() 1902 extern struct task_struct *find_task_by_vpid(pid_t nr); [all …]
|
A D | pid.h | 136 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, 181 static inline pid_t pid_nr(struct pid *pid) in pid_nr() 183 pid_t nr = 0; in pid_nr() 189 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns); 190 pid_t pid_vnr(struct pid *pid);
|
/linux/tools/testing/selftests/pidfd/ |
A D | pidfd_wait.c | 29 static pid_t sys_clone3(struct clone_args *args) in sys_clone3() 34 static int sys_waitid(int which, pid_t pid, siginfo_t *info, int options, in sys_waitid() 43 pid_t parent_tid = -1; in TEST() 51 pid_t pid; in TEST() 92 pid_t parent_tid = -1; in TEST() 100 pid_t pid; in TEST() 145 pid_t parent_tid = -1; in TEST() 152 pid_t pid; in TEST()
|
/linux/tools/testing/selftests/powerpc/math/ |
A D | fpu_syscall.c | 18 extern int test_fpu(double *darray, pid_t *pid); 26 pid_t fork_pid; in syscall_fpu() 50 pid_t pid2; in test_syscall_fpu() 51 pid_t pid = fork(); in test_syscall_fpu()
|
A D | vmx_syscall.c | 23 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/tools/testing/selftests/arm64/fp/ |
A D | sve-ptrace.c | 53 static int get_fpsimd(pid_t pid, struct user_fpsimd_state *fpsimd) in get_fpsimd() 62 static struct user_sve_header *get_sve(pid_t pid, void **buf, size_t *size) in get_sve() 99 static int set_sve(pid_t pid, const struct user_sve_header *sve) in set_sve() 109 static void ptrace_set_get_inherit(pid_t child) in ptrace_set_get_inherit() 159 static void ptrace_set_get_vl(pid_t child, unsigned int vl, bool *supported) in ptrace_set_get_vl() 212 static void ptrace_sve_fpsimd(pid_t child) in ptrace_sve_fpsimd() 269 static void ptrace_set_sve_get_sve_data(pid_t child, unsigned int vl) in ptrace_set_sve_get_sve_data() 361 static void ptrace_set_sve_get_fpsimd_data(pid_t child, unsigned int vl) in ptrace_set_sve_get_fpsimd_data() 439 static int do_parent(pid_t child) in do_parent() 442 pid_t pid; in do_parent() [all …]
|
/linux/tools/testing/selftests/clone3/ |
A D | clone3_cap_checkpoint_restore.c | 42 pid_t *set_tid, size_t set_tid_size) in call_clone3_set_tid() 45 pid_t pid = -1; in call_clone3_set_tid() 84 pid_t *set_tid, size_t set_tid_size) in test_clone3_set_tid() 140 pid_t pid; in TEST() 143 pid_t set_tid[1]; in TEST()
|
/linux/include/linux/sched/ |
A D | task.h | 30 pid_t *set_tid; 86 extern pid_t kernel_clone(struct kernel_clone_args *kargs); 90 extern pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); 91 extern long kernel_wait4(pid_t, int __user *, int, struct rusage *); 92 int kernel_wait(pid_t pid, int *stat);
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | profiler.h | 56 pid_t ancestor_pids[MAX_ANCESTORS]; 64 pid_t pid; 99 pid_t kill_target_pid; 112 pid_t parent_pid; 124 pid_t parent_pid;
|
/linux/drivers/char/agp/ |
A D | compat_ioctl.h | 97 struct agp_file_private *agp_find_private(pid_t pid); 98 struct agp_client *agp_create_client(pid_t id); 99 int agp_remove_client(pid_t id); 104 struct agp_client *agp_find_client_by_pid(pid_t id);
|