Lines Matching defs:new
584 static void __queue_event(struct sample_queue *new, struct perf_session *s)
588 u64 timestamp = new->timestamp;
591 os->last_sample = new;
594 list_add(&new->list, &os->samples);
601 * the last queued event. We expect that the new event is close to
608 list_add_tail(&new->list, &os->samples);
614 list_add_tail(&new->list, &sample->list);
619 list_add(&new->list, &os->samples);
624 list_add(&new->list, &sample->list);
636 struct sample_queue *new;
647 new = list_entry(sc->next, struct sample_queue, list);
648 list_del(&new->list);
650 new = os->sample_buffer + os->sample_buffer_idx;
654 os->sample_buffer = malloc(MAX_SAMPLE_BUFFER * sizeof(*new));
659 new = os->sample_buffer + 1;
662 new->timestamp = timestamp;
663 new->file_offset = file_offset;
664 new->event = event;
666 __queue_event(new, s);