Home
last modified time | relevance | path

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

1234567891011

/tools/perf/util/
Dthread_map.h14 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);
Dmachine.h43 pid_t pid;
57 pid_t *current_tid;
65 static inline struct threads *machine__threads(struct machine *machine, pid_t tid) in machine__threads()
107 struct thread *machine__find_thread(struct machine *machine, pid_t pid,
108 pid_t tid);
161 struct machine *machines__add(struct machines *machines, pid_t pid,
164 struct machine *machines__find(struct machines *machines, pid_t pid);
165 struct machine *machines__findnew(struct machines *machines, pid_t pid);
166 struct machine *machines__find_guest(struct machines *machines, pid_t pid);
173 int machine__init(struct machine *machine, const char *root_dir, pid_t pid);
[all …]
Dnamespaces.h33 pid_t pid;
34 pid_t tgid;
35 pid_t nstgid;
49 struct nsinfo *nsinfo__new(pid_t pid);
Djit.h8 struct machine *machine, char *filename, pid_t pid, pid_t tid, u64 *nbytes);
Dthread_map.c33 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()
Dthread.h38 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);
/tools/testing/selftests/powerpc/ptrace/
Dptrace-perf-hwbreak.c86 static int perf_thread_event_open(pid_t child_pid, __u64 addr, __u64 len) in perf_thread_event_open()
94 static int perf_thread_cpu_event_open(pid_t child_pid, int cpu, __u64 addr, __u64 len) in perf_thread_cpu_event_open()
102 static int perf_thread_kernel_event_open(pid_t child_pid) in perf_thread_kernel_event_open()
147 static int ptrace_open(pid_t child_pid, __u64 wp_addr, int len) in ptrace_open()
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()
[all …]
Dptrace.h60 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 …]
Dptrace-hwbreak.c51 static void get_dbginfo(pid_t child_pid, struct ppc_debug_info *dbginfo) in get_dbginfo()
211 static void check_success(pid_t child_pid, const char *name, const char *type, in check_success()
245 static void ptrace_set_debugreg(pid_t child_pid, unsigned long wp_addr) in ptrace_set_debugreg()
253 static int ptrace_sethwdebug(pid_t child_pid, struct ppc_hw_breakpoint *info) in ptrace_sethwdebug()
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()
380 static void test_sethwdebug_exact_kernel_userspace(pid_t child_pid) in test_sethwdebug_exact_kernel_userspace()
396 static void test_sethwdebug_range_aligned(pid_t child_pid) in test_sethwdebug_range_aligned()
[all …]
/tools/testing/selftests/powerpc/math/
Dfpu_syscall.c18 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()
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/
Dnolibc.h209 pid_t sys_fork(void) in sys_fork()
237 pid_t sys_getpgid(pid_t pid) in sys_getpgid()
243 pid_t sys_getpgrp(void) in sys_getpgrp()
249 pid_t sys_getpid(void) in sys_getpid()
267 int sys_kill(pid_t pid, int signal) in sys_kill()
404 int sys_setpgid(pid_t pid, pid_t pgid) in sys_setpgid()
410 pid_t sys_setsid(void) in sys_setsid()
483 pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage) in sys_wait4()
489 pid_t sys_waitpid(pid_t pid, int *status, int options) in sys_waitpid()
495 pid_t sys_wait(int *status) in sys_wait()
[all …]
/tools/testing/selftests/arm64/mte/
Dcheck_gcr_el1_cswitch.c41 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()
/tools/testing/selftests/ptrace/
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/
Dlib.h24 extern int kill_child_and_wait(pid_t child_pid);
25 extern int wait_for_child(pid_t child_pid);
30 extern pid_t eat_cpu(int (test_function)(void));
/tools/testing/selftests/rlimits/
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/clone3/
Dclone3_cap_checkpoint_restore.c42 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()
/tools/testing/selftests/powerpc/signal/
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()
Dsignal.c23 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/testing/selftests/bpf/progs/
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()
Dprofiler.h56 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;
/tools/testing/selftests/pidfd/
Dpidfd_wait.c29 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()
144 pid_t parent_tid = -1; in TEST()
151 pid_t pid; in TEST()
/tools/testing/selftests/resctrl/
Dresctrl.h80 extern pid_t bm_pid, ppid;
93 int taskset_benchmark(pid_t bm_pid, int cpu_no);
97 int write_bm_pid_to_resctrl(pid_t bm_pid, char *ctrlgrp, char *mongrp,
99 int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu,
/tools/perf/include/bpf/
Dpid_filter.h10 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/lib/perf/include/perf/
Dthreadmap.h12 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);

1234567891011