Home | History | Annotate | Download | only in cpuctl_fj

Lines Matching refs:pid

132 	ps -eo pid,rtprio > /tmp/pids_file1 &
138 while read pid
140 task=`cat $CPUCTL/tasks | grep "\b$pid\b"`
285 pid=$!
287 echo $pid > $CPUCTL/tmp/tasks
289 /bin/kill -s SIGUSR1 $pid
291 /bin/kill -s SIGUSR1 $pid
292 wait $pid
313 pid=$!
315 echo $pid > $CPUCTL/tmp/tasks
317 /bin/kill -s SIGUSR1 $pid
319 /bin/kill -s SIGUSR1 $pid
320 wait $pid
341 pid=$!
343 echo $pid > $CPUCTL/tmp/tasks
345 /bin/kill -s SIGUSR1 $pid
347 /bin/kill -s SIGUSR1 $pid
348 wait $pid
369 pid=$!
371 echo $pid > $CPUCTL/tmp/tasks
373 /bin/kill -s SIGUSR1 $pid
375 /bin/kill -s SIGUSR1 $pid
376 wait $pid
397 pid=$!
399 echo $pid > $CPUCTL/tmp/tasks
401 /bin/kill -s SIGUSR1 $pid
403 /bin/kill -s SIGUSR1 $pid
404 wait $pid
425 pid=$!
427 echo $pid > $CPUCTL/tmp/tasks
429 /bin/kill -s SIGUSR1 $pid
431 /bin/kill -s SIGUSR1 $pid
432 wait $pid
455 pid=$!
457 echo $pid > $CPUCTL/tmp/tasks
459 /bin/kill -s SIGUSR1 $pid
461 /bin/kill -s SIGUSR1 $pid
462 wait $pid
483 pid=$!
485 echo $pid > $CPUCTL/tmp/tasks
487 /bin/kill -s SIGUSR1 $pid
489 /bin/kill -s SIGUSR1 $pid
490 wait $pid
511 pid=$!
513 echo $pid > $CPUCTL/tmp/tasks
515 /bin/kill -s SIGUSR1 $pid
517 /bin/kill -s SIGUSR1 $pid
518 wait $pid
540 pid=$!
542 echo $pid > $CPUCTL/tmp/tasks
544 /bin/kill -s SIGUSR1 $pid
546 /bin/kill -s SIGUSR1 $pid
547 wait $pid
568 pid=$!
570 echo $pid > $CPUCTL/tmp/tasks
572 /bin/kill -s SIGUSR1 $pid
574 /bin/kill -s SIGUSR1 $pid
575 wait $pid
582 pid=$(creat_process)
583 echo $pid > "$CPUCTL/1/tasks"
584 kill -9 $pid
591 pid=$(creat_process)
595 echo $pid > "$CPUCTL/1/tasks"
596 cpu_usage=$(get_cpu_usage $pid)
597 echo "pid $pid cpu_usage $cpu_usage"
599 kill -9 $pid $pid_other
607 pid=$(creat_process)
611 echo $pid > "$CPUCTL/1/tasks"
612 cpu_usage=$(get_cpu_usage $pid)
613 echo "pid $pid cpu_usage $cpu_usage"
615 kill -9 $pid $pid_other
623 pid=$(creat_process)
624 echo $pid > "$CPUCTL/1/tasks"
639 cpu_usage=$(get_cpu_usage $pid)
640 echo "pid $pid cpu_usage $cpu_usage"
646 kill -9 $pid $loop_pid > /dev/null 2>&1
647 wait $pid $loop_pid >/dev/null 2>&1
657 pid=$(creat_process)
660 echo $pid > "$CPUCTL/1/tasks"
661 echo $pid > "$CPUCTL/1/2/tasks"
672 cpu_usage=$(get_cpu_usage $pid)
673 echo "pid $pid cpu_usage $cpu_usage"
679 kill -s KILL $pid $loop_pid > /dev/null 2>&1
680 wait $pid $loop_pid >/dev/null 2>&1