/tools/perf/util/ |
D | thread_map.c | 33 struct perf_thread_map *thread_map__new_by_pid(pid_t pid) in thread_map__new_by_pid() 95 pid_t pid = strtol(dirent->d_name, &end, 10); in __thread_map__new_all_cpus() local 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() local 292 struct perf_thread_map *thread_map__new_str(const char *pid, const char *tid, in thread_map__new_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() local 397 bool thread_map__has(struct perf_thread_map *threads, pid_t pid) in thread_map__has()
|
/tools/testing/selftests/cgroup/ |
D | test_freezer.c | 59 static int cg_enter_and_wait_for_frozen(const char *cgroup, int pid, in cg_enter_and_wait_for_frozen() 403 int pid; in test_cgfreezer_mkdir() local 512 int pid; in test_cgfreezer_migrate() local 588 int pid; in test_cgfreezer_ptrace() local 643 static int proc_check_stopped(int pid) in proc_check_stopped() 667 int pid, ret = KSFT_FAIL; in test_cgfreezer_stopped() local 711 int pid, ret = KSFT_FAIL; in test_cgfreezer_ptraced() local 765 int pid = vfork(); in vfork_fn() local
|
D | cgroup_util.c | 265 int pid = strtol(ptr, &ptr, 10); in cg_killall() local 298 int cg_enter(const char *cgroup, int pid) in cg_enter() 320 int pid, retcode; in cg_run() local 344 pid_t pid; in clone_into_cgroup() local 369 int clone_reap(pid_t pid, int options) in clone_reap() 419 pid_t pid; in clone_into_cgroup_run_nowait() local 437 int pid; in cg_run_nowait() local 517 int set_oom_adj_score(int pid, int score) in set_oom_adj_score() 538 ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size) in proc_read_text() 551 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() [all …]
|
/tools/testing/selftests/bpf/progs/ |
D | local_storage.c | 50 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local 76 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local 108 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local 136 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local 160 __u32 pid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local
|
D | test_varlen.c | 42 int pid = bpf_get_current_pid_tgid() >> 32; in handler64_unsigned() local 70 int pid = bpf_get_current_pid_tgid() >> 32; in handler64_signed() local 96 int pid = bpf_get_current_pid_tgid() >> 32; in handler32_unsigned() local 124 int pid = bpf_get_current_pid_tgid() >> 32; in handler32_signed() local
|
D | test_ringbuf_multi.c | 10 int pid; member 45 int pid = 0; variable
|
/tools/testing/selftests/pidfd/ |
D | pidfd_wait.c | 34 static int sys_waitid(int which, pid_t pid, siginfo_t *info, int options, in sys_waitid() 50 pid_t pid; in TEST() local 99 pid_t pid; in TEST() local 151 pid_t pid; in TEST() local
|
D | pidfd_setns_test.c | 54 pid_t pid; in FIXTURE() local 70 static int sys_waitid(int which, pid_t pid, int options) in sys_waitid() 302 static int preserve_ns(const int pid, const char *ns) in preserve_ns() 362 pid_t pid; in TEST_F() local 380 pid_t pid; in TEST_F() local 416 pid_t pid; in TEST_F() local 453 pid_t pid; in TEST_F() local
|
/tools/perf/scripts/python/ |
D | netdev-times.py | 232 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 238 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 244 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 250 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument 256 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, callchain, irq, ret): argument 260 def napi__napi_poll(name, context, cpu, sec, nsec, pid, comm, callchain, napi, argument 266 def net__netif_receive_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr, argument 272 def net__netif_rx(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr, argument 278 def net__net_dev_queue(name, context, cpu, sec, nsec, pid, comm, callchain, argument 284 def net__net_dev_xmit(name, context, cpu, sec, nsec, pid, comm, callchain, argument [all …]
|
D | sched-migration.py | 33 def thread_name(pid): argument 210 def wake_up(self, ts_list, pid, cpu, fork): argument 351 def migrate(self, headers, pid, prio, orig_cpu, dest_cpu): argument 355 def wake_up(self, headers, comm, pid, success, target_cpu, fork): argument 374 common_callchain, comm, pid, runtime, vruntime): argument 379 common_callchain, comm, pid, delay): argument 384 common_callchain, comm, pid, delay): argument 389 common_callchain, comm, pid, delay): argument 399 common_callchain, comm, pid, prio): argument 404 common_callchain, comm, pid, prio): argument [all …]
|
/tools/testing/selftests/rlimits/ |
D | rlimits-per-userns.c | 32 pid_t pid = getpid(); in setrlimit_nproc() local 46 pid_t pid = fork(); in fork_child() local 91 pid_t pid; in main() local
|
/tools/testing/selftests/powerpc/signal/ |
D | sigreturn_kernel.c | 35 pid_t pid; in fork_child() local 46 static int expect_segv(pid_t pid) in expect_segv() 62 pid_t pid; in test_sigreturn_kernel() local
|
/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/kvm/kvm_stat/ |
D | kvm_stat | 422 def _perf_event_open(self, attr, pid, cpu, group_fd, flags): argument 507 def __init__(self, pid): argument 534 def __init__(self, pid, fields_filter): argument 694 def pid(self): member in TracepointProvider 698 def pid(self, pid): argument 730 def __init__(self, pid, fields_filter, include_past): argument 771 def pid(self): member in DebugfsProvider 775 def pid(self, pid): argument 919 def pid_filter(self, pid): argument 1085 def get_gname_from_pid(pid): argument [all …]
|
/tools/testing/selftests/ptrace/ |
D | get_syscall_info.c | 17 kill_tracee(pid_t pid) in kill_tracee() 31 sys_ptrace(int request, pid_t pid, unsigned long addr, unsigned long data) in sys_ptrace() 77 pid_t pid = fork(); in TEST() local
|
D | vmaccess.c | 26 int f, pid = fork(); in TEST() local 48 int s, k, pid = fork(); in TEST() local
|
/tools/testing/selftests/proc/ |
D | thread-self.c | 30 pid_t pid, tid; in f() local 50 pid_t pid; in main() local
|
D | proc-uptime-002.c | 33 static inline int sys_sched_getaffinity(pid_t pid, unsigned int len, unsigned long *m) in sys_sched_getaffinity() 38 static inline int sys_sched_setaffinity(pid_t pid, unsigned int len, unsigned long *m) in sys_sched_setaffinity()
|
/tools/testing/selftests/clone3/ |
D | clone3_clear_sighand.c | 27 static int wait_for_pid(pid_t pid) in wait_for_pid() 49 pid_t pid; in test_clone3_clear_sighand() local
|
/tools/perf/arch/x86/tests/ |
D | intel-cqm.c | 18 pid_t pid; in spawn() local 48 pid_t pid; in test__intel_cqm_count_nmi_context() local
|
/tools/testing/selftests/arm64/mte/ |
D | check_gcr_el1_cswitch.c | 41 pid_t pid = *((pid_t *)x); in execute_thread() local 80 int execute_test(pid_t pid) in execute_test() 101 pid_t pid; in mte_gcr_fork_test() local
|
/tools/testing/selftests/filesystems/binderfs/ |
D | binderfs_test.c | 186 static int wait_for_pid(pid_t pid) in wait_for_pid() 245 static int write_id_mapping(enum idmap_type type, pid_t pid, const char *buf, in write_id_mapping() 323 static void change_idmaps(struct __test_metadata *_metadata, int syncfds[2], pid_t pid) in change_idmaps() 382 pid_t pid; in TEST() local 505 pid_t pid; in TEST() local
|
/tools/testing/selftests/powerpc/benchmarks/ |
D | fork.c | 48 int pid; in start_process_on() local 88 pid_t pid = fork(); in bench_fork() local 110 pid_t pid = vfork(); in bench_vfork() local
|
/tools/testing/selftests/core/ |
D | close_range_test.c | 119 pid_t pid; in TEST() local 208 pid_t pid; in TEST() local 393 pid_t pid; in TEST() local 475 pid_t pid; in TEST() local
|
/tools/bpf/bpftool/ |
D | perf.c | 63 static void print_perf_json(int pid, int fd, __u32 prog_id, __u32 fd_type, in print_perf_json() 113 static void print_perf_plain(int pid, int fd, __u32 prog_id, __u32 fd_type, in print_perf_plain() 155 int err, pid = 0, fd = 0; in show_proc() local
|