Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Drecord.cpp74 sample_type = attr.sample_type; in CreateContent()
81 sample_type = attr.sample_type; in ReadFromBinaryFormat()
83 if (sample_type & PERF_SAMPLE_TID) { in ReadFromBinaryFormat()
86 if (sample_type & PERF_SAMPLE_TIME) { in ReadFromBinaryFormat()
89 if (sample_type & PERF_SAMPLE_ID) { in ReadFromBinaryFormat()
92 if (sample_type & PERF_SAMPLE_STREAM_ID) { in ReadFromBinaryFormat()
95 if (sample_type & PERF_SAMPLE_CPU) { in ReadFromBinaryFormat()
108 if (sample_type & PERF_SAMPLE_TID) { in WriteToBinaryFormat()
111 if (sample_type & PERF_SAMPLE_TIME) { in WriteToBinaryFormat()
114 if (sample_type & PERF_SAMPLE_ID) { in WriteToBinaryFormat()
[all …]
Devent_selection_set.cpp35 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in IsBranchSamplingSupported()
46 attr.sample_type |= PERF_SAMPLE_CALLCHAIN | PERF_SAMPLE_REGS_USER | PERF_SAMPLE_STACK_USER; in IsDwarfCallChainSamplingSupported()
75 uint64_t sample_type = 0; in UnionSampleType() local
77 sample_type |= selection.event_attr.sample_type; in UnionSampleType()
80 selection.event_attr.sample_type = sample_type; in UnionSampleType()
145 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in SetBranchSampling()
147 attr.sample_type &= ~PERF_SAMPLE_BRANCH_STACK; in SetBranchSampling()
156 selection.event_attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in EnableFpCallChainSampling()
166 selection.event_attr.sample_type |= in EnableDwarfCallChainSampling()
Devent_attr.cpp47 static std::string SampleTypeToString(uint64_t sample_type) { in SampleTypeToString() argument
64 return BitsToString("sample_type", sample_type, sample_type_names); in SampleTypeToString()
90 attr.sample_type |= in CreateDefaultPerfEventAttr()
97 attr.sample_type |= PERF_SAMPLE_RAW; in CreateDefaultPerfEventAttr()
119 PrintIndented(indent + 1, "sample_type (0x%llx) %s\n", attr.sample_type, in DumpPerfEventAttr()
120 SampleTypeToString(attr.sample_type).c_str()); in DumpPerfEventAttr()
Drecord_test.cpp60 event_attr.sample_type |= PERF_SAMPLE_TIME; in TEST_F()
106 event_attr.sample_type |= PERF_SAMPLE_TIME; in TEST_F()
Dcmd_report.cpp522 if (use_branch_address_ && (event_attr_.sample_type & PERF_SAMPLE_BRANCH_STACK) == 0) { in ReadEventAttrFromRecordFile()
545 if (use_branch_address_ && (r.sample_type & PERF_SAMPLE_BRANCH_STACK)) { in ProcessSampleRecord()
561 if (r.sample_type & PERF_SAMPLE_CALLCHAIN) { in ProcessSampleRecord()
566 if ((r.sample_type & PERF_SAMPLE_REGS_USER) && (r.regs_user_data.reg_mask != 0) && in ProcessSampleRecord()
567 (r.sample_type & PERF_SAMPLE_STACK_USER) && (!r.stack_user_data.data.empty())) { in ProcessSampleRecord()
Drecord.h109 uint64_t sample_type; member
255 uint64_t sample_type; // sample_type is a bit mask determining which fields below are valid. member
Dcmd_record.cpp689 if ((r.sample_type & PERF_SAMPLE_CALLCHAIN) && (r.sample_type & PERF_SAMPLE_REGS_USER) && in UnwindRecord()
690 (r.regs_user_data.reg_mask != 0) && (r.sample_type & PERF_SAMPLE_STACK_USER) && in UnwindRecord()
Drecord_file_test.cpp109 attrs_[0]->sample_type |= PERF_SAMPLE_TIME; in TEST_F()
/system/extras/perfprofd/quipper/
Dperf_utils.cc91 uint64_t sample_type) { in GetSampleFieldsForEventType() argument
112 return sample_type & mask; in GetSampleFieldsForEventType()
Dperf_utils.h83 uint64_t GetSampleFieldsForEventType(uint32_t event_type, uint64_t sample_type);
Dperf_reader.cc949 ByteSwap(&attr->sample_type); in ReadEventAttr()
977 sample_type_ = attr->sample_type; in ReadEventAttr()
979 CHECK_EQ(sample_type_, attr->sample_type) in ReadEventAttr()