Lines Matching refs:sample
126 * This function prepares the cpu buffer to write a sample.
132 * op_cpu_buffer_write_commit() after preparing the sample. In case of
134 * sample.
142 size * sizeof(entry->sample->data[0]));
145 entry->sample = ring_buffer_event_data(entry->event);
147 entry->data = entry->sample->data;
149 return entry->sample;
165 entry->sample = ring_buffer_event_data(e);
167 / sizeof(entry->sample->data[0]);
168 entry->data = entry->sample->data;
169 return entry->sample;
182 struct op_sample *sample;
215 sample = op_cpu_buffer_write_reserve(&entry, size);
216 if (!sample)
219 sample->eip = ESCAPE_CODE;
220 sample->event = flags;
235 struct op_sample *sample;
237 sample = op_cpu_buffer_write_reserve(&entry, 0);
238 if (!sample)
241 sample->eip = pc;
242 sample->event = event;
338 * oprofile_write_commit(&entry) to commit the sample.
344 struct op_sample *sample;
354 sample = op_cpu_buffer_write_reserve(entry, size + 2);
355 if (!sample)
357 sample->eip = ESCAPE_CODE;
358 sample->event = 0; /* no flags */