Lines Matching defs:sample
132 * This function prepares the cpu buffer to write a sample.
138 * op_cpu_buffer_write_commit() after preparing the sample. In case of
140 * sample.
148 size * sizeof(entry->sample->data[0]));
151 entry->sample = ring_buffer_event_data(entry->event);
153 entry->data = entry->sample->data;
155 return entry->sample;
171 entry->sample = ring_buffer_event_data(e);
173 / sizeof(entry->sample->data[0]);
174 entry->data = entry->sample->data;
175 return entry->sample;
188 struct op_sample *sample;
221 sample = op_cpu_buffer_write_reserve(&entry, size);
222 if (!sample)
225 sample->eip = ESCAPE_CODE;
226 sample->event = flags;
241 struct op_sample *sample;
243 sample = op_cpu_buffer_write_reserve(&entry, 0);
244 if (!sample)
247 sample->eip = pc;
248 sample->event = event;
354 * oprofile_write_commit(&entry) to commit the sample.
360 struct op_sample *sample;
370 sample = op_cpu_buffer_write_reserve(entry, size + 2);
371 if (!sample)
373 sample->eip = ESCAPE_CODE;
374 sample->event = 0; /* no flags */