Lines Matching full:sample
108 * verb_show_sample - print the sample out to the log
157 * opd_lookup_maps - lookup a proc mappings for a sample
159 * @param sample sample to lookup
161 * iterate through the proc maps searching the mapping which owns sample
162 * if sucessful sample count will be updated and we return non-zero
165 struct op_sample const * sample)
174 if (opd_is_in_map(map, sample->eip)) {
175 unsigned long offset = opd_map_offset(map, sample->eip);
178 opd_put_image_sample(map->image, offset, sample->counter);
190 void opd_put_sample(struct op_sample const * sample)
193 int in_kernel_eip = opd_eip_is_kernel(sample->eip);
198 sample->counter, sample->eip, sample->tgid, sample->pid);
201 opd_handle_kernel_sample(sample->eip, sample->counter);
205 if (!(proc = opd_get_proc(sample->pid, sample->tgid))) {
208 * a proc so on we fall back to put sample in vmlinux
210 * sample for newly created kernel thread, currently
213 opd_handle_kernel_sample(sample->eip, sample->counter);
216 sample->tgid, sample->pid);
222 if (opd_lookup_maps(proc, sample))
226 opd_add_kernel_map(proc, sample->eip);
227 if (opd_lookup_maps(proc, sample))
233 sample->pid, sample->eip);
412 * sample in proc struct.