Lines Matching refs:event
32 event_t* event = reinterpret_cast<event_t*>(calloc(1, size)); in CallocMemoryForEvent() local
33 CHECK(event); in CallocMemoryForEvent()
34 return event; in CallocMemoryForEvent()
38 build_id_event* event = reinterpret_cast<build_id_event*>(calloc(1, size)); in CallocMemoryForBuildID() local
39 CHECK(event); in CallocMemoryForBuildID()
40 return event; in CallocMemoryForBuildID()
115 uint64_t GetPerfSampleDataOffset(const event_t& event) { in GetPerfSampleDataOffset() argument
117 switch (event.header.type) { in GetPerfSampleDataOffset()
122 offset = sizeof(event.mmap) - sizeof(event.mmap.filename) + in GetPerfSampleDataOffset()
123 GetUint64AlignedStringLength(event.mmap.filename); in GetPerfSampleDataOffset()
127 offset = sizeof(event.fork); in GetPerfSampleDataOffset()
130 offset = sizeof(event.comm) - sizeof(event.comm.comm) + in GetPerfSampleDataOffset()
131 GetUint64AlignedStringLength(event.comm.comm); in GetPerfSampleDataOffset()
134 offset = sizeof(event.lost); in GetPerfSampleDataOffset()
137 offset = sizeof(event.read); in GetPerfSampleDataOffset()
140 offset = sizeof(event.mmap2) - sizeof(event.mmap2.filename) + in GetPerfSampleDataOffset()
141 GetUint64AlignedStringLength(event.mmap2.filename); in GetPerfSampleDataOffset()
144 LOG(FATAL) << "Unknown/unsupported event type " << event.header.type; in GetPerfSampleDataOffset()