• Home
  • Raw
  • Download

Lines Matching refs:delays

72 	tsk->delays = kmem_cache_zalloc(delayacct_cache, GFP_KERNEL);  in __delayacct_tsk_init()
73 if (tsk->delays) in __delayacct_tsk_init()
74 raw_spin_lock_init(&tsk->delays->lock); in __delayacct_tsk_init()
96 current->delays->blkio_start = local_clock(); in __delayacct_blkio_start()
105 struct task_delay_info *delays = p->delays; in __delayacct_blkio_end() local
109 if (p->delays->flags & DELAYACCT_PF_SWAPIN) { in __delayacct_blkio_end()
110 total = &delays->swapin_delay; in __delayacct_blkio_end()
111 count = &delays->swapin_count; in __delayacct_blkio_end()
113 total = &delays->blkio_delay; in __delayacct_blkio_end()
114 count = &delays->blkio_count; in __delayacct_blkio_end()
117 delayacct_end(&delays->lock, &delays->blkio_start, total, count); in __delayacct_blkio_end()
155 if (!tsk->delays) in delayacct_add_tsk()
160 raw_spin_lock_irqsave(&tsk->delays->lock, flags); in delayacct_add_tsk()
161 tmp = d->blkio_delay_total + tsk->delays->blkio_delay; in delayacct_add_tsk()
163 tmp = d->swapin_delay_total + tsk->delays->swapin_delay; in delayacct_add_tsk()
165 tmp = d->freepages_delay_total + tsk->delays->freepages_delay; in delayacct_add_tsk()
167 tmp = d->thrashing_delay_total + tsk->delays->thrashing_delay; in delayacct_add_tsk()
169 d->blkio_count += tsk->delays->blkio_count; in delayacct_add_tsk()
170 d->swapin_count += tsk->delays->swapin_count; in delayacct_add_tsk()
171 d->freepages_count += tsk->delays->freepages_count; in delayacct_add_tsk()
172 d->thrashing_count += tsk->delays->thrashing_count; in delayacct_add_tsk()
173 raw_spin_unlock_irqrestore(&tsk->delays->lock, flags); in delayacct_add_tsk()
183 raw_spin_lock_irqsave(&tsk->delays->lock, flags); in __delayacct_blkio_ticks()
184 ret = nsec_to_clock_t(tsk->delays->blkio_delay + in __delayacct_blkio_ticks()
185 tsk->delays->swapin_delay); in __delayacct_blkio_ticks()
186 raw_spin_unlock_irqrestore(&tsk->delays->lock, flags); in __delayacct_blkio_ticks()
192 current->delays->freepages_start = local_clock(); in __delayacct_freepages_start()
197 delayacct_end(&current->delays->lock, in __delayacct_freepages_end()
198 &current->delays->freepages_start, in __delayacct_freepages_end()
199 &current->delays->freepages_delay, in __delayacct_freepages_end()
200 &current->delays->freepages_count); in __delayacct_freepages_end()
205 current->delays->thrashing_start = local_clock(); in __delayacct_thrashing_start()
210 delayacct_end(&current->delays->lock, in __delayacct_thrashing_end()
211 &current->delays->thrashing_start, in __delayacct_thrashing_end()
212 &current->delays->thrashing_delay, in __delayacct_thrashing_end()
213 &current->delays->thrashing_count); in __delayacct_thrashing_end()