| /developtools/hiperf/src/ |
| D | subcommand_dump.cpp | 312 void SubCommandDump::DumpPrintEventAttr(const perf_event_attr &attr, int indent) in DumpPrintEventAttr() argument 316 PrintIndent(LEVEL1, "type %u, size %u, config %llu\n", attr.type, attr.size, attr.config); in DumpPrintEventAttr() 318 if (attr.freq != 0) { in DumpPrintEventAttr() 319 PrintIndent(LEVEL1, "sample_freq %llu\n", attr.sample_freq); in DumpPrintEventAttr() 321 PrintIndent(LEVEL1, "sample_period %llu\n", attr.sample_period); in DumpPrintEventAttr() 324 PrintIndent(LEVEL1, "sample_type (0x%llx) \n", attr.sample_type); in DumpPrintEventAttr() 325 DumpSampleType(attr.sample_type, indent); in DumpPrintEventAttr() 327 PrintIndent(LEVEL1, "read_format (0x%llx) \n", attr.read_format); in DumpPrintEventAttr() 329 PrintIndent(LEVEL1, "disabled %u, inherit %u, pinned %u, exclusive %u\n", attr.disabled, in DumpPrintEventAttr() 330 attr.inherit, attr.pinned, attr.exclusive); in DumpPrintEventAttr() [all …]
|
| D | perf_events.cpp | 45 OHOS::UniqueFd PerfEvents::Open(perf_event_attr &attr, pid_t pid, int cpu, int group_fd, in Open() argument 48 OHOS::UniqueFd fd = UniqueFd(syscall(__NR_perf_event_open, &attr, pid, cpu, group_fd, flags)); in Open() 52 SubCommandDump::DumpPrintEventAttr(attr, std::numeric_limits<int>::min()); in Open() 88 unique_ptr<perf_event_attr> attr = PerfEvents::CreateDefaultAttr(type, config); in IsEventSupport() local 89 UniqueFd fd = Open(*attr.get()); in IsEventSupport() 98 bool PerfEvents::IsEventAttrSupport(perf_event_attr &attr) in IsEventAttrSupport() argument 100 UniqueFd fd = Open(attr); in IsEventAttrSupport() 113 unique_ptr<perf_event_attr> attr = in SetBranchSampleType() local 115 attr->sample_type |= PERF_SAMPLE_BRANCH_STACK; in SetBranchSampleType() 116 attr->branch_sample_type = value; in SetBranchSampleType() [all …]
|
| D | perf_file_reader.cpp | 162 perf_file_attr attr {}; in ReadAttrSection() local 163 size_t attr_size = header_.attrSize - sizeof(attr.ids); in ReadAttrSection() 172 attr.attr = *(reinterpret_cast<perf_event_attr *>(&buf[0])); in ReadAttrSection() 173 attr.ids = *(reinterpret_cast<perf_file_section *>(&buf[attr_size])); in ReadAttrSection() 174 vecAttr_.push_back(attr); in ReadAttrSection() 194 bool PerfFileReader::ReadIdsForAttr(const perf_file_attr &attr, std::vector<uint64_t> *ids) in ReadIdsForAttr() argument 196 if (attr.ids.size > 0) { in ReadIdsForAttr() 197 size_t count = attr.ids.size / sizeof(uint64_t); in ReadIdsForAttr() 198 if (fseek(fp_, attr.ids.offset, SEEK_SET) != 0) { in ReadIdsForAttr() 204 if (!Read(ids->data(), attr.ids.size)) { in ReadIdsForAttr() [all …]
|
| D | subcommand_report.cpp | 375 GetReport().configs_.emplace_back(fileAttr.name, fileAttr.attr.type, in LoadEventDesc() 376 fileAttr.attr.config, cpuOffMode_ ? false : true); in LoadEventDesc() 394 static_cast<perf_type_id>(fileAttr.attr.type), fileAttr.attr.config); in LoadAttrSection() 400 auto &config = GetReport().configs_.emplace_back(fileAttr.name, fileAttr.attr.type, in LoadAttrSection() 401 fileAttr.attr.config); in LoadAttrSection()
|
| D | perf_file_writer.cpp | 285 fileAttr.attr = attrId.attr; in WriteAttrAndId() 304 defaultEventAttr_ = attrIds[0].attr; in WriteAttrAndId()
|
| D | perf_file_format.cpp | 406 if (!Read(reinterpret_cast<char*>(&(eventDesc.attr)), sizeof(perf_event_attr))) { in PerfFileSectionEventDesc() 412 } else if (!Read(reinterpret_cast<char*>(&(eventDesc.attr)), attrSize)) { in PerfFileSectionEventDesc() 451 if (!Write(reinterpret_cast<char*>(&(eventDesc.attr)), sizeof(perf_event_attr))) { in GetBinary()
|
| D | perf_event_record.cpp | 27 const perf_event_attr &attr) in GetPerfEventRecord() argument 35 return std::make_unique<PerfRecordSample>(data, attr); in GetPerfEventRecord() 236 PerfRecordSample::PerfRecordSample(uint8_t *p, const perf_event_attr &attr) in PerfRecordSample() argument 243 sampleType_ = attr.sample_type; in PerfRecordSample() 276 data_.reg_mask = attr.sample_regs_user; in PerfRecordSample()
|
| /developtools/hiperf/test/unittest/common/native/ |
| D | perf_file_writer_test.cpp | 61 item.attr = {}; in TestEventDescInit() 62 item.attr.size = 0; in TestEventDescInit() 63 item.attr.type = TESTNUMBER1 * nr; in TestEventDescInit() 64 item.attr.config = TESTNUMBER2 * nr; in TestEventDescInit() 65 item.attr.__reserved_2 = TESTNUMBER3 * nr; in TestEventDescInit() 79 perf_event_attr attr; variable 80 attrId.attr = attr; 115 perf_event_attr attr; variable 116 attrId.attr = attr;
|
| D | perf_file_format_test.cpp | 205 item.attr = {}; in TestEventDescInit() 206 item.attr.size = 0; in TestEventDescInit() 207 item.attr.type = TESTNUMBER1 * nr; in TestEventDescInit() 208 item.attr.config = TESTNUMBER2 * nr; in TestEventDescInit() 209 item.attr.__reserved_2 = TESTNUMBER3 * nr; in TestEventDescInit() 224 ASSERT_EQ(a[i].attr.size, b[i].attr.size); in CompareEventDesc() 225 ASSERT_EQ(a[i].attr.type, b[i].attr.type); in CompareEventDesc() 226 ASSERT_EQ(a[i].attr.config, b[i].attr.config); in CompareEventDesc() 227 ASSERT_EQ(a[i].attr.__reserved_2, b[i].attr.__reserved_2); in CompareEventDesc()
|
| D | perf_event_record_test.cpp | 415 perf_event_attr attr {}; variable 416 attr.sample_type = UINT64_MAX; 422 PerfRecordSample record((uint8_t *)&data, attr); 435 perf_event_attr attr {}; variable 436 attr.sample_type = UINT64_MAX; 442 PerfRecordSample record((uint8_t *)&data, attr); 468 perf_event_attr attr {}; variable 469 attr.sample_type = UINT64_MAX; 475 PerfRecordSample record((uint8_t *)&data, attr); 494 perf_event_attr attr {}; variable [all …]
|
| D | virtual_runtime_test.cpp | 360 perf_event_attr attr; variable 361 if (memset_s(&attr, sizeof(perf_event_attr), 0, sizeof(perf_event_attr)) != EOK) { 365 attr.sample_type = TEST_RECORD_SAMPLE_TYPE; 366 attr.sample_regs_user = TEST_DWARF_RECORD_REGS_USER; 367 PerfRecordSample sample(data.data(), attr);
|
| /developtools/ace_js2bundle/ace-loader/plugin/templater/ |
| D | component_validator.js | 111 for (const attr of Object.keys(attrTagSet)) { 112 if (attrTagSet[attr].checkFunc) { 113 checkFuncSet[attr] = attrTagSet[attr].checkFunc 116 if (attrTagSet[attr].def) { 117 attrDefaultSet[attr] = attrTagSet[attr].def 120 if (attrTagSet[attr].required) { 121 attrRequireArr.push(attr) 124 if (attrTagSet[attr].enum && attrTagSet[attr].enum.length > 0) { 125 attrEnumSet[attr] = attrTagSet[attr].enum 126 attrDefaultSet[attr] = attrTagSet[attr].enum[0] [all …]
|
| D | index.js | 156 attributes.forEach((attr, index) => { 157 const attrName = attr.name 158 const attrValue = attr.value
|
| /developtools/profiler/device/plugins/native_hook/src/ |
| D | runtime_stack_range.cpp | 46 pthread_attr_t attr; in GetThreadRuntimeStackRange() local 47 if (pthread_getattr_np(tid, &attr) == 0) { in GetThreadRuntimeStackRange() 50 …if (pthread_attr_getstack(&attr, reinterpret_cast<void**>(const_cast<char**>(start)), &stackSize) … in GetThreadRuntimeStackRange() 53 pthread_attr_destroy(&attr); in GetThreadRuntimeStackRange()
|
| /developtools/hiperf/include/ |
| D | perf_events.h | 490 const perf_event_attr *attr = nullptr; member 520 size_t GetCallChainPosInSampleRecord(const perf_event_attr &attr); 575 perf_event_attr attr = {}; member 616 bool IsEventAttrSupport(perf_event_attr &attr); 628 bool CreateMmap(const FdItem &item, const perf_event_attr &attr); 634 return &(eventGroupItem_.at(0).eventItems.at(0).attr); in GetDefaultAttr() 637 OHOS::UniqueFd Open(perf_event_attr &attr, pid_t pid = 0, int cpu = -1, int group_fd = -1,
|
| D | subcommand_dump.h | 77 static void DumpPrintEventAttr(const perf_event_attr &attr, int indent = 0);
|
| D | perf_file_reader.h | 75 bool ReadIdsForAttr(const perf_file_attr &attr, std::vector<uint64_t> *ids);
|
| D | perf_event_record.h | 94 perf_event_attr attr; member 242 PerfRecordSample(uint8_t *p, const perf_event_attr &attr); 419 const perf_event_attr &attr);
|
| D | perf_file_format.h | 86 perf_event_attr attr; member
|
| /developtools/ace_js2bundle/ace-loader/src/lite/ |
| D | lite-transform-template.js | 59 if (Object.keys(node.attr).length !== 0) { 60 dataContent += `'${ATTRBUTES}' : ${transformProps(node.attr)},`; 185 if (node.attr && node.attr.tid && parameter2 !== '') { 186 node['key'] = `${parameter2}.${node.attr['tid']}`; 187 delete node.attr.tid;
|
| /developtools/smartperf_host/trace_streamer/src/parser/hiperf_parser/ |
| D | perf_data_parser.cpp | 150 …o& config = report_->configs_.emplace_back(fileAttr.name, fileAttr.attr.type, fileAttr.attr.config, in LoadEventDesc() 220 useClockId_ = attrIds_[0].attr.use_clockid; in UpdateClockType() 221 clockId_ = attrIds_[0].attr.clockid; in UpdateClockType()
|
| /developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/ |
| D | perf_data_parser.cpp | 147 …o& config = report_->configs_.emplace_back(fileAttr.name, fileAttr.attr.type, fileAttr.attr.config, in LoadEventDesc() 217 useClockId_ = attrIds_[0].attr.use_clockid; in UpdateClockType() 218 clockId_ = attrIds_[0].attr.clockid; in UpdateClockType()
|
| /developtools/profiler/device/plugins/native_daemon/include/ |
| D | perf_event_record.h | 99 perf_event_attr attr; member
|
| /developtools/profiler/host/smartperf/trace_streamer/prebuilts/patch_perf_event/ |
| D | perf_event.h.patch | 28 - * attr.config layout for type PERF_TYPE_HARDWARE and PERF_TYPE_HW_CACHE 44 * attr.event_id parameter of the sys_perf_event_open() 170 +#define perf_flags(attr) (*(&(attr)->read_format + 1))
|
| /developtools/smartperf_host/trace_streamer/prebuilts/patch_perf_event/ |
| D | perf_event.h.patch | 28 - * attr.config layout for type PERF_TYPE_HARDWARE and PERF_TYPE_HW_CACHE 44 * attr.event_id parameter of the sys_perf_event_open() 170 +#define perf_flags(attr) (*(&(attr)->read_format + 1))
|