Home
last modified time | relevance | path

Searched refs:sample_type (Results 1 – 15 of 15) sorted by relevance

/system/extras/simpleperf/
Drecord_equal_test.h36 ASSERT_EQ(r1.sample_type, r2.sample_type); in CheckSampleRecordDataEqual()
37 if (r1.sample_type & PERF_SAMPLE_IP) { in CheckSampleRecordDataEqual()
40 if (r1.sample_type & PERF_SAMPLE_TID) { in CheckSampleRecordDataEqual()
44 if (r1.sample_type & PERF_SAMPLE_TIME) { in CheckSampleRecordDataEqual()
47 if (r1.sample_type & PERF_SAMPLE_ID) { in CheckSampleRecordDataEqual()
50 if (r1.sample_type & PERF_SAMPLE_CPU) { in CheckSampleRecordDataEqual()
53 if (r1.sample_type & PERF_SAMPLE_PERIOD) { in CheckSampleRecordDataEqual()
56 if (r1.sample_type & PERF_SAMPLE_CALLCHAIN) { in CheckSampleRecordDataEqual()
62 if (r1.sample_type & PERF_SAMPLE_REGS_USER) { in CheckSampleRecordDataEqual()
70 if (r1.sample_type & PERF_SAMPLE_STACK_USER) { in CheckSampleRecordDataEqual()
Drecord.cpp79 sample_type = attr.sample_type; in CreateContent()
87 sample_type = attr.sample_type; in ReadFromBinaryFormat()
89 if (sample_type & PERF_SAMPLE_TID) { in ReadFromBinaryFormat()
92 if (sample_type & PERF_SAMPLE_TIME) { in ReadFromBinaryFormat()
95 if (sample_type & PERF_SAMPLE_ID) { in ReadFromBinaryFormat()
98 if (sample_type & PERF_SAMPLE_STREAM_ID) { in ReadFromBinaryFormat()
101 if (sample_type & PERF_SAMPLE_CPU) { in ReadFromBinaryFormat()
104 if (sample_type & PERF_SAMPLE_IDENTIFIER) { in ReadFromBinaryFormat()
116 if (sample_type & PERF_SAMPLE_TID) { in WriteToBinaryFormat()
119 if (sample_type & PERF_SAMPLE_TIME) { in WriteToBinaryFormat()
[all …]
Devent_attr.cpp50 static std::string SampleTypeToString(uint64_t sample_type) { in SampleTypeToString() argument
67 return BitsToString("sample_type", sample_type, sample_type_names); in SampleTypeToString()
91 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME | PERF_SAMPLE_PERIOD | in CreateDefaultPerfEventAttr()
97 attr.sample_type |= PERF_SAMPLE_RAW; in CreateDefaultPerfEventAttr()
115 PrintIndented(indent + 1, "sample_type (0x%llx) %s\n", attr.sample_type, in DumpPerfEventAttr()
116 SampleTypeToString(attr.sample_type).c_str()); in DumpPerfEventAttr()
154 sample_types.push_back(attr.sample_type); in GetCommonEventIdPositionsForAttrs()
227 return attr.sample_id_all && (attr.sample_type & PERF_SAMPLE_TIME); in IsTimestampSupported()
231 return attr.sample_id_all && (attr.sample_type & PERF_SAMPLE_CPU); in IsCpuSupported()
Drecord_test.cpp56 event_attr.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME | PERF_SAMPLE_ID | in TEST_F()
66 event_attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in TEST_F()
103 event_attr.sample_type |= PERF_SAMPLE_CALLCHAIN | PERF_SAMPLE_REGS_USER | PERF_SAMPLE_STACK_USER; in TEST_F()
114 event_attr.sample_type |= PERF_SAMPLE_CALLCHAIN | PERF_SAMPLE_REGS_USER | PERF_SAMPLE_STACK_USER; in TEST_F()
123 event_attr.sample_type |= PERF_SAMPLE_CALLCHAIN | PERF_SAMPLE_REGS_USER | PERF_SAMPLE_STACK_USER; in TEST_F()
Devent_selection_set.cpp48 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in IsBranchSamplingSupported()
59 attr.sample_type |= PERF_SAMPLE_CALLCHAIN | PERF_SAMPLE_REGS_USER | PERF_SAMPLE_STACK_USER; in IsDwarfCallChainSamplingSupported()
349 uint64_t sample_type = 0; in UnionSampleType() local
352 sample_type |= selection.event_attr.sample_type; in UnionSampleType()
357 selection.event_attr.sample_type = sample_type; in UnionSampleType()
428 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in SetBranchSampling()
430 attr.sample_type &= ~PERF_SAMPLE_BRANCH_STACK; in SetBranchSampling()
441 selection.event_attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in EnableFpCallChainSampling()
453 selection.event_attr.sample_type |= in EnableDwarfCallChainSampling()
Dsample_tree.h84 if (use_branch_address_ && (r.sample_type & PERF_SAMPLE_BRANCH_STACK)) { in ProcessSampleRecord()
101 if (r.sample_type & PERF_SAMPLE_CALLCHAIN) { in ProcessSampleRecord()
107 if (thread != nullptr && (r.sample_type & PERF_SAMPLE_REGS_USER) && in ProcessSampleRecord()
108 (r.regs_user_data.reg_mask != 0) && (r.sample_type & PERF_SAMPLE_STACK_USER) && in ProcessSampleRecord()
Dcmd_monitor.cpp545 if (sr.sample_type & PERF_SAMPLE_CALLCHAIN) { in DumpSampleCallchain()
599 if ((r.sample_type & PERF_SAMPLE_CALLCHAIN) && (r.sample_type & PERF_SAMPLE_REGS_USER) && in UnwindRecord()
600 (r.regs_user_data.reg_mask != 0) && (r.sample_type & PERF_SAMPLE_STACK_USER) && in UnwindRecord()
DRecordReadThread_test.cpp309 attr.sample_type |= PERF_SAMPLE_STACK_USER; in TEST_F()
389 attr.sample_type |= PERF_SAMPLE_STACK_USER; in TEST_F()
412 attr.sample_type |= PERF_SAMPLE_STACK_USER; in TEST_F()
Drecord.h186 uint64_t sample_type; member
374 uint64_t sample_type; // sample_type is a bit mask determining which fields member
DRecordReadThread.cpp109 : sample_type_(attr.sample_type), in RecordParser()
221 if (attr.sample_type & PERF_SAMPLE_STACK_USER) { in RecordReadThread()
Dcmd_record.cpp1571 if ((r.sample_type & PERF_SAMPLE_CALLCHAIN) && (r.sample_type & PERF_SAMPLE_REGS_USER) && in UnwindRecord()
1572 (r.regs_user_data.reg_mask != 0) && (r.sample_type & PERF_SAMPLE_STACK_USER) && in UnwindRecord()
Dreport_lib_interface.cpp302 if (current_event_.tracing_data_format.size > 0u && (r.sample_type & PERF_SAMPLE_RAW)) { in SetCurrentSample()
Dcmd_dumprecord.cpp371 if (sr.sample_type & PERF_SAMPLE_CALLCHAIN) { in ProcessSampleRecord()
Dcmd_report.cpp774 if ((attr.attr.sample_type & PERF_SAMPLE_BRANCH_STACK) == 0) { in ReadEventAttrFromRecordFile()
/system/extras/simpleperf/scripts/
Dpprof_proto_generator.py62 print('%d sample_types' % len(p.sample_type))
63 for i in range(len(p.sample_type)):
65 self.show_value_type(p.sample_type[i])
377 sample_type_id = len(self.profile.sample_type)
378 sample_type = self.profile.sample_type.add()
379 sample_type.type = self.get_string_id('event_' + name + '_samples')
380 sample_type.unit = self.get_string_id('count')
381 sample_type = self.profile.sample_type.add()
382 sample_type.type = self.get_string_id('event_' + name + '_count')
383 sample_type.unit = self.get_string_id('count')