Home
last modified time | relevance | path

Searched defs:pid (Results 1 – 25 of 268) sorted by relevance

1234567891011

/tools/perf/util/
Dthread_map.c33 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/
Dtest_freezer.c59 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
Dcgroup_util.c265 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/
Dlocal_storage.c50 __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
Dtest_varlen.c42 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
Dtest_ringbuf_multi.c10 int pid; member
45 int pid = 0; variable
/tools/testing/selftests/pidfd/
Dpidfd_wait.c34 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
Dpidfd_setns_test.c54 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/
Dnetdev-times.py232 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 …]
Dsched-migration.py33 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/
Drlimits-per-userns.c32 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/
Dsigreturn_kernel.c35 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/
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/kvm/kvm_stat/
Dkvm_stat422 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/
Dget_syscall_info.c17 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
Dvmaccess.c26 int f, pid = fork(); in TEST() local
48 int s, k, pid = fork(); in TEST() local
/tools/testing/selftests/proc/
Dthread-self.c30 pid_t pid, tid; in f() local
50 pid_t pid; in main() local
Dproc-uptime-002.c33 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/
Dclone3_clear_sighand.c27 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/
Dintel-cqm.c18 pid_t pid; in spawn() local
48 pid_t pid; in test__intel_cqm_count_nmi_context() local
/tools/testing/selftests/arm64/mte/
Dcheck_gcr_el1_cswitch.c41 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/
Dbinderfs_test.c186 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/
Dfork.c48 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/
Dclose_range_test.c119 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/
Dperf.c63 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

1234567891011