Home
last modified time | relevance | path

Searched refs:event_attr (Results 1 – 7 of 7) sorted by relevance

/system/extras/simpleperf/
Drecord_test.cpp29 event_attr = CreateDefaultPerfEventAttr(*event_type); in SetUp()
35 perf_event_attr event_attr; member in RecordTest
42 ReadRecordFromBuffer(event_attr, reinterpret_cast<const perf_event_header*>(binary.data())); in CheckRecordMatchBinary()
49 CreateMmapRecord(event_attr, true, 1, 2, 0x1000, 0x2000, 0x3000, "MmapRecord"); in TEST_F()
54 CommRecord record = CreateCommRecord(event_attr, 1, 2, "CommRecord"); in TEST_F()
Devent_selection_set.cpp28 selection.event_attr = CreateDefaultPerfEventAttr(event_type); in AddEventType()
34 selection.event_attr.enable_on_exec = 1; in EnableOnExec()
40 selection.event_attr.sample_id_all = 1; in SampleIdAll()
46 perf_event_attr& attr = selection.event_attr; in SetSampleFreq()
54 perf_event_attr& attr = selection.event_attr; in SetSamplePeriod()
67 auto event_fd = EventFd::OpenEventFileForCpu(selection.event_attr, cpu); in OpenEventFilesForAllCpus()
85 auto event_fd = EventFd::OpenEventFileForProcess(selection.event_attr, pid); in OpenEventFilesForProcess()
202 return FindSelectionByType(event_type)->event_attr; in FindEventAttrByType()
Drecord_file_test.cpp37 event_attr = CreateDefaultPerfEventAttr(*event_type); in SetUp()
38 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFileForProcess(event_attr, getpid()); in SetUp()
44 perf_event_attr event_attr; member in RecordFileTest
51 RecordFileWriter::CreateInstance(filename, event_attr, event_fds); in TEST_F()
56 CreateMmapRecord(event_attr, true, 1, 1, 0x1000, 0x2000, 0x3000, "mmap_record_example"); in TEST_F()
76 ASSERT_EQ(0, memcmp(&attrs[0]->attr, &event_attr, sizeof(perf_event_attr))); in TEST_F()
Drecord_file.h37 const std::string& filename, const perf_event_attr& event_attr,
63 bool WriteAttrSection(const perf_event_attr& event_attr,
Drecord_file.cpp36 const std::string& filename, const perf_event_attr& event_attr, in CreateInstance() argument
45 if (!writer->WriteAttrSection(event_attr, event_fds)) { in CreateInstance()
68 bool RecordFileWriter::WriteAttrSection(const perf_event_attr& event_attr, in WriteAttrSection() argument
90 attr.attr = event_attr; in WriteAttrSection()
112 event_attr_ = event_attr; in WriteAttrSection()
Devent_selection_set.h72 perf_event_attr event_attr; member
DAndroid.mk35 event_attr.cpp \