Lines Matching +full:inter +full:- +full:data

1 // SPDX-License-Identifier: GPL-2.0-only
20 * The latency is stored in fixed sized data structures in an accumulated form;
22 * in the data structure. Both the count, total accumulated latency and maximum
23 * latency are tracked in this data structure. When the fixed size structure is
37 * | | | +----> the stringified backtrace
38 * | | +---------> The maximum latency for this entry in microseconds
39 * | +--------------> The accumulated latency for this entry (microseconds)
40 * +-------------------> The number of times this entry is hit
83 .data = &latencytop_enabled,
96 memset(&p->latency_record, 0, sizeof(p->latency_record));
97 p->latency_record_count = 0;
118 if (!tsk->mm)
131 unsigned long record = lat->backtrace[q];
144 latency_record[i].time += lat->time;
145 if (lat->time > latency_record[i].max)
146 latency_record[i].max = lat->time;
160 * __account_scheduler_latency - record an occurred latency
163 * @inter: 1 if the sleep was interruptible, 0 if uninterruptible
168 * This function has a few special cases to deal with normal 'non-latency'
176 __account_scheduler_latency(struct task_struct *tsk, int usecs, int inter)
183 if (inter && usecs > 5000)
187 /* Zero-time sleeps are non-interesting */
202 for (i = 0; i < tsk->latency_record_count; i++) {
206 mylat = &tsk->latency_record[i];
210 if (mylat->backtrace[q] != record) {
220 mylat->count++;
221 mylat->time += lat.time;
222 if (lat.time > mylat->max)
223 mylat->max = lat.time;
231 if (tsk->latency_record_count >= LT_SAVECOUNT)
235 i = tsk->latency_record_count++;
236 memcpy(&tsk->latency_record[i], &lat, sizeof(struct latency_record));
251 if (lr->backtrace[0]) {
254 lr->count, lr->time, lr->max);
256 unsigned long bt = lr->backtrace[q];