/developtools/hiperf/test/unittest/common/native/ |
H A D | hashlist_test.cpp | 62 HWTEST_F(HashListTest, count, TestSize.Level1) in HWTEST_F() 66 EXPECT_EQ(hashList.count(temp), 0u); in HWTEST_F() 69 EXPECT_EQ(hashList.count(curSize), 1u); in HWTEST_F() 79 for (std::size_t count = 0; count < size_; ++count) { in HWTEST_F() 81 EXPECT_EQ(*first, count); in HWTEST_F() 92 for (std::size_t count = 0; count < size_; ++count) { in HWTEST_F() [all...] |
H A D | subcommand_report_test.cpp | 48 "Heating", "count", "comm", "pid", "tid", "dso", "func", 198 EXPECT_LE(costMs.count(), DEFAULT_RUN_TIMEOUT_MS); in HWTEST_F() 223 EXPECT_LE(costMs.count(), DEFAULT_RUN_TIMEOUT_MS); in HWTEST_F() 244 EXPECT_LE(costMs.count(), DEFAULT_RUN_TIMEOUT_MS); in HWTEST_F() 265 EXPECT_LE(costMs.count(), DEFAULT_RUN_TIMEOUT_MS); in HWTEST_F() 289 EXPECT_LE(costMs.count(), DEFAULT_RUN_TIMEOUT_MS); in HWTEST_F() 314 EXPECT_LE(costMs.count(), DEFAULT_RUN_TIMEOUT_MS); in HWTEST_F() 341 EXPECT_LE(costMs.count(), DEFAULT_RUN_TIMEOUT_MS); in HWTEST_F() 366 EXPECT_LE(costMs.count(), DEFAULT_RUN_TIMEOUT_MS); in HWTEST_F() 391 EXPECT_LE(costMs.count(), DEFAULT_RUN_TIMEOUT_M in HWTEST_F() [all...] |
H A D | subcommand_stat_test.cpp | 158 printf("reset the count because found: '%s'\n", timeReportStr.c_str()); in EffectiveCounter() 159 // reset the count in EffectiveCounter() 170 uint64_t count = std::stoull(tokens[0]); in EffectiveCounter() local 172 printf("[%u] found %s:%s count %" PRIu64 "\n", effectiveCounter, tokens[1].c_str(), in EffectiveCounter() 173 tokens[0].c_str(), count); in EffectiveCounter() 178 // no more count than max in EffectiveCounter() 195 uint64_t count = std::stoull(tokens[0]); in CounterValue() local 196 res += count; in CounterValue() 244 EXPECT_LE(costMs.count(), defaultRunTimeoutMs); in HWTEST_F() 270 EXPECT_LE(costMs.count(), defaultRunTimeoutM in HWTEST_F() [all...] |
H A D | cpu_usage_test.cpp | 103 int count = 0; in GetItems() local 106 count++; in GetItems() 107 if (count == item - 1) { in GetItems() 206 int count = 0; in GetAverageCpuUsage() local 209 ++count; in GetAverageCpuUsage() 212 if ((uint64_t)duration_cast<milliseconds>(thisTime - startTime).count() in GetAverageCpuUsage() 217 cpuUsage = HUNDRED * cpuUsage / count; in GetAverageCpuUsage()
|
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
H A D | hashlist_test.cpp | 61 HWTEST_F(HashListTest, count, TestSize.Level1)
in HWTEST_F() 65 EXPECT_EQ(hashList.count(temp), 0u);
in HWTEST_F() 68 EXPECT_EQ(hashList.count(curSize), 1u);
in HWTEST_F() 78 for (std::size_t count = 0; count < size_; ++count) {
in HWTEST_F() 80 EXPECT_EQ(*first, count);
in HWTEST_F() 91 for (std::size_t count = 0; count < size_; ++count) {
in HWTEST_F() [all...] |
H A D | register_test.cpp | 56 EXPECT_EQ(regMasker.count(), PERF_REG_X86_32_MAX); in HWTEST_F() 60 EXPECT_EQ(regMasker.count(), PERF_REG_X86_64_MAX - 4u); in HWTEST_F() 63 EXPECT_EQ(regMasker.count(), PERF_REG_ARM_MAX); in HWTEST_F() 66 EXPECT_EQ(regMasker.count(), PERF_REG_ARM64_MAX); in HWTEST_F()
|
/developtools/packing_tool/adapter/ohos/ |
H A D | ConvertHapToBin.java | 102 int count = 0; in main() 104 if (HAP_PATH.equals(para) && count < args.length - 1) { in main() 105 hapPath = args[count + 1]; in main() 108 if (PROJECT_PATH.equals(para) && count < args.length - 1) { in main() 109 projectPath = args[count + 1]; in main() 112 if (BIN_PATH.equals(para) && count < args.length - 1) { in main() 113 binPath = args[count + 1]; in main() 115 count++; in main()
|
H A D | CollectBinInfo.java | 164 int count = 0; in main() 167 if (BIN_PATH.equals(para) && count < args.length - 1) { in main() 168 binPath = args[count + 1]; in main() 170 if (VERSION_CODE.equals(para) && count < args.length) { in main() 173 count++; in main()
|
/developtools/profiler/device/base/test/unittest/ |
H A D | schedule_task_manager_test.cpp | 39 std::atomic<int> count = 0; in HWTEST_F() local 43 EXPECT_NE(scheduleTaskManager.ScheduleTask([&]() { count++; }, initalDelay, true), -1); in HWTEST_F() 46 EXPECT_EQ(count.load(), 1); in HWTEST_F() 56 std::atomic<int> count = 0; in HWTEST_F() local 65 count++; in HWTEST_F() 79 EXPECT_LE(abs(count.load() - expected), thresh); in HWTEST_F() 89 std::atomic<int> count = 0; in HWTEST_F() local 99 count++; in HWTEST_F() 114 EXPECT_LE(abs(count.load() - expected), thresh); in HWTEST_F()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/utils/ |
H A D | InputStreamUtils.java | 55 int count = 0; in copy() 58 count += readSize; in copy() 60 if (count != inputStreamSize) { in copy() 61 throw new IOException("read size err. readSizeCount: " + count + ", inputStreamSize: " + inputStreamSize); in copy() 63 return count; in copy()
|
/developtools/profiler/device/plugins/ftrace_plugin/src/ |
H A D | kernel_symbols_parser.cpp | 79 int count = 0; in Parse() local 96 if (count % MAX_BUFFER_SIZE == 0) { in Parse() 99 kernelSymbols_[count] = info; in Parse() 100 count++; in Parse() 104 kernelSymbols_.resize(count); in Parse()
|
H A D | file_utils.cpp | 34 size_t count = 0; in ReadFile() local 36 if (content.size() - count < DEFAULT_READ_SIZE) { in ReadFile() 39 ssize_t nBytes = TEMP_FAILURE_RETRY(read(fd, &content[count], content.size() - count)); in ReadFile() 46 count += nBytes; in ReadFile() 48 content.resize(count); in ReadFile()
|
H A D | ftrace_parser.cpp | 45 constexpr unsigned RB_MISSED_STORED = (1 << 30); // Missed count stored at end 416 int count = 0; in ParsePerCpuStatus() local 427 count++; in ParsePerCpuStatus() 430 count++; in ParsePerCpuStatus() 433 count++; in ParsePerCpuStatus() 436 count++; in ParsePerCpuStatus() 439 count++; in ParsePerCpuStatus() 442 count++; in ParsePerCpuStatus() 445 count++; in ParsePerCpuStatus() 448 count in ParsePerCpuStatus() [all...] |
/developtools/profiler/hiebpf/include/ |
H A D | fstrace_types.h | 32 size_t count; member 38 size_t count; member 44 size_t count; member 51 size_t count; member
|
H A D | fstrace_progs.h | 55 int BPF_KPROBE(ksys_read_entry, unsigned int fd, char __user* buf, size_t count) in BPF_KPROBE() argument 72 args->count = count; in BPF_KPROBE() 94 int BPF_KPROBE(ksys_write_entry, unsigned int fd, const char __user* buf, size_t count) in BPF_KPROBE() argument 111 args->count = count; in BPF_KPROBE() 133 int BPF_KPROBE(ksys_pread64_entry, unsigned int fd, char __user* buf, size_t count, loff_t pos) in BPF_KPROBE() argument 150 args->count = count; in BPF_KPROBE() 173 int BPF_KPROBE(ksys_pwrite64_entry, unsigned int fd, const char __user* buf, size_t count, loff_ argument [all...] |
/developtools/profiler/hiebpf/scripts/ |
H A D | fstrace_code_generator.py | 184 count = 0 187 if count >= max_nr_args: 191 count += 1 323 count = 0 326 if count >= max_nr_args: 330 count += 1 357 count = 0 360 if count >= max_nr_args: 368 count += 1 487 count [all...] |
/developtools/profiler/hiebpf/src/ |
H A D | command_helper.cpp | 31 for (int count = 1; count < (*argc); ++count) { in Start() 32 if ((*argv)[count] and strlen((*argv)[count]) != 0) { in Start() 36 std::cout << "CommandHelper WARN: argument " << (*argv)[count] in Start()
|
/developtools/profiler/device/plugins/ftrace_plugin/test/app/ |
H A D | busy_workers.cpp | 41 explicit Semaphore(int count = 0) : count_(count) {} in Semaphore() 92 void SetSwitchCount(int count) in SetSwitchCount() 94 swtichCount_ = count; in SetSwitchCount() 142 uint64_t count = 0; in Work() local 145 count++; in Work() 147 printf("[%ld] busy loop count = %" PRIu64 "!\n", GetTid(), count); in Work()
|
/developtools/hdc/hdc_rust/src/cffi/ |
H A D | usb_util.cpp | 36 int count = 0;
in GetDevPath() local 43 ++count;
in GetDevPath() 45 if (count > 1) {
in GetDevPath()
|
/developtools/profiler/device/plugins/diskio_plugin/src/ |
H A D | io_stats.cpp | 293 uint32_t count = 0; in ParseLineFields() local 299 CHECK_TRUE(RemoveSpaces(&pTmp), count, "%s: RemoveSpaces failed!", __func__); in ParseLineFields() local 309 CHECK_TRUE(FindFirstNum(&pTmp), count, "%s: FindFirstNum failed", __func__); in ParseLineFields() local 311 CHECK_TRUE(num >= 0, count, "%s:strtoull failed", __func__); in ParseLineFields() 314 count++; in ParseLineFields() 316 return count; in ParseLineFields() 322 uint32_t count = 0; in ParseLineFields() local 327 CHECK_TRUE(FindFirstNum(&pTmp), count, "%s: FindFirstNum failed", __func__); in ParseLineFields() local 329 CHECK_TRUE(num >= 0, count, "%s:strtoull failed", __func__); in ParseLineFields() 332 count in ParseLineFields() [all...] |
/developtools/hapsigner/hapsigntool_cpp/cmd/src/ |
H A D | cmd_util.cpp | 46 if (options->count(Options::VALIDITY)) { in UpdateParamForVariantCertInt() 78 if (options->count(Options::KEY_SIZE)) { in UpdateParamForVariantInt() 90 if (options->count(Options::BASIC_CONSTRAINTS_PATH_LEN)) { in UpdateParamForVariantInt() 113 if (options->count(Options::KEY_USAGE_CRITICAL)) { in UpdateParamForVariantBoolKeyUsage() 122 if (options->count(Options::EXT_KEY_USAGE_CRITICAL)) { in UpdateParamForVariantBoolKeyUsage() 137 if (options->count(Options::PROFILE_SIGNED)) { in UpdateParamForVariantBoolProfileSigned() 158 if (options->count(key)) { in UpdateParamForCheckOutFile() 199 if (options->count(key)) { in UpdateParamForCheckInFile() 229 if (options->count(Options::SIGN_ALG)) { in UpdateParamForCheckSignAlg() 245 if (options->count(Option in UpdateParamForInform() [all...] |
/developtools/profiler/device/plugins/diskio_plugin/include/ |
H A D | io_stats.h | 160 uint32_t count = 0; in PutCpuStatsData() local 166 count++; in PutCpuStatsData() 169 return count; in PutCpuStatsData() 194 uint32_t count = 0; in PutIoStatsData() local 200 count++; in PutIoStatsData() 203 return count; in PutIoStatsData()
|
/developtools/profiler/device/services/profiler_service/src/ |
H A D | profiler_data_repeater.cpp | 103 int count = 0; in TakePluginData() local 108 count++; in TakePluginData() 113 return count; in TakePluginData()
|
/developtools/hiperf/demo/cpp/ |
H A D | hiperf_example_cmd.cpp | 64 if (anything.count() > 0) { in LoopDummy() 146 int count = 0; in LoopFunction() local 176 *p = count++; in LoopFunction() 338 for (int count = 0; count < option.numThreads; ++count) { in RunSampleThread() 339 threads[count] = std::thread(ExampleThread, option); in RunSampleThread() 341 for (int count = 0; count < option.numThreads; ++count) { in RunSampleThread() [all...] |
/developtools/profiler/device/base/include/ |
H A D | logging.h | 86 int count = fprintf(stderr, "%04x %s %7d %7ld %5s %s ", domain, GetTimeString().c_str(), getpid(), getsystid(), in HiLogPrintArgs() local 88 if (count < 0) { in HiLogPrintArgs() 91 count = count + vfprintf(stderr, fmt, vargs) + fprintf(stderr, "\n"); in HiLogPrintArgs() 93 return count; in HiLogPrintArgs() 101 int count = HiLogPrintArgs(prio, domain, tag, fmt, vargs); in HiLogPrint() local 103 return count; in HiLogPrint()
|