Home
last modified time | relevance | path

Searched refs:perf_event_attr (Results 1 – 25 of 33) sorted by relevance

12

/system/extras/simpleperf/
Devent_attr.h33 perf_event_attr attr;
41 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type);
42 void DumpPerfEventAttr(const perf_event_attr& attr, size_t indent = 0);
46 bool IsTimestampSupported(const perf_event_attr& attr);
47 bool IsCpuSupported(const perf_event_attr& attr);
50 std::string GetEventNameByAttr(const perf_event_attr& attr);
51 void ReplaceRegAndStackWithCallChain(perf_event_attr& attr);
53 inline bool operator==(const perf_event_attr& attr1, const perf_event_attr& attr2) {
54 return memcmp(&attr1, &attr2, sizeof(perf_event_attr)) == 0;
57 inline bool operator!=(const perf_event_attr& attr1, const perf_event_attr& attr2) {
Drecord.h209 size_t CreateContent(const perf_event_attr& attr, uint64_t event_id);
212 bool ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, const char* end);
240 virtual bool Parse(const perf_event_attr& attr, char* p, char* end) = 0;
295 MmapRecord(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, uint64_t addr,
299 bool Parse(const perf_event_attr& attr, char* p, char* end) override;
322 Mmap2Record(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid,
326 bool Parse(const perf_event_attr& attr, char* p, char* end) override;
341 CommRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, const std::string& comm,
344 bool Parse(const perf_event_attr& attr, char* p, char* end) override;
360 bool Parse(const perf_event_attr& attr, char* p, char* end) override;
[all …]
Devent_fd.h43 static std::unique_ptr<EventFd> OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu,
59 const perf_event_attr& attr() const { return attr_; } in attr()
112 EventFd(const perf_event_attr& attr, int perf_event_fd, const std::string& event_name, pid_t tid, in EventFd()
130 const perf_event_attr attr_;
156 bool IsEventAttrSupported(const perf_event_attr& attr, const std::string& event_name);
Devent_attr.cpp80 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type) { in CreateDefaultPerfEventAttr()
81 perf_event_attr attr; in CreateDefaultPerfEventAttr()
83 attr.size = sizeof(perf_event_attr); in CreateDefaultPerfEventAttr()
103 void DumpPerfEventAttr(const perf_event_attr& attr, size_t indent) { in DumpPerfEventAttr()
228 bool IsTimestampSupported(const perf_event_attr& attr) { in IsTimestampSupported()
232 bool IsCpuSupported(const perf_event_attr& attr) { in IsCpuSupported()
236 std::string GetEventNameByAttr(const perf_event_attr& attr) { in GetEventNameByAttr()
257 void ReplaceRegAndStackWithCallChain(perf_event_attr& attr) { in ReplaceRegAndStackWithCallChain()
DMapRecordReader.h36 MapRecordReader(const perf_event_attr& attr, uint64_t event_id, bool keep_non_executable_maps) in MapRecordReader()
39 const perf_event_attr& Attr() { return attr_; } in Attr()
48 const perf_event_attr& attr_;
DRecordReadThread_test.cpp119 perf_event_attr event_attr = CreateDefaultPerfEventAttr(*type); in TEST()
136 MockEventFd(const perf_event_attr& attr, int cpu, char* buffer, size_t buffer_size, in MockEventFd()
159 static perf_event_attr CreateFakeEventAttr() { in CreateFakeEventAttr()
165 static std::vector<std::unique_ptr<Record>> CreateFakeRecords(const perf_event_attr& attr, in CreateFakeRecords()
195 perf_event_attr attr = CreateFakeEventAttr(); in TEST()
234 std::vector<EventFd*> CreateFakeEventFds(const perf_event_attr& attr, size_t event_fd_count) { in CreateFakeEventFds()
274 perf_event_attr attr = CreateFakeEventAttr(); in TEST_F()
295 perf_event_attr attr = CreateFakeEventAttr(); in TEST_F()
327 perf_event_attr attr = CreateFakeEventAttr(); in TEST_F()
381 perf_event_attr attr = CreateFakeEventAttr(); in TEST_F()
[all …]
Drecord.cpp94 size_t SampleId::CreateContent(const perf_event_attr& attr, uint64_t event_id) { in CreateContent()
102 bool SampleId::ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, const char* end) { in ReadFromBinaryFormat()
247 bool MmapRecord::Parse(const perf_event_attr& attr, char* p, char* end) { in Parse()
261 MmapRecord::MmapRecord(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, in MmapRecord()
296 bool Mmap2Record::Parse(const perf_event_attr& attr, char* p, char* end) { in Parse()
310 Mmap2Record::Mmap2Record(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, in Mmap2Record()
349 bool CommRecord::Parse(const perf_event_attr& attr, char* p, char* end) { in Parse()
363 CommRecord::CommRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, in CommRecord()
411 bool ExitOrForkRecord::Parse(const perf_event_attr& attr, char* p, char* end) { in Parse()
426 ForkRecord::ForkRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, uint32_t ppid, in ForkRecord()
[all …]
DRecordReadThread.h73 RecordParser(const perf_event_attr& attr);
133 RecordReadThread(size_t record_buffer_size, const perf_event_attr& attr, size_t min_mmap_pages,
191 perf_event_attr attr_;
Devent_fd.cpp43 static int perf_event_open(const perf_event_attr& attr, pid_t pid, int cpu, int group_fd, in perf_event_open()
48 std::unique_ptr<EventFd> EventFd::OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu, in OpenEventFile()
55 perf_event_attr real_attr = attr; in OpenEventFile()
329 bool IsEventAttrSupported(const perf_event_attr& attr, const std::string& event_name) { in IsEventAttrSupported()
Dtest_util.cpp104 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in HasNonZeroInstructionEventCount()
137 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in HasHardwareCounter()
DETMRecorder.h62 void SetEtmPerfEventAttr(perf_event_attr* attr);
Dcmd_list.cpp48 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type); in IsEventTypeSupported()
61 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type); in IsEventTypeSupported()
Drecord_file_format.h147 perf_event_attr attr;
Devent_selection_set.cpp47 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsBranchSamplingSupported()
62 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsDwarfCallChainSamplingSupported()
92 perf_event_attr attr = CreateDefaultPerfEventAttr(*event_type); in IsDumpingRegsForTracepointEventsSupported()
134 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsSettingClockIdSupported()
153 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsMmap2Supported()
163 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsHardwareEventSupported()
478 perf_event_attr& attr = selection.event_attr; in SetBranchSampling()
Dcpu_hotplug_test.cpp239 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type_modifier->event_type); in TEST()
296 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type_modifier->event_type); in TEST()
380 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type_modifier->event_type); in TEST()
446 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type_modifier->event_type); in TEST()
DMapRecordReader_test.cpp51 perf_event_attr attr_;
Drecord_lib_interface.cpp41 perf_event_attr attr = CreateDefaultPerfEventAttr(type); in GetAllEvents()
59 perf_event_attr attr = CreateDefaultPerfEventAttr(type->event_type); in IsEventSupported()
Drecord_file_test.cpp89 ASSERT_EQ(0, memcmp(&attrs[0].attr, &attr_ids_[0].attr, sizeof(perf_event_attr))); in TEST_F()
124 ASSERT_EQ(0, memcmp(&attrs[i].attr, &attr_ids_[i].attr, sizeof(perf_event_attr))); in TEST_F()
Drecord_file_reader.cpp183 if (attr_size_in_file >= sizeof(perf_event_attr)) { in ReadAttrSection()
184 memcpy(&event_attrs_[i].attr, &buf[0], sizeof(perf_event_attr)); in ReadAttrSection()
186 memset(&event_attrs_[i].attr, 0, sizeof(perf_event_attr)); in ReadAttrSection()
346 const perf_event_attr* attr = &event_attrs_[0].attr; in ReadRecord()
Devent_selection_set.h184 perf_event_attr event_attr;
DETMRecorder.cpp193 void ETMRecorder::SetEtmPerfEventAttr(perf_event_attr* attr) { in SetEtmPerfEventAttr()
Drecord_test.cpp42 perf_event_attr event_attr;
Drecord_file.h122 perf_event_attr event_attr_;
/system/extras/tests/icachetest/
DProfiler.cpp41 static int perf_event_open(struct perf_event_attr* hw_event, pid_t pid, in perf_event_open()
80 struct perf_event_attr pe; in resetEvents()
81 memset(&pe, 0, sizeof(struct perf_event_attr)); in resetEvents()
83 pe.size = sizeof(struct perf_event_attr); in resetEvents()
/system/core/init/
Dsecurity.cpp202 struct perf_event_attr pe = { in TestPerfEventSelinuxAction()
204 .size = sizeof(struct perf_event_attr), in TestPerfEventSelinuxAction()

12