| /linux/include/linux/ |
| A D | pid.h | 175 static inline pid_t pid_nr(struct pid *pid) in pid_nr() 177 pid_t nr = 0; in pid_nr() 183 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns); 184 pid_t pid_vnr(struct pid *pid); 230 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr() 240 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr() 246 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr() 271 static inline pid_t task_pgrp_vnr(struct task_struct *tsk) in task_pgrp_vnr() 292 static inline pid_t task_tgid_vnr(struct task_struct *tsk) in task_tgid_vnr() 299 pid_t pid = 0; in task_ppid_nr_ns() [all …]
|
| 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;
|
| /linux/tools/perf/util/ |
| A D | namespaces.h | 34 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); 61 pid_t nsinfo__in_pidns(const struct nsinfo *nsi);
|
| A D | machine.h | 34 pid_t pid; 53 pid_t *current_tid; 99 struct thread *machine__find_thread(struct machine *machine, pid_t pid, 100 pid_t tid); 155 struct machine *machines__add(struct machines *machines, pid_t pid, 157 struct machine *machines__find(struct machines *machines, pid_t pid); 158 struct machine *machines__findnew(struct machines *machines, pid_t pid); 227 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid); 265 int machines__create_kernel_maps(struct machines *machines, pid_t pid); 297 pid_t machine__get_current_tid(struct machine *machine, int cpu); [all …]
|
| A D | thread_map.h | 12 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); 16 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid); 27 bool thread_map__has(struct perf_thread_map *threads, pid_t pid);
|
| A D | thread.h | 35 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() 73 struct thread *thread__new(pid_t pid, pid_t tid); 140 static inline pid_t thread__pid(const struct thread *thread) in thread__pid() 145 static inline void thread__set_pid(struct thread *thread, pid_t pid_) in thread__set_pid() 150 static inline pid_t thread__tid(const struct thread *thread) in thread__tid() 155 static inline void thread__set_tid(struct thread *thread, pid_t tid) in thread__set_tid() 160 static inline pid_t thread__ppid(const struct thread *thread) in thread__ppid() 165 static inline void thread__set_ppid(struct thread *thread, pid_t ppid) in thread__set_ppid()
|
| A D | namespaces.c | 63 static int nsinfo__get_nspid(pid_t *tgid, pid_t *nstgid, bool *in_pidns, const char *path) in nsinfo__get_nspid() 77 *tgid = (pid_t)strtol(strrchr(statln, '\t'), NULL, 10); in nsinfo__get_nspid() 83 *nstgid = (pid_t)strtol(nspid, NULL, 10); in nsinfo__get_nspid() 154 struct nsinfo *nsinfo__new(pid_t pid) in nsinfo__new() 254 pid_t nsinfo__tgid(const struct nsinfo *nsi) in nsinfo__tgid() 259 pid_t nsinfo__nstgid(const struct nsinfo *nsi) in nsinfo__nstgid() 264 pid_t nsinfo__pid(const struct nsinfo *nsi) in nsinfo__pid() 269 pid_t nsinfo__in_pidns(const struct nsinfo *nsi) in nsinfo__in_pidns() 371 pid_t tgid = 0, nstgid = 0; in nsinfo__is_in_root_namespace()
|
| A D | thread_map.c | 34 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() 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()
|
| /linux/tools/testing/selftests/powerpc/ptrace/ |
| A D | ptrace.h | 64 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 D | ptrace-perf-hwbreak.c | 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() 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 …]
|
| A D | ptrace-hwbreak.c | 52 static void get_dbginfo(pid_t child_pid, struct ppc_debug_info *dbginfo) in get_dbginfo() 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() 397 static void test_sethwdebug_range_aligned(pid_t child_pid) in test_sethwdebug_range_aligned() 433 static void test_multi_sethwdebug_range(pid_t child_pid) in test_multi_sethwdebug_range() 496 static void test_sethwdebug_range_unaligned(pid_t child_pid) in test_sethwdebug_range_unaligned() 533 static void test_sethwdebug_range_unaligned_dar(pid_t child_pid) in test_sethwdebug_range_unaligned_dar() 551 static void test_sethwdebug_dawr_max_range(pid_t child_pid) in test_sethwdebug_dawr_max_range() [all …]
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| A D | kfd_smi_events.h | 35 void kfd_smi_event_page_fault_start(struct kfd_node *node, pid_t pid, 38 void kfd_smi_event_page_fault_end(struct kfd_node *node, pid_t pid, 40 void kfd_smi_event_migration_start(struct kfd_node *node, pid_t pid, 45 void kfd_smi_event_migration_end(struct kfd_node *node, pid_t pid, 48 void kfd_smi_event_queue_eviction(struct kfd_node *node, pid_t pid, 50 void kfd_smi_event_queue_restore(struct kfd_node *node, pid_t pid); 52 void kfd_smi_event_unmap_from_gpu(struct kfd_node *node, pid_t pid,
|
| /linux/tools/testing/selftests/resctrl/ |
| A D | resctrl.h | 104 pid_t bm_pid); 135 int taskset_benchmark(pid_t bm_pid, int cpu_no, cpu_set_t *old_affinity); 136 int taskset_restore(pid_t bm_pid, cpu_set_t *old_affinity); 139 int write_bm_pid_to_resctrl(pid_t bm_pid, const char *ctrlgrp, const char *mongrp); 140 int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu, 148 struct resctrl_val_param *param, pid_t bm_pid, 169 int perf_open(struct perf_event_attr *pea, pid_t pid, int cpu_no); 172 const char *filename, pid_t bm_pid); 173 int measure_llc_resctrl(const char *filename, pid_t bm_pid);
|
| /linux/include/trace/events/ |
| A D | sched.h | 24 __field( pid_t, pid ) 149 __field( pid_t, pid ) 282 __field( pid_t, pid ) 309 __field( pid_t, pid ) 355 __field( pid_t, pid ) 409 __field( pid_t, pid ) 443 __field( pid_t, pid ) 479 __field( pid_t, pid ) 537 __field( pid_t, pid ) 568 __field( pid_t, pid ) [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | test_uprobe.c | 8 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()
|
| /linux/tools/include/nolibc/ |
| A D | sys.h | 333 pid_t fork(void) in fork() 399 pid_t sys_getpgid(pid_t pid) in sys_getpgid() 405 pid_t getpgid(pid_t pid) in getpgid() 422 pid_t getpgrp(void) in getpgrp() 439 pid_t getpid(void) in getpid() 456 pid_t getppid(void) in getppid() 473 pid_t gettid(void) in gettid() 1001 int sys_setpgid(pid_t pid, pid_t pgid) in sys_setpgid() 1007 int setpgid(pid_t pid, pid_t pgid) in setpgid() 1024 pid_t setsid(void) in setsid() [all …]
|
| /linux/tools/testing/selftests/arm64/mte/ |
| A D | check_gcr_el1_cswitch.c | 30 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/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/testing/selftests/arm64/fp/ |
| A D | zt-ptrace.c | 54 static struct user_za_header *get_za(pid_t pid, void **buf, size_t *size) in get_za() 91 static int set_za(pid_t pid, const struct user_za_header *za) in set_za() 100 static int get_zt(pid_t pid, char zt[ZT_SIG_REG_BYTES]) in get_zt() 110 static int set_zt(pid_t pid, const char zt[ZT_SIG_REG_BYTES]) in set_zt() 120 static void ptrace_za_disabled_read_zt(pid_t child) in ptrace_za_disabled_read_zt() 156 static void ptrace_set_get_zt(pid_t child) in ptrace_set_get_zt() 189 static void ptrace_enable_za_via_zt(pid_t child) in ptrace_enable_za_via_zt() 255 static int do_parent(pid_t child) in do_parent() 258 pid_t pid; in do_parent() 334 pid_t child; in main()
|
| A D | za-ptrace.c | 59 static struct user_za_header *get_za(pid_t pid, void **buf, size_t *size) in get_za() 96 static int set_za(pid_t pid, const struct user_za_header *za) in set_za() 106 static void ptrace_set_get_vl(pid_t child, unsigned int vl, bool *supported) in ptrace_set_get_vl() 149 static void ptrace_set_no_data(pid_t child, unsigned int vl) in ptrace_set_no_data() 190 static void ptrace_set_get_data(pid_t child, unsigned int vl) in ptrace_set_get_data() 248 static int do_parent(pid_t child) in do_parent() 251 pid_t pid; in do_parent() 343 pid_t child; in main()
|
| /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/tools/testing/selftests/powerpc/math/ |
| A D | fpu_syscall.c | 19 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 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/include/linux/sched/ |
| A D | task.h | 37 pid_t *set_tid; 97 extern pid_t kernel_clone(struct kernel_clone_args *kargs); 102 extern pid_t kernel_thread(int (*fn)(void *), void *arg, const char *name, 104 extern pid_t user_mode_thread(int (*fn)(void *), void *arg, unsigned long flags); 105 extern long kernel_wait4(pid_t, int __user *, int, struct rusage *); 106 int kernel_wait(pid_t pid, int *stat);
|
| /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() 50 pid_t pid; in TEST() 91 pid_t parent_tid = -1; in TEST() 99 pid_t pid; in TEST() 153 pid_t parent_tid = -1; in TEST() 160 pid_t pid; in TEST()
|