Lines Matching refs:period

770 	float period;  in lwp_update()  local
779 period = TIME2NSEC(usage->pr_rtime); in lwp_update()
780 period = period/(float)100; in lwp_update()
782 if (period == 0) { /* zombie */ in lwp_update()
783 period = 1; in lwp_update()
788 lwp->li_usr = TIME2NSEC(usage->pr_utime)/period; in lwp_update()
789 lwp->li_sys = TIME2NSEC(usage->pr_stime)/period; in lwp_update()
790 lwp->li_slp = TIME2NSEC(usage->pr_slptime)/period; in lwp_update()
792 lwp->li_trp = TIME2NSEC(usage->pr_ttime)/period; in lwp_update()
793 lwp->li_tfl = TIME2NSEC(usage->pr_tftime)/period; in lwp_update()
794 lwp->li_dfl = TIME2NSEC(usage->pr_dftime)/period; in lwp_update()
795 lwp->li_lck = TIME2NSEC(usage->pr_ltime)/period; in lwp_update()
796 lwp->li_lat = TIME2NSEC(usage->pr_wtime)/period; in lwp_update()
797 period = (period / NANOSEC)*(float)100; /* now in seconds */ in lwp_update()
799 (opts.o_interval * (usage->pr_vctx/period)); in lwp_update()
801 (opts.o_interval * (usage->pr_ictx/period)); in lwp_update()
803 (opts.o_interval * (usage->pr_sysc/period)); in lwp_update()
805 (opts.o_interval * (usage->pr_sigs/period)); in lwp_update()
813 period = TIME2NSEC(usage->pr_rtime)- in lwp_update()
815 period = period/(float)100; in lwp_update()
817 if (period == 0) { /* zombie */ in lwp_update()
818 period = 1; in lwp_update()
824 TIME2NSEC(lwp->li_usage.pr_utime))/period; in lwp_update()
826 TIME2NSEC(lwp->li_usage.pr_stime))/period; in lwp_update()
828 TIME2NSEC(lwp->li_usage.pr_slptime))/period; in lwp_update()
831 TIME2NSEC(lwp->li_usage.pr_ttime))/period; in lwp_update()
833 TIME2NSEC(lwp->li_usage.pr_tftime))/period; in lwp_update()
835 TIME2NSEC(lwp->li_usage.pr_dftime))/period; in lwp_update()
837 TIME2NSEC(lwp->li_usage.pr_ltime))/period; in lwp_update()
839 TIME2NSEC(lwp->li_usage.pr_wtime))/period; in lwp_update()