Lines Matching defs:sample
97 int sample,
242 ps->sample = new0(struct ps_sched_struct, 1);
243 if (!ps->sample)
246 ps->sample->sampledata = sampledata;
250 /* mark our first sample */
251 ps->first = ps->last = ps->sample;
252 ps->sample->runtime = atoll(rt);
253 ps->sample->waittime = atoll(wt);
385 ps->sample->next = new0(struct ps_sched_struct, 1);
386 if (!ps->sample->next)
389 ps->sample->next->prev = ps->sample;
390 ps->sample = ps->sample->next;
391 ps->last = ps->sample;
392 ps->sample->runtime = atoll(rt);
393 ps->sample->waittime = atoll(wt);
394 ps->sample->sampledata = sampledata;
395 ps->sample->ps_new = ps;
397 ps_prev->cross = ps->sample;
399 ps_prev = ps->sample;
454 ps->sample->runtime += delta_rt;
455 ps->sample->waittime += delta_wt;
507 ps->sample->pss += pss_kb;
516 if (ps->sample->pss > ps->pss_max)
517 ps->pss_max = ps->sample->pss;
522 if (((sample - ps->pid) + pid) % (int)(mod) == 0) {