Home
last modified time | relevance | path

Searched refs:attr (Results 1 - 25 of 26) sorted by relevance

12

/developtools/hiperf/src/
H A Dsubcommand_dump.cpp237 HLOGW("attr size doesn't match"); in PrintHeaderInfo()
239 // attr in PrintHeaderInfo()
324 void SubCommandDump::DumpPrintEventAttr(const perf_event_attr &attr, int indent) in DumpPrintEventAttr() argument
328 PRINT_INDENT(indent + 1, "type %u, size %u, config %llu\n", attr.type, attr.size, attr.config); in DumpPrintEventAttr()
330 if (attr.freq != 0) { in DumpPrintEventAttr()
331 PRINT_INDENT(indent + 1, "sample_freq %llu\n", attr.sample_freq); in DumpPrintEventAttr()
333 PRINT_INDENT(indent + 1, "sample_period %llu\n", attr.sample_period); in DumpPrintEventAttr()
336 PRINT_INDENT(indent + 1, "sample_type (0x%llx) \n", attr in DumpPrintEventAttr()
369 const AttrWithId &attr = attrIds_[i]; DumpAttrPortion() local
[all...]
H A Dperf_events.cpp47 OHOS::UniqueFd PerfEvents::Open(perf_event_attr &attr, pid_t pid, int cpu, int groupFd, in Open() argument
50 OHOS::UniqueFd fd = UniqueFd(syscall(__NR_perf_event_open, &attr, pid, cpu, groupFd, flags)); in Open()
54 SubCommandDump::DumpPrintEventAttr(attr, std::numeric_limits<int>::min()); in Open()
192 unique_ptr<perf_event_attr> attr = PerfEvents::CreateDefaultAttr(type, config); in IsEventSupport() local
193 CHECK_TRUE(attr == nullptr, false, 0, ""); in IsEventSupport()
194 UniqueFd fd = Open(*attr.get()); in IsEventSupport()
201 bool PerfEvents::IsEventAttrSupport(perf_event_attr &attr) in IsEventAttrSupport() argument
203 UniqueFd fd = Open(attr); in IsEventAttrSupport()
214 unique_ptr<perf_event_attr> attr = in SetBranchSampleType() local
216 CHECK_TRUE(attr in SetBranchSampleType()
521 unique_ptr<perf_event_attr> attr = make_unique<perf_event_attr>(); CreateDefaultAttr() local
1209 CreateSpeMmap(const FdItem &item, const perf_event_attr &attr) CreateSpeMmap() argument
1242 CreateMmap(const FdItem &item, const perf_event_attr &attr) CreateMmap() argument
1453 GetCallChainPosInSampleRecord(const perf_event_attr &attr) GetCallChainPosInSampleRecord() argument
1607 const perf_event_attr *attr = GetDefaultAttr(); ReadRecordFromBuf() local
[all...]
H A Dperf_file_reader.cpp139 HLOGW("attr size %" PRId64 " doesn't match expected size %zu", header_.attrSize, in ReadAttrSection()
144 CHECK_TRUE(attrCount == 0, false, 1, "no attr in file"); in ReadAttrSection()
154 perf_file_attr attr {}; in ReadAttrSection()
155 size_t attrSize = header_.attrSize - sizeof(attr.ids); in ReadAttrSection()
164 attr.attr = *(reinterpret_cast<perf_event_attr *>(&buf[0])); in ReadAttrSection()
165 attr.ids = *(reinterpret_cast<perf_file_section *>(&buf[attrSize])); in ReadAttrSection()
166 vecAttr_.push_back(attr); in ReadAttrSection()
169 // read ids for attr in ReadAttrSection()
175 // map ids to attr inde in ReadAttrSection()
184 ReadIdsForAttr(const perf_file_attr &attr, std::vector<uint64_t> *ids) ReadIdsForAttr() argument
247 const perf_event_attr *attr = GetDefaultAttr(); ReadRecord() local
[all...]
H A Dsubcommand_report.cpp388 GetReport().configs_.emplace_back(fileAttr.name, fileAttr.attr.type, in LoadEventDesc()
389 fileAttr.attr.config, cpuOffMode_ ? false : true); in LoadEventDesc()
407 static_cast<perf_type_id>(fileAttr.attr.type), fileAttr.attr.config); in LoadAttrSection()
413 auto &config = GetReport().configs_.emplace_back(fileAttr.name, fileAttr.attr.type, in LoadAttrSection()
414 fileAttr.attr.config); in LoadAttrSection()
H A Dperf_event_record.cpp34 const perf_event_attr &attr) in GetPerfEventRecord()
42 return std::make_unique<PerfRecordSample>(data, attr); in GetPerfEventRecord()
80 const perf_event_attr &attr) in GetPerfSampleFromCache()
88 return std::unique_ptr<PerfEventRecord>(new (g_sampleMemCache) PerfRecordSample(data, attr)); in GetPerfSampleFromCache()
92 return std::unique_ptr<PerfEventRecord>(new (g_sampleMemCache) PerfRecordSample(data, attr)); in GetPerfSampleFromCache()
95 return GetPerfEventRecord(type, p, attr); in GetPerfSampleFromCache()
99 const perf_event_attr &attr) in GetPerfSampleFromCacheMain()
107 return std::unique_ptr<PerfEventRecord>(new (g_sampleMemCacheMain) PerfRecordSample(data, attr)); in GetPerfSampleFromCacheMain()
111 return std::unique_ptr<PerfEventRecord>(new (g_sampleMemCacheMain) PerfRecordSample(data, attr)); in GetPerfSampleFromCacheMain()
114 return GetPerfEventRecord(type, p, attr); in GetPerfSampleFromCacheMain()
33 GetPerfEventRecord(const int type, uint8_t *p, const perf_event_attr &attr) GetPerfEventRecord() argument
79 GetPerfSampleFromCache(const int type, uint8_t *p, const perf_event_attr &attr) GetPerfSampleFromCache() argument
98 GetPerfSampleFromCacheMain(const int type, uint8_t *p, const perf_event_attr &attr) GetPerfSampleFromCacheMain() argument
391 PerfRecordSample(uint8_t *p, const perf_event_attr &attr) PerfRecordSample() argument
[all...]
H A Dperf_file_writer.cpp271 // Write attr section. in WriteAttrAndId()
276 fileAttr.attr = attrId.attr; in WriteAttrAndId()
295 defaultEventAttr_ = attrIds[0].attr; in WriteAttrAndId()
309 // can only be called after all attr and records has been written.
H A Dperf_file_format.cpp474 if (!Read(reinterpret_cast<char*>(&(eventDesc.attr)), sizeof(perf_event_attr))) { in sizeof()
478 HLOGW("skip %zu byte for diff attr size", attrSize - sizeof(perf_event_attr)); in sizeof()
480 } else if (!Read(reinterpret_cast<char*>(&(eventDesc.attr)), attrSize)) { in sizeof()
509 CHECK_TRUE(!Write(reinterpret_cast<char*>(&(eventDesc.attr)), sizeof(perf_event_attr)), false, 0, ""); in GetBinary()
/developtools/hiperf/test/unittest/common/native/
H A Dperf_file_writer_test.cpp61 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; in HWTEST_F() local
80 attrId.attr = attr; in HWTEST_F()
115 perf_event_attr attr; in HWTEST_F() local
116 attrId.attr in HWTEST_F()
[all...]
H A Dperf_file_format_test.cpp205 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 in CompareEventDesc()
[all...]
H A Dperf_event_record_test.cpp415 perf_event_attr attr {}; in HWTEST_F()
416 attr.sample_type = UINT64_MAX; in HWTEST_F()
422 PerfRecordSample record((uint8_t *)&data, attr); in HWTEST_F()
435 perf_event_attr attr {}; in HWTEST_F()
436 attr.sample_type = UINT64_MAX; in HWTEST_F()
442 PerfRecordSample record((uint8_t *)&data, attr); in HWTEST_F()
468 perf_event_attr attr {}; in HWTEST_F()
469 attr.sample_type = UINT64_MAX; in HWTEST_F()
475 PerfRecordSample record((uint8_t *)&data, attr); in HWTEST_F()
494 perf_event_attr attr {}; in HWTEST_F()
[all...]
H A Dvirtual_runtime_test.cpp370 perf_event_attr attr; in HWTEST_F() local
371 (void)memset_s(&attr, sizeof(perf_event_attr), 0, sizeof(perf_event_attr)); in HWTEST_F()
372 attr.sample_type = TEST_RECORD_SAMPLE_TYPE; in HWTEST_F()
373 attr.sample_regs_user = TEST_DWARF_RECORD_REGS_USER; in HWTEST_F()
374 PerfRecordSample sample(data.data(), attr); in HWTEST_F()
/developtools/hapsigner/hapsigntool_cpp/codesigning/sign/src/
H A Dbc_signeddata_generator.cpp139 PKCS7Attr attr; in AddOwnerID() local
150 attr.nid = nid; in AddOwnerID()
151 attr.atrtype = V_ASN1_UTF8STRING; in AddOwnerID()
152 attr.value = ownerIDAsn1; in AddOwnerID()
153 attrs.push_back(attr); in AddOwnerID()
/developtools/profiler/device/plugins/native_hook/src/
H A Druntime_stack_range.cpp52 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) == 0) { in GetThreadRuntimeStackRange()
58 pthread_attr_destroy(&attr); in GetThreadRuntimeStackRange()
/developtools/smartperf_host/trace_streamer/src/parser/hiperf_parser/
H A Dperf_data_parser.cpp188 TS_LOGE("offset of attr is wrong %" PRIu64 "", perfHeader_.attrs.offset); in SplitPerfWaitForAttr()
210 TS_LOGE("no attr in file"); in SplitPerfParsingAttr()
224 perf_file_attr *attr = reinterpret_cast<perf_file_attr *>(buffer.get() + perfHeader_.attrSize * index); in SplitPerfParsingAttr() local
225 vecAttr.push_back(*attr); in SplitPerfParsingAttr()
228 useClockId_ = attr->attr.use_clockid; in SplitPerfParsingAttr()
229 clockId_ = attr->attr.clockid; in SplitPerfParsingAttr()
234 sampleType_ = vecAttr[0].attr.sample_type; in SplitPerfParsingAttr()
566 auto &config = report_->configs_.emplace_back(fileAttr.name, fileAttr.attr in LoadEventDesc()
[all...]
/developtools/hiperf/include/
H A Dperf_events.h518 const perf_event_attr *attr = nullptr; member
558 size_t GetCallChainPosInSampleRecord(const perf_event_attr &attr);
618 perf_event_attr attr = {}; member
661 bool IsEventAttrSupport(perf_event_attr &attr);
673 bool CreateMmap(const FdItem &item, const perf_event_attr &attr);
674 bool CreateSpeMmap(const FdItem &item, const perf_event_attr &attr);
680 return &(eventGroupItem_.at(0).eventItems.at(0).attr); in GetDefaultAttr()
683 OHOS::UniqueFd Open(perf_event_attr &attr, pid_t pid = 0, int cpu = -1, int groupFd = -1,
H A Dperf_event_record.h100 perf_event_attr attr; member
269 PerfRecordSample(uint8_t *p, const perf_event_attr &attr);
453 const perf_event_attr &attr);
455 const perf_event_attr &attr);
457 const perf_event_attr &attr);
H A Dsubcommand_dump.h76 static void DumpPrintEventAttr(const perf_event_attr &attr, int indent = 0);
H A Dperf_file_reader.h75 bool ReadIdsForAttr(const perf_file_attr &attr, std::vector<uint64_t> *ids);
H A Dperf_file_format.h89 perf_event_attr attr; member
/developtools/ace_js2bundle/ace-loader/src/lite/
H A Dlite-transform-template.js42 ATTR: 'attr',
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_cpp/utils/src/
H A Dkey_store_helper.cpp687 X509_ATTRIBUTE* attr; in GetAttrNid() local
692 attr = EVP_PKEY_get_attr(pkey, idx); in GetAttrNid()
694 if (!X509at_add1_attr(&attrlib, attr)) { in GetAttrNid()
703 const ASN1_TYPE* attr; in ParsePkcs12Safebag() local
706 if ((attr = PKCS12_SAFEBAG_get0_attr(bag, NID_friendlyName))) { in ParsePkcs12Safebag()
707 name = attr->value.bmpstring; in ParsePkcs12Safebag()
710 if ((attr = PKCS12_SAFEBAG_get0_attr(bag, NID_localKeyID))) { in ParsePkcs12Safebag()
711 kid = attr->value.octet_string; in ParsePkcs12Safebag()
/developtools/ace_js2bundle/ace-loader/plugin/templater/
H A Dindex.js156 attributes.forEach((attr, index) => {
157 const attrName = attr.name
158 const attrValue = attr.value
/developtools/profiler/device/plugins/native_daemon/include/
H A Dperf_event_record.h100 perf_event_attr attr; member
/developtools/hapsigner/hapsigntool_cpp/profile/src/
H A Dpkcs7_data.cpp38 for (PKCS7Attr attr : attrs) { in PKCS7AddAttribute()
39 if (PKCS7_add_signed_attribute(signerInfo, attr.nid, attr.atrtype, attr.value) != 1) { in PKCS7AddAttribute()
40 if (attr.atrtype == V_ASN1_UTF8STRING) in PKCS7AddAttribute()
41 ASN1_STRING_free(reinterpret_cast<ASN1_STRING*>(attr.value)); in PKCS7AddAttribute()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/
H A DVerifyCodeSignature.java99 Attribute attr = attrTable.get(new ASN1ObjectIdentifier(BcSignedDataGenerator.SIGNER_OID)); in checkSignatureOwnerID()
101 if (attr == null) { in checkSignatureOwnerID()
115 String resultOwnerID = attr.getAttrValues().getObjectAt(0).toString(); in checkSignatureOwnerID()

Completed in 18 milliseconds

12