Lines Matching refs:self
78 self unsigned int lt_is_block_wakeable;
79 self unsigned long long lt_sleep_start;
80 self unsigned long long lt_sleep_duration;
81 self unsigned long long lt_sch_delay;
82 self unsigned int lt_counter; /* only used in low overhead */
83 self unsigned long long lt_timestamp; /* only used in low overhead */
84 self unsigned int lt_stackp;
85 self unsigned int lt_prio[int];
86 self string lt_cause[int];
98 self->lt_sleep_start = 0;
99 self->lt_is_block_wakeable = 0;
100 self->lt_counter = 0;
101 self->lt_timestamp = 0;
108 self->lt_prio[0] = 0;
109 self->lt_prio[1] = 0;
110 self->lt_prio[2] = 0;
111 self->lt_prio[3] = 0;
112 self->lt_prio[4] = 0;
113 self->lt_prio[5] = 0;
114 self->lt_prio[6] = 0;
115 self->lt_prio[7] = 0;
117 self->lt_cause[0] = 0;
118 self->lt_cause[1] = 0;
119 self->lt_cause[2] = 0;
120 self->lt_cause[3] = 0;
121 self->lt_cause[4] = 0;
122 self->lt_cause[5] = 0;
123 self->lt_cause[6] = 0;
124 self->lt_cause[7] = 0;
134 self->lt_sleep_start = timestamp;
135 self->lt_is_block_wakeable = curthread->t_flag & T_WAKEABLE;
138 self->lt_sleep_start;
157 /self->lt_sleep_start != 0/
162 this->end = (this->end != 0 && this->end != self->lt_sleep_start)
165 self->lt_sch_delay = this->now - this->end;
166 self->lt_sleep_duration = this->end - self->lt_sleep_start;
167 self->lt_sleep_start = 0;
176 /self->lt_sleep_duration > FILTER_THRESHOLD &&
177 self->lt_is_block_wakeable != 0/
179 self->lt_sch_delay = 0;
180 self->lt_sleep_duration = 0;
181 self->lt_is_block_wakeable = 0;
191 /self->lt_sleep_duration != 0/
193 this->cause = self->lt_stackp > 0 ?
194 self->lt_cause[self->lt_stackp - 1] : "";
195 this->priority = self->lt_stackp > 0 ?
196 self->lt_prio[self->lt_stackp - 1] : 0;
201 this->priority] = sum(self->lt_sleep_duration);
203 this->priority] = max(self->lt_sleep_duration);
205 self->lt_is_block_wakeable = 0; /* Clear the flag to avoid leak */
206 self->lt_sleep_duration = 0;
215 /self->lt_sch_delay != 0/
219 sum(self->lt_sch_delay);
221 max(self->lt_sch_delay);
223 self->lt_sch_delay = 0;
321 self->lt_timestamp = timestamp;
323 self->lt_is_block_wakeable = curthread->t_flag & T_WAKEABLE;
332 /self->lt_timestamp != 0/
334 self->lt_timestamp = timestamp - self->lt_timestamp;
337 self->lt_timestamp =
338 (self->lt_timestamp > FILTER_THRESHOLD &&
339 self->lt_is_block_wakeable != 0) ? 0 : self->lt_timestamp;
340 self->lt_is_block_wakeable = 0;
343 this->need_skip = (self->lt_counter < (SAMPLE_TIMES - 1) &&
344 self->lt_timestamp <= SAMPLE_THRESHOLD) ? 1 : 0;
345 self->lt_timestamp = this->need_skip ? 0 : self->lt_timestamp;
346 self->lt_counter += this->need_skip;
353 /self->lt_timestamp > SAMPLE_THRESHOLD/
355 this->cause = self->lt_stackp > 0 ?
356 self->lt_cause[self->lt_stackp - 1] : "";
357 this->priority = self->lt_stackp > 0 ?
358 self->lt_prio[self->lt_stackp - 1] : 0;
363 this->priority] = sum(self->lt_timestamp);
365 this->priority] = max(self->lt_timestamp);
367 self->lt_timestamp = 0;
375 /self->lt_timestamp != 0/
377 this->cause = self->lt_stackp > 0 ?
378 self->lt_cause[self->lt_stackp - 1] : "";
379 this->priority = self->lt_stackp > 0 ?
380 self->lt_prio[self->lt_stackp - 1] : 0;
384 this->priority] = sum(self->lt_counter + 1);
386 this->priority] = sum((self->lt_counter + 1) * self->lt_timestamp);
388 this->priority] = max(self->lt_timestamp);
390 self->lt_timestamp = 0;
391 self->lt_counter = 0;
398 TRACE_FILTER_COND(self->lt_stackp == 0 || \
399 (self->lt_stackp < MAX_TAG && \
400 self->lt_prio[self->lt_stackp - 1] <= priority) ) \
402 self->lt_prio[self->lt_stackp] = priority; \
403 self->lt_cause[self->lt_stackp] = cause; \
404 ++self->lt_stackp; \
407 TRACE_FILTER_COND(self->lt_stackp > 0 && \
408 self->lt_cause[self->lt_stackp - 1] == cause) \
410 --self->lt_stackp; \
411 self->lt_cause[self->lt_stackp] = NULL; \