/linux-master/tools/perf/scripts/python/bin/ |
H A D | failed-syscalls-by-pid-report | 2 # description: system-wide failed syscalls, by pid 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/failed-syscalls-by-pid.py $comm
|
H A D | syscall-counts-by-pid-report | 2 # description: system-wide syscall counts, by pid 10 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/syscall-counts-by-pid.py $comm
|
/linux-master/tools/perf/scripts/python/ |
H A D | check-perf-trace.py | 60 def print_header(event_name, cpu, secs, nsecs, pid, comm): 62 (event_name, cpu, secs, nsecs, pid, comm),
|
H A D | failed-syscalls-by-pid.py | 1 # failed system call counts, by pid 5 # Displays system-wide failed system call totals, broken down by pid. 20 usage = "perf script -s syscall-counts-by-pid.py [comm|pid]\n"; 66 print("%-30s %10s" % ("comm [pid]", "count")) 72 for pid in pid_keys: 73 print("\n%s [%d]" % (comm, pid)) 74 id_keys = syscalls[comm][pid].keys() 77 ret_keys = syscalls[comm][pid][id].keys() 78 for ret, val in sorted(syscalls[comm][pid][i [all...] |
H A D | powerpc-hcalls.py | 173 def powerpc__hcall_exit(name, context, cpu, sec, nsec, pid, comm, callchain, 197 def powerpc__hcall_entry(event_name, context, cpu, sec, nsec, pid, comm,
|
H A D | sched-migration.py | 33 def thread_name(pid): 34 return "%s:%d" % (threads[pid], pid) 210 def wake_up(self, ts_list, pid, cpu, fork): 213 new_rq = old_rq.wake_up_new(pid) 215 new_rq = old_rq.wake_up(pid) 351 def migrate(self, headers, pid, prio, orig_cpu, dest_cpu): 353 ts.migrate(self.timeslices, pid, orig_cpu, dest_cpu) 355 def wake_up(self, headers, comm, pid, success, target_cpu, fork): 359 ts.wake_up(self.timeslices, pid, target_cp [all...] |
H A D | syscall-counts-by-pid.py | 1 # system call counts, by pid 19 usage = "perf script -s syscall-counts-by-pid.py [comm]\n"; 61 print("\nsyscall events by comm/pid:\n") 63 print("%-40s %10s" % ("comm [pid]/syscalls", "count")) 70 for pid in pid_keys: 71 print("\n%s [%d]" % (comm, pid)) 72 id_keys = syscalls[comm][pid].keys() 73 for id, val in sorted(syscalls[comm][pid].items(),
|
/linux-master/tools/perf/trace/beauty/ |
H A D | kcmp.c | 20 pid_t pid; local 25 pid = syscall_arg__val(arg, arg->idx == 3 ? 0 : 1); /* idx1 -> pid1, idx2 -> pid2 */ 26 return pid__scnprintf_fd(arg->trace, pid, fd, bf, size);
|
/linux-master/tools/perf/util/ |
H A D | values.h | 10 u32 *pid, *tid; member in struct:perf_read_values 22 u32 pid, u32 tid,
|
/linux-master/tools/testing/ktest/ |
H A D | config-bisect.pl | 164 my $pid; 170 $pid = open(CMD, "$command 2>&1 |") or 183 waitpid($pid, 0);
|
/linux-master/tools/testing/selftests/filesystems/ |
H A D | devpts_pts.c | 62 static int wait_for_pid(pid_t pid) argument 67 ret = waitpid(pid, &status, 0); 73 if (ret != pid) 138 pid_t pid = fork(); local 139 if (pid < 0) 142 if (pid == 0) { 161 "\"/proc/<pid>/fd/%d\" symlink: %s\n", 166 fprintf(stderr, "Contents of \"/proc/<pid>/fd/%d\" " 172 ret = wait_for_pid(pid);
|
/linux-master/tools/testing/selftests/net/ |
H A D | ipv6_flowlabel_mgr.c | 77 pid_t pid; local 131 pid = fork(); 132 if (pid == -1) 134 if (!pid) { 152 pid = fork(); 153 if (pid == -1) 155 if (!pid) {
|
/linux-master/tools/testing/selftests/nsfs/ |
H A D | owner.c | 31 pid_t pid; local 37 pid = fork(); 38 if (pid < 0) 40 if (pid == 0) { 55 snprintf(path, sizeof(path), "/proc/%d/ns/uts", pid); 67 snprintf(path, sizeof(path), "/proc/%d/ns/user", pid); 89 kill(pid, SIGKILL);
|
/linux-master/tools/testing/selftests/powerpc/benchmarks/ |
H A D | fork.c | 48 int pid; local 50 pid = fork(); 51 if (pid == -1) { 56 if (pid) 88 pid_t pid = fork(); local 89 if (pid == -1) { 93 if (pid == 0) { 98 pid = waitpid(pid, NULL, 0); 99 if (pid 110 pid_t pid = vfork(); local [all...] |
/linux-master/tools/testing/selftests/powerpc/math/ |
H A D | vmx_asm.S | 87 # r4 holds pointer to the pid 91 std r4,STACK_FRAME_PARAM(1)(sp) # address of pid
|
/linux-master/tools/testing/selftests/powerpc/mm/ |
H A D | large_vm_fork_separation.c | 28 pid_t pid; local 47 pid = fork(); 48 if (pid == 0) { 51 pid = getpid(); 52 printf("child writing %p = %d\n", p, pid); 53 *p = pid; 75 FAIL_IF(waitpid(pid, &status, 0) == -1);
|
/linux-master/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | ebb_on_child_test.c | 48 pid_t pid; local 55 pid = fork(); 56 if (pid == 0) { 72 FAIL_IF(event_open_with_pid(&event, pid)); 78 FAIL_IF(wait_for_child(pid));
|
H A D | fork_cleanup_test.c | 44 pid_t pid; local 64 pid = fork(); 65 if (pid == 0) 69 FAIL_IF(wait_for_child(pid));
|
H A D | task_event_pinned_vs_ebb_test.c | 42 pid_t pid; local 50 pid = fork(); 51 if (pid == 0) { 57 rc = setup_child_event(&event, pid); 59 kill_child_and_wait(pid); 73 FAIL_IF(wait_for_child(pid) != 2);
|
H A D | task_event_vs_ebb_test.c | 40 pid_t pid; local 48 pid = fork(); 49 if (pid == 0) { 55 rc = setup_child_event(&event, pid); 57 kill_child_and_wait(pid); 71 FAIL_IF(wait_for_child(pid));
|
/linux-master/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-syscall.c | 48 errx(1, "got unexpected pid in event\n"); 77 pid_t pid = getpid(), tid = syscall(SYS_gettid); local 80 syscall(SYS_tgkill, pid, tid, SIGSTOP);
|
/linux-master/tools/testing/selftests/powerpc/signal/ |
H A D | signal.c | 23 extern long signal_self(pid_t pid, int sig); 41 pid_t pid; local 57 pid = fork(); 58 if (pid == -1) { 62 if (pid == 0) { 75 waitpid(pid, NULL, 0);
|
/linux-master/tools/testing/selftests/proc/ |
H A D | fd-003-kthread.c | 40 static int kernel_thread_fd(unsigned int pid) argument 47 snprintf(buf, sizeof(buf), "/proc/%u", pid); 157 unsigned int pid; local 166 pid = 2; 167 while ((fd = kernel_thread_fd(pid)) == -1 && pid < 1024) { 168 pid++; 171 if (pid >= 1024)
|
H A D | self.c | 27 pid_t pid; local 30 pid = sys_getpid(); 31 snprintf(buf1, sizeof(buf1), "%u", pid);
|
H A D | setns-dcache.c | 36 static pid_t pid = -1; variable 40 if (pid > 0) { 41 kill(pid, SIGTERM); 69 pid = fork(); 70 if (pid == -1) { 74 if (pid == 0) { 94 snprintf(buf, sizeof(buf), "/proc/%u/ns/net", pid); 108 kill(pid, SIGTERM); 109 pid = 0;
|