Lines Matching defs:pid
865 # <pid> <procname>
874 echo "usage: qpid [[--exact] <process name|pid>"
888 function pid()
899 local PID=`adb shell ps \
903 echo "$PID"
905 echo "usage: pid [--exact] <process name>"
941 # $1 = PID of process (e.g., $(pid mediaserver))
948 local PID=$1;
949 if [ -z "$PID" ]; then
950 printf "Expecting a PID!\n";
953 echo "Setting core limit for $PID to infinite...";
954 adb shell prlimit $PID 4 -1 -1
958 # $1 = PID of process (e.g., $(pid mediaserver))
965 local PID=$1;
967 if [ -z "$PID" ]; then
968 printf "Expecting a PID!\n";
972 local CORENAME=core.$PID;
979 while [ $(adb shell "[ -d /proc/$PID ] && echo -n yes") ]; do
980 printf "\tSending SIG%s to %d...\n" $SIG $PID;
981 adb shell kill -$SIG $PID;
999 local PID="$1"
1001 local PIDLIST="$(pid $1)"
1003 local PID="$PIDLIST"
1010 echo "usage: stacks [pid|process name]"
1013 if [ "$PID" ] ; then
1015 if adb shell ls -l /proc/$PID/exe | grep -q /system/bin/app_process ; then
1029 adb shell kill -3 $PID
1038 local USE64BIT="$(is64bit $PID)"
1039 adb shell debuggerd$USE64BIT -b $PID
1044 # Read the ELF header from /proc/$PID/exe to determine if the process is
1048 local PID="$1"
1049 if [ "$PID" ] ; then
1050 if [[ "$(adb shell cat /proc/$PID/exe | xxd -l 1 -s 4 -ps)" -eq "02" ]] ; then
1215 echo "Usage: runhat [ -d | -e | -s serial ] target-pid"