Lines Matching defs:record
121 bool PerfFileWriter::WriteRecord(const PerfEventRecord &record)
128 HLOGV("write '%s', size %zu", record.GetName().c_str(), record.GetSize());
130 CHECK_TRUE(record.GetSize() > RECORD_SIZE_LIMIT_SPE, false, 1,
131 "%s record size exceed limit", record.GetName().c_str());
135 CHECK_TRUE(!record.GetBinary(buf), false, 0, "");
137 CHECK_TRUE(!Write(buf.data(), record.GetSize()), false, 0, "");
138 dataSection_.size += record.GetSize();
160 // record size can not exceed 64K
188 // the record is allowed from a cache memory, does not free memory after use
189 auto record = GetPerfSampleFromCacheMain(static_cast<perf_event_type>(header->type),
191 // skip unknown record
192 CHECK_TRUE(record == nullptr, true, 0, "");
194 // call callback to process, do not destroy the record
195 callback(std::move(record));