/tools/perf/util/ |
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);
|
D | machine.h | 42 pid_t pid; 56 pid_t *current_tid; 64 static inline struct threads *machine__threads(struct machine *machine, pid_t tid) in machine__threads() 106 struct thread *machine__find_thread(struct machine *machine, pid_t pid, 107 pid_t tid); 153 struct machine *machines__add(struct machines *machines, pid_t pid, 156 struct machine *machines__find(struct machines *machines, pid_t pid); 157 struct machine *machines__findnew(struct machines *machines, pid_t pid); 164 int machine__init(struct machine *machine, const char *root_dir, pid_t pid); 202 struct thread *__machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid); [all …]
|
D | namespaces.h | 32 pid_t pid; 33 pid_t tgid; 34 pid_t nstgid; 47 struct nsinfo *nsinfo__new(pid_t pid);
|
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()
|
D | thread.h | 29 pid_t pid_; /* Not all tools update this */ 30 pid_t tid; 31 pid_t ppid; 55 struct thread *thread__new(pid_t pid, pid_t tid);
|
D | synthetic-events.h | 45 …hesize_mmap_events(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_ev… 47 …thesize_namespaces(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_ev… 58 pid_t perf_event__synthesize_comm(struct perf_tool *tool, union perf_event *event, pid_t pid, perf_…
|
/tools/testing/selftests/powerpc/ptrace/ |
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() 101 int ptrace_read_regs(pid_t child, unsigned long type, unsigned long regs[], in ptrace_read_regs() 121 long ptrace_write_regs(pid_t child, unsigned long type, unsigned long regs[], in ptrace_write_regs() 140 int show_tar_registers(pid_t child, unsigned long *out) in show_tar_registers() 185 int write_tar_registers(pid_t child, unsigned long tar, in write_tar_registers() 229 int show_tm_checkpointed_state(pid_t child, unsigned long *out) in show_tm_checkpointed_state() 276 int write_ckpt_tar_registers(pid_t child, unsigned long tar, in write_ckpt_tar_registers() 321 int show_fpr(pid_t child, unsigned long *fpr) in show_fpr() [all …]
|
D | ptrace-tar.c | 51 int trace_tar(pid_t child) in trace_tar() 65 int trace_tar_write(pid_t child) in trace_tar_write() 78 pid_t pid; in ptrace_tar()
|
/tools/testing/selftests/powerpc/math/ |
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()
|
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 = fork(); in test_vmx_syscall()
|
/tools/testing/selftests/powerpc/pmu/ |
D | lib.h | 23 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));
|
D | lib.c | 73 int wait_for_child(pid_t child_pid) in wait_for_child() 90 int kill_child_and_wait(pid_t child_pid) in kill_child_and_wait() 116 pid_t eat_cpu(int (test_function)(void)) in eat_cpu() 120 pid_t pid; in eat_cpu()
|
D | event.h | 30 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd); 32 int event_open_with_pid(struct event *e, pid_t pid);
|
/tools/testing/selftests/ptrace/ |
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()
|
/tools/perf/include/bpf/ |
D | pid_filter.h | 10 static int pid_filter__add(struct bpf_map *pids, pid_t pid) in pid_filter__add() 16 static bool pid_filter__has(struct bpf_map *pids, pid_t pid) in pid_filter__has()
|
/tools/testing/selftests/powerpc/signal/ |
D | signal.c | 23 extern long signal_self(pid_t pid, int sig); 40 pid_t ppid = getpid(); in test_signal() 41 pid_t pid; in test_signal()
|
/tools/perf/lib/include/perf/ |
D | threadmap.h | 12 LIBPERF_API void perf_thread_map__set_pid(struct perf_thread_map *map, int thread, pid_t pid); 15 LIBPERF_API pid_t perf_thread_map__pid(struct perf_thread_map *map, int thread);
|
/tools/perf/ |
D | perf-sys.h | 15 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, 24 pid_t pid, int cpu, int group_fd, in sys_perf_event_open()
|
/tools/include/nolibc/ |
D | nolibc.h | 139 typedef signed int pid_t; typedef 1529 pid_t sys_fork(void) in sys_fork() 1547 pid_t sys_getpgrp(void) in sys_getpgrp() 1553 pid_t sys_getpid(void) in sys_getpid() 1571 int sys_kill(pid_t pid, int signal) in sys_kill() 1686 int sys_setpgid(pid_t pid, pid_t pgid) in sys_setpgid() 1692 pid_t sys_setsid(void) in sys_setsid() 1759 pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage) in sys_wait4() 1765 pid_t sys_waitpid(pid_t pid, int *status, int options) in sys_waitpid() 1771 pid_t sys_wait(int *status) in sys_wait() [all …]
|
/tools/testing/selftests/proc/ |
D | proc.h | 12 static inline pid_t sys_getpid(void) in sys_getpid() 17 static inline pid_t sys_gettid(void) in sys_gettid()
|
D | thread-self.c | 30 pid_t pid, tid; in f() 50 pid_t pid; in main()
|
/tools/testing/selftests/pidfd/ |
D | pidfd.h | 57 int wait_for_pid(pid_t pid) in wait_for_pid() 76 static inline int sys_pidfd_open(pid_t pid, unsigned int flags) in sys_pidfd_open()
|
D | pidfd_open_test.c | 86 static pid_t get_pid_from_fdinfo_file(int pidfd, const char *key, size_t keylen) in get_pid_from_fdinfo_file() 92 pid_t result = -1; in get_pid_from_fdinfo_file() 124 pid_t pid; in main()
|
D | pidfd_wait.c | 24 static pid_t sys_clone3(struct clone_args *args) in sys_clone3() 29 static int sys_waitid(int which, pid_t pid, siginfo_t *info, int options, in sys_waitid() 39 pid_t parent_tid = -1; in test_pidfd_wait_simple() 47 pid_t pid; in test_pidfd_wait_simple() 124 pid_t parent_tid = -1; in test_pidfd_wait_states() 132 pid_t pid; in test_pidfd_wait_states()
|
/tools/perf/arch/x86/tests/ |
D | intel-cqm.c | 16 static pid_t spawn(void) in spawn() 18 pid_t pid; in spawn() 48 pid_t pid; in test__intel_cqm_count_nmi_context()
|