Searched refs:pid (Results 126 - 150 of 778) sorted by relevance

1234567891011>>

/external/linux-tools-perf/src/tools/perf/scripts/python/
H A Dfailed-syscalls-by-pid.py1 # failed system call counts, by pid
5 # Displays system-wide failed system call totals, broken down by pid.
18 usage = "perf script -s syscall-counts-by-pid.py [comm|pid]\n";
59 print "%-30s %10s\n" % ("comm [pid]", "count"),
66 for pid in pid_keys:
67 print "\n%s [%d]\n" % (comm, pid),
68 id_keys = syscalls[comm][pid].keys()
71 ret_keys = syscalls[comm][pid][id].keys()
72 for ret, val in sorted(syscalls[comm][pid][i
[all...]
/external/ltrace/sysdeps/linux-gnu/metag/
H A Dregs.c39 if (ptrace(PTRACE_GETREGSET, proc->pid, NT_PRSTATUS, (long)&iov))
53 if (ptrace(PTRACE_GETREGSET, proc->pid, NT_PRSTATUS, (long)&iov))
60 ptrace(PTRACE_SETREGSET, proc->pid, NT_PRSTATUS, (long)&iov);
71 if (ptrace(PTRACE_GETREGSET, proc->pid, NT_PRSTATUS, (long)&iov))
85 if (ptrace(PTRACE_GETREGSET, proc->pid, NT_PRSTATUS, (long)&iov))
/external/strace/tests/
H A Dinet-accept-connect-send-recv.c17 pid_t pid; local
39 assert((pid = fork()) >= 0);
41 if (pid) {
48 assert(waitpid(pid, &status, 0) == pid);
H A Dunix-pair-send-recv.c34 pid_t pid = fork(); local
35 assert(pid >= 0);
37 if (pid) {
45 assert(waitpid(pid, &status, 0) == pid);
H A Dnet-accept-connect.c46 pid_t pid = fork(); local
47 assert(pid >= 0);
49 if (pid) {
52 assert(kill(pid, SIGUSR1) == 0);
54 assert(waitpid(pid, &status, 0) == pid);
/external/toybox/toys/other/
H A Doneit.c62 int i, pid, pipes[] = {SIGUSR1, SIGUSR2, SIGTERM, SIGINT}; local
79 pid = vfork();
80 if (pid) {
82 // pid 1 reaps zombies until it gets its child, then halts system.
86 while (pid != wait(&i)) if (FLAG_3) i = write(4, &pid, 4);
H A Dtimeout.c35 pid_t pid;
42 fprintf(stderr, "timeout pid %d signal %d\n", TT.pid, TT.nextsig);
43 kill(TT.pid, TT.nextsig);
65 if (!(TT.pid = xfork())) xexec(toys.optargs+1);
71 while (-1 == waitpid(TT.pid, &status, 0) && errno == EINTR);
H A Dpmap.c30 pid_t pid = atolx(*optargs); local
39 snprintf(toybuf, sizeof(toybuf), "/proc/%u/cmdline", pid);
41 if (!line) error_msg("No %lu", (long)pid);
42 xprintf("%u: %s\n", (int)pid, line);
47 sprintf(toybuf, "/proc/%u/%smaps", pid,
50 error_msg("No %ld\n", (long)pid);
/external/google-breakpad/src/client/mac/tests/
H A Dcrash_generation_server_test.cc128 pid_t pid = fork(); local
129 ASSERT_NE(-1, pid);
130 if (pid == 0) {
137 ASSERT_EQ(pid, waitpid(pid, &ret, 0));
157 self->child_pid = client_info.pid();
180 pid_t pid = fork(); local
181 ASSERT_NE(-1, pid);
182 if (pid == 0) {
195 ASSERT_EQ(pid, waitpi
230 pid_t pid = fork(); local
301 pid_t pid = spawn_child_process(argv); local
378 pid_t pid = fork(); local
[all...]
/external/compiler-rt/test/tsan/
H A Dvfork.cc27 int pid = vfork(); local
28 if (pid < 0) {
32 if (pid == 0) { // child
/external/libnl/src/
H A Dnl-list-sockets.c32 int ret, proto, pid, rmem, wmem, refcnt; local
36 &sk, &proto, &pid, &groups, &rmem, &wmem,
42 sk, nl_nlfamily2str(proto, p, sizeof(p)), pid,
/external/openssh/contrib/hpux/
H A Degd.rc80 pid=`ps -fuegd | awk '$1 == "egd" { print $2 }'`
81 if [ "X$pid" != "X" ]; then
82 if kill "$pid"; then
/external/toybox/toys/posix/
H A Dtime.c27 pid_t pid; local
31 if (!(pid = xfork())) xexec(toys.optargs);
37 wait4(pid, &stat, 0, &ru);
/external/toybox/toys/pending/
H A Dinit.c27 pid_t pid; member in struct:action_list_seed
228 pid_t pid; local
234 if (x->action & ASKFIRST) pid = fork();
235 else pid = vfork();
237 if (pid > 0) {
243 return pid;
244 } else if (pid < 0) {
272 static struct action_list_seed* mark_as_terminated_process(pid_t pid) argument
276 if (pid > 0) {
278 if (x->pid
288 waitforpid(pid_t pid) argument
301 pid_t pid; local
337 pid_t pid; local
372 pid_t pid; local
414 pid_t pid; local
491 pid_t pid = waitpid(-1, NULL, suspected_WNOHANG); local
[all...]
/external/google-breakpad/src/client/linux/minidump_writer/
H A Dlinux_core_dumper_unittest.cc43 const pid_t pid = getpid(); local
51 EXPECT_TRUE(dumper.BuildProcPath(maps_path, pid, "maps"));
54 EXPECT_FALSE(dumper.BuildProcPath(NULL, pid, "maps"));
55 EXPECT_FALSE(dumper.BuildProcPath(maps_path, pid, ""));
56 EXPECT_FALSE(dumper.BuildProcPath(maps_path, pid, NULL));
62 EXPECT_FALSE(dumper.BuildProcPath(maps_path, pid, long_node));
H A Dlinux_core_dumper.h46 // with a process ID of |pid| via its core dump file at |core_path| and
48 // /proc/<pid>, it should contain the following files:
50 LinuxCoreDumper(pid_t pid, const char* core_path, const char* procfs_path);
53 // Builds a proc path for a certain pid for a node (/proc/<pid>/<node>).
60 // not actually make use of |pid| and always returns a subpath of
61 // |procfs_path_| regardless of whether |pid| corresponds to the main
65 virtual bool BuildProcPath(char* path, pid_t pid, const char* node) const;
108 // which is usually a copy of /proc/<pid>.
H A Dlinux_ptrace_dumper.h45 // with a process ID of |pid|.
46 explicit LinuxPtraceDumper(pid_t pid);
49 // Builds a proc path for a certain pid for a node (/proc/<pid>/<node>).
53 virtual bool BuildProcPath(char* path, pid_t pid, const char* node) const;
/external/toybox/toys/lsb/
H A Dkillall.c36 static int kill_process(pid_t pid, char *name) argument
40 if (pid == TT.cur_pid) return 0;
43 snprintf(toybuf, sizeof(toybuf), "Signal %s(%d) ?", name, (int)pid);
48 kill(pid, TT.signum);
56 if (!(toys.optflags & FLAG_q)) perror_msg("pid %d", (int)pid);
58 printf("Killed %s(%d) with signal %d\n", name, pid, TT.signum);
/external/wpa_supplicant_8/wpa_supplicant/examples/
H A Dp2p-action-udhcp.sh26 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid
31 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid
32 kill_daemon udhcpd /var/run/udhcpd-$GIFNAME.pid
33 udhcpc -i $GIFNAME -p /var/run/udhcpc-$GIFNAME.pid \
41 kill_daemon udhcpd /var/run/udhcpd-$GIFNAME.pid
45 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid
/external/compiler-rt/test/msan/
H A Dsigwait.cc15 if (pid_t pid = fork()) {
16 kill(pid, SIGUSR1);
H A Dsigwaitinfo.cc15 if (pid_t pid = fork()) {
16 kill(pid, SIGUSR1);
/external/iputils/ninfod/
H A Dninfod.sh.in4 PID=/var/run/ninfod.pid
/external/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/
H A Dnative_handle.pass.cpp49 pthread_t pid = t0.native_handle(); local
50 assert(pid != 0);
/external/ltrace/
H A Dlibltrace.c53 struct process *p_proc = pid2proc(it->pid);
55 printf("stop_non_p_processes: %d terminated?\n", it->pid);
65 debug(2, "Sending SIGSTOP to process %u", proc->pid);
66 kill(proc->pid, SIGSTOP);
128 pid_t pid = execute_program(command, argv); local
129 struct process *proc = open_program(command, pid);
137 continue_process(pid);
141 open_pid(opt_p_tmp->pid);
/external/ltrace/sysdeps/linux-gnu/arm/
H A Dbreakpoint.c34 arch_enable_breakpoint(pid_t pid, struct breakpoint *sbp) argument
40 debug(1, "arch_enable_breakpoint(%d,%p)", pid, sbp->addr);
49 current.l = ptrace(PTRACE_PEEKTEXT, pid, sbp->addr + i * sizeof(long), 0);
63 ptrace(PTRACE_POKETEXT, pid, sbp->addr + i * sizeof(long),
69 arch_disable_breakpoint(pid_t pid, const struct breakpoint *sbp) argument
73 debug(1, "arch_disable_breakpoint(%d,%p)", pid, sbp->addr);
82 current.l = ptrace(PTRACE_PEEKTEXT, pid, sbp->addr + i * sizeof(long), 0);
89 ptrace(PTRACE_POKETEXT, pid, sbp->addr + i * sizeof(long),

Completed in 2788 milliseconds

1234567891011>>