Lines Matching refs:reader
181 auto get_arch = [](std::unique_ptr<RecordFileReader>& reader) { in CheckFeatureSection() argument
182 return reader->ReadFeatureString(PerfFileFormat::FEAT_ARCH); in CheckFeatureSection()
184 auto get_kernel_version = [](std::unique_ptr<RecordFileReader>& reader) { in CheckFeatureSection() argument
185 return reader->ReadFeatureString(PerfFileFormat::FEAT_OSRELEASE); in CheckFeatureSection()
187 auto get_meta_info = [](std::unique_ptr<RecordFileReader>& reader, const char* key) { in CheckFeatureSection() argument
188 auto it = reader->GetMetaInfoFeature().find(key); in CheckFeatureSection()
189 return it == reader->GetMetaInfoFeature().end() ? "" : it->second; in CheckFeatureSection()
191 auto get_simpleperf_version = [&](std::unique_ptr<RecordFileReader>& reader) { in CheckFeatureSection() argument
192 return get_meta_info(reader, "simpleperf_version"); in CheckFeatureSection()
194 auto get_trace_offcpu = [&](std::unique_ptr<RecordFileReader>& reader) { in CheckFeatureSection() argument
195 return get_meta_info(reader, "trace_offcpu"); in CheckFeatureSection()
197 auto get_event_types = [&](std::unique_ptr<RecordFileReader>& reader) { in CheckFeatureSection() argument
198 std::string s = get_meta_info(reader, "event_type_info"); in CheckFeatureSection()
203 auto get_android_device = [&](std::unique_ptr<RecordFileReader>& reader) { in CheckFeatureSection() argument
204 return get_meta_info(reader, "product_props"); in CheckFeatureSection()
206 auto get_android_version = [&](std::unique_ptr<RecordFileReader>& reader) { in CheckFeatureSection() argument
207 return get_meta_info(reader, "android_version"); in CheckFeatureSection()
209 auto get_app_package_name = [&](std::unique_ptr<RecordFileReader>& reader) { in CheckFeatureSection() argument
210 return get_meta_info(reader, "app_package_name"); in CheckFeatureSection()
212 auto get_clockid = [&](std::unique_ptr<RecordFileReader>& reader) { in CheckFeatureSection() argument
213 return get_meta_info(reader, "clockid"); in CheckFeatureSection()
215 auto get_used_features = [](std::unique_ptr<RecordFileReader>& reader) { in CheckFeatureSection() argument
217 for (const auto& [key, _] : reader->FeatureSectionDescriptors()) { in CheckFeatureSection()
353 for (auto& reader : readers_) { in WriteBuildIdFeature() local
354 for (auto& record : reader->ReadBuildIdFeature()) { in WriteBuildIdFeature()
382 for (auto& reader : readers_) { in WriteFileFeature() local
385 while (reader->ReadFileFeature(read_pos, &file)) { in WriteFileFeature()