Lines Matching defs:Record
104 // SampleId is optional at the end of a record in binary format. Its content is determined by
131 // Usually one record contains the following three parts in order in binary format:
132 // perf_event_header (at the head of a record, containing type and size information)
133 // data depends on the record type
134 // sample_id (optional part at the end of a record)
135 // We hold the common parts (perf_event_header and sample_id) in the base class Record, and
136 // hold the type specific data part in classes derived from Record.
137 struct Record {
141 Record();
142 Record(const perf_event_header* pheader);
144 virtual ~Record() {
163 struct MmapRecord : public Record {
183 struct Mmap2Record : public Record {
208 struct CommRecord : public Record {
224 struct ExitOrForkRecord : public Record {
254 struct SampleRecord : public Record {
281 // BuildIdRecord is defined in user-space, stored in BuildId feature section in record file.
282 struct BuildIdRecord : public Record {
297 // UnknownRecord is used for unknown record types, it makes sure all unknown records
299 struct UnknownRecord : public Record {
314 // RecordCache pushes records and pops sorted record online. It uses two checks to help
315 // ensure that records are popped in order. Each time we pop a record A, it is the earliest record
319 // after record A, we are not likely to receive a record earlier than A. For min_time_diff
320 // check, we check if record A is generated min_time_diff ns earlier than the latest
321 // record, which is based on the assumption that if we have received a record for time t,
322 // we are not likely to receive a record for time (t - min_time_diff) or earlier.
329 void Push(std::unique_ptr<Record> record);
330 std::unique_ptr<Record> Pop();
331 std::vector<std::unique_ptr<Record>> PopAll();
336 Record *record;
345 RecordWithSeq CreateRecordWithSeq(Record *r);
357 std::vector<std::unique_ptr<Record>> ReadRecordsFromBuffer(const perf_event_attr& attr,
359 std::unique_ptr<Record> ReadRecordFromFile(const perf_event_attr& attr, FILE* fp);