Lines Matching refs:event_hdr
253 auto* event_hdr = reinterpret_cast<const perf_event_header*>(event); in ReadUntilSample() local
255 if (event_hdr->type == PERF_RECORD_SAMPLE) { in ReadUntilSample()
257 ring_buffer_.Consume(event_hdr->size); in ReadUntilSample()
261 if (event_hdr->type == PERF_RECORD_LOST) { in ReadUntilSample()
274 ring_buffer_.Consume(event_hdr->size); in ReadUntilSample()
279 if (event_hdr->type == PERF_RECORD_THROTTLE || in ReadUntilSample()
280 event_hdr->type == PERF_RECORD_UNTHROTTLE) { in ReadUntilSample()
281 ring_buffer_.Consume(event_hdr->size); in ReadUntilSample()
286 static_cast<size_t>(event_hdr->type)); in ReadUntilSample()
287 ring_buffer_.Consume(event_hdr->size); in ReadUntilSample()
303 auto* event_hdr = reinterpret_cast<const perf_event_header*>(record_start); in ParseSampleRecord() local
304 size_t sample_size = event_hdr->size; in ParseSampleRecord()
308 sample.common.cpu_mode = event_hdr->misc & PERF_RECORD_MISC_CPUMODE_MASK; in ParseSampleRecord()