Lines Matching defs:feature

383 bool PerfFileWriter::AddNrCpusFeature(FEATURE feature, uint32_t nrCpusAvailable,
386 HLOGV("add feature '%s': nrCpusAvailable %u, nrCpusOnline %u",
389 std::make_unique<PerfFileSectionNrCpus>(feature, nrCpusAvailable, nrCpusOnline));
391 // update header feature bits
397 bool PerfFileWriter::AddEventDescFeature(FEATURE feature,
400 HLOGV("add feature '%s' %zu", PerfFileSection::GetFeatureName(FEATURE::EVENT_DESC).c_str(),
402 featureSections_.emplace_back(std::make_unique<PerfFileSectionEventDesc>(feature, eventDesces));
409 bool PerfFileWriter::AddStringFeature(FEATURE feature, std::string string)
411 HLOGV("add feature '%s' string '%s'", PerfFileSection::GetFeatureName(feature).c_str(),
413 featureSections_.emplace_back(std::make_unique<PerfFileSectionString>(feature, string));
415 // update header feature bits
416 header_.features[static_cast<int>(feature) / BITS_IN_BYTE] |= 1 << (static_cast<int>(feature) % BITS_IN_BYTE);
420 bool PerfFileWriter::AddBoolFeature(FEATURE feature)
423 return AddU64Feature(feature, 1u);
426 bool PerfFileWriter::AddU64Feature(FEATURE feature, uint64_t v)
428 HLOGV("add feature '%s' uint64_t '%" PRIu64 "'",
429 PerfFileSection::GetFeatureName(feature).c_str(), v);
430 featureSections_.emplace_back(std::make_unique<PerfFileSectionU64>(feature, v));
432 // update header feature bits
433 header_.features[static_cast<int>(feature) / BITS_IN_BYTE] |= 1 << (static_cast<int>(feature) % BITS_IN_BYTE);
439 const FEATURE feature = FEATURE::HIPERF_FILES_UNISTACK_TABLE;
441 std::make_unique<PerfFileSectionUniStackTable>(feature, table));
442 header_.features[static_cast<int>(feature) / BITS_IN_BYTE] |= 1 << (static_cast<int>(feature) % BITS_IN_BYTE);
449 const FEATURE feature = FEATURE::HIPERF_FILES_SYMBOL;
450 HLOGV("add feature symbolsFiles %zu", symbolsFiles.size());
453 HLOGV("add feature symbolsFile %s", symbolsFile->filePath_.c_str());
460 std::make_unique<PerfFileSectionSymbolsFiles>(feature, symbolFileStructs));
461 // update header feature bits
462 header_.features[static_cast<int>(feature) / BITS_IN_BYTE] |= 1 << (static_cast<int>(feature) % BITS_IN_BYTE);