/developtools/hiperf/src/ |
D | subcommand_dump.cpp | 321 void SubCommandDump::DumpPrintEventAttr(const perf_event_attr &attr, int indent) in DumpPrintEventAttr() argument 325 PRINT_INDENT(indent + 1, "type %u, size %u, config %llu\n", attr.type, attr.size, attr.config); in DumpPrintEventAttr() 327 if (attr.freq != 0) { in DumpPrintEventAttr() 328 PRINT_INDENT(indent + 1, "sample_freq %llu\n", attr.sample_freq); in DumpPrintEventAttr() 330 PRINT_INDENT(indent + 1, "sample_period %llu\n", attr.sample_period); in DumpPrintEventAttr() 333 PRINT_INDENT(indent + 1, "sample_type (0x%llx) \n", attr.sample_type); in DumpPrintEventAttr() 334 DumpSampleType(attr.sample_type, indent); in DumpPrintEventAttr() 336 PRINT_INDENT(indent + 1, "read_format (0x%llx) \n", attr.read_format); in DumpPrintEventAttr() 338 PRINT_INDENT(indent + 1, "disabled %u, inherit %u, pinned %u, exclusive %u\n", attr.disabled, in DumpPrintEventAttr() 339 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 groupFd, in Open() argument 48 OHOS::UniqueFd fd = UniqueFd(syscall(__NR_perf_event_open, &attr, pid, cpu, groupFd, 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 attrSize = 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[attrSize])); 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() 206 if (!Read(ids->data(), attr.ids.size)) { in ReadIdsForAttr() [all …]
|
D | perf_event_record.cpp | 33 const perf_event_attr &attr) in GetPerfEventRecord() argument 41 return std::make_unique<PerfRecordSample>(data, attr); in GetPerfEventRecord() 77 const perf_event_attr &attr) in GetPerfSampleFromCache() argument 85 … return std::unique_ptr<PerfEventRecord>(new (g_sampleMemCache) PerfRecordSample(data, attr)); in GetPerfSampleFromCache() 89 … return std::unique_ptr<PerfEventRecord>(new (g_sampleMemCache) PerfRecordSample(data, attr)); in GetPerfSampleFromCache() 92 return GetPerfEventRecord(type, p, attr); in GetPerfSampleFromCache() 96 const perf_event_attr &attr) in GetPerfSampleFromCacheMain() argument 104 … return std::unique_ptr<PerfEventRecord>(new (g_sampleMemCacheMain) PerfRecordSample(data, attr)); in GetPerfSampleFromCacheMain() 108 … return std::unique_ptr<PerfEventRecord>(new (g_sampleMemCacheMain) PerfRecordSample(data, attr)); in GetPerfSampleFromCacheMain() 111 return GetPerfEventRecord(type, p, attr); in GetPerfSampleFromCacheMain() [all …]
|
D | subcommand_report.cpp | 389 GetReport().configs_.emplace_back(fileAttr.name, fileAttr.attr.type, in LoadEventDesc() 390 fileAttr.attr.config, cpuOffMode_ ? false : true); in LoadEventDesc() 408 static_cast<perf_type_id>(fileAttr.attr.type), fileAttr.attr.config); in LoadAttrSection() 414 auto &config = GetReport().configs_.emplace_back(fileAttr.name, fileAttr.attr.type, in LoadAttrSection() 415 fileAttr.attr.config); in LoadAttrSection()
|
D | perf_file_writer.cpp | 287 fileAttr.attr = attrId.attr; in WriteAttrAndId() 306 defaultEventAttr_ = attrIds[0].attr; in WriteAttrAndId()
|
D | perf_file_format.cpp | 501 if (!Read(reinterpret_cast<char*>(&(eventDesc.attr)), sizeof(perf_event_attr))) { in PerfFileSectionEventDesc() 507 } else if (!Read(reinterpret_cast<char*>(&(eventDesc.attr)), attrSize)) { in PerfFileSectionEventDesc() 546 if (!Write(reinterpret_cast<char*>(&(eventDesc.attr)), sizeof(perf_event_attr))) { in GetBinary()
|
/developtools/smartperf_host/ide/test/base-ui/untils/ |
D | ExcelFormater.test.ts | 27 { getAttribute: (attr: string) => (attr === 'data-index' ? 'name' : 'Name') }, 28 { getAttribute: (attr: string) => (attr === 'data-index' ? 'age' : 'Age') }, 38 { getAttribute: (attr: string) => (attr === 'data-index' ? 'parent' : 'Parent') }, 60 { getAttribute: (attr: string) => (attr === 'data-index' ? 'name' : 'Name'), title: 'Name' }, 61 { getAttribute: (attr: string) => (attr === 'data-index' ? 'age' : 'Age'), title: 'Age' },
|
/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 | 370 perf_event_attr attr; variable 371 if (memset_s(&attr, sizeof(perf_event_attr), 0, sizeof(perf_event_attr)) != EOK) { 375 attr.sample_type = TEST_RECORD_SAMPLE_TYPE; 376 attr.sample_regs_user = TEST_DWARF_RECORD_REGS_USER; 377 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/hiperf/include/ |
D | perf_events.h | 490 const perf_event_attr *attr = nullptr; member 522 size_t GetCallChainPosInSampleRecord(const perf_event_attr &attr); 577 perf_event_attr attr = {}; member 618 bool IsEventAttrSupport(perf_event_attr &attr); 630 bool CreateMmap(const FdItem &item, const perf_event_attr &attr); 636 return &(eventGroupItem_.at(0).eventItems.at(0).attr); in GetDefaultAttr() 639 OHOS::UniqueFd Open(perf_event_attr &attr, pid_t pid = 0, int cpu = -1, int groupFd = -1,
|
D | perf_event_record.h | 98 perf_event_attr attr; member 252 PerfRecordSample(uint8_t *p, const perf_event_attr &attr); 435 const perf_event_attr &attr); 437 const perf_event_attr &attr); 439 const perf_event_attr &attr);
|
D | subcommand_dump.h | 76 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_file_format.h | 89 perf_event_attr attr; member
|
/developtools/smartperf_host/trace_streamer/src/parser/hiperf_parser/ |
D | perf_data_parser.cpp | 221 …perf_file_attr *attr = reinterpret_cast<perf_file_attr *>(buffer.get() + perfHeader_.attrSize * in… in SplitPerfParsingAttr() local 222 vecAttr.push_back(*attr); in SplitPerfParsingAttr() 225 useClockId_ = attr->attr.use_clockid; in SplitPerfParsingAttr() 226 clockId_ = attr->attr.clockid; in SplitPerfParsingAttr() 231 sampleType_ = vecAttr[0].attr.sample_type; in SplitPerfParsingAttr() 508 …o &config = report_->configs_.emplace_back(fileAttr.name, fileAttr.attr.type, fileAttr.attr.config, in LoadEventDesc() 581 useClockId_ = attrIds_[0].attr.use_clockid; in UpdateClockType() 582 clockId_ = attrIds_[0].attr.clockid; in UpdateClockType()
|
/developtools/profiler/device/plugins/native_hook/src/ |
D | runtime_stack_range.cpp | 52 pthread_attr_t attr; in GetThreadRuntimeStackRange() local 53 if (pthread_getattr_np(tid, &attr) == 0) { in GetThreadRuntimeStackRange() 55 …if (pthread_attr_getstack(&attr, reinterpret_cast<void**>(const_cast<char**>(start)), &stackSize) … in GetThreadRuntimeStackRange() 58 pthread_attr_destroy(&attr); in GetThreadRuntimeStackRange()
|
/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/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/ |
D | VerifyCodeSignature.java | 76 … Attribute attr = attrTable.get(new ASN1ObjectIdentifier(BcSignedDataGenerator.SIGNER_OID)); in checkOwnerID() local 78 if (attr == null) { in checkOwnerID() 92 String resultOwnerID = attr.getAttrValues().getObjectAt(0).toString(); in checkOwnerID()
|
/developtools/profiler/device/plugins/native_daemon/include/ |
D | perf_event_record.h | 100 perf_event_attr attr; member
|
/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))
|