/developtools/hiperf/test/unittest/common/native/ |
H A D | perf_file_reader_test.cpp | 47 const std::string filename = "perf.data"; in HWTEST_F() local 49 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); in HWTEST_F() 50 std::unique_ptr<PerfFileReader> ret = hiperfFileReader->Instance(filename); in HWTEST_F() 60 const std::string filename = "xxx"; in HWTEST_F() local 62 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); in HWTEST_F() 63 std::unique_ptr<PerfFileReader> ret = hiperfFileReader->Instance(filename); in HWTEST_F() 73 const std::string filename = "perf.data"; in HWTEST_F() local 75 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); in HWTEST_F() 82 const std::string filename = "xxx"; in HWTEST_F() local 84 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, f in HWTEST_F() 91 const std::string filename = "perf.data"; HWTEST_F() local 108 const std::string filename = "perf.data"; HWTEST_F() local [all...] |
H A D | perf_file_writer_test.cpp | 73 std::string filename = "./TestFileWriter_Normal"; in HWTEST_F() local 75 ASSERT_TRUE(fileWriter.Open(filename)) << "current path no write permission?"; in HWTEST_F() 104 ASSERT_TRUE((access(filename.c_str(), F_OK) == 0)); in HWTEST_F() 109 std::string filename = "./TestFileWriter_Compress"; in HWTEST_F() local 111 ASSERT_TRUE(fileWriter.Open(filename, true)) << "current path no write permission?"; in HWTEST_F() 137 ASSERT_TRUE((access(filename.c_str(), F_OK) == 0)); in HWTEST_F() 138 filename += ".gz"; in HWTEST_F() 139 ASSERT_TRUE((access(filename.c_str(), F_OK) != 0)); in HWTEST_F() 144 std::string filename = "./TestFileWriter_NoWriteAttrAndId"; in HWTEST_F() local 146 ASSERT_TRUE(fileWriter.Open(filename)) << "curren in HWTEST_F() [all...] |
/developtools/hiperf/script/ |
H A D | recv_binary_cache.py | 86 filename = bin_file[bin_file.rfind('/') + 1:] 87 if file_dict.get(filename) is None: 88 file_dict[filename] = [bin_file] 90 file_dict[filename].append(bin_file) 93 for filename in files: 94 paths = file_dict.get(filename) 98 build_id = get_build_id(os.path.join(root, filename)) 106 os.path.join(root, filename), bin_file) 168 filename = device_path[device_path.rfind('/') + 1:] 172 os.path.join('/data/local/tmp/', filename), [all...] |
/developtools/packing_tool/packing_tool/frameworks/src/ |
H A D | zip_utils.cpp | 72 bool ZipUtils::IsFileExistsInZip(const std::string& zipFilePath, const std::string& filename) in IsFileExistsInZip() argument 101 if (fileInfo.external_fa != ZIP_FILE_ATTR_DIRECTORY && strFilePathInZip.length() >= filename.length()) { in IsFileExistsInZip() 103 if (strFilePathInZip.compare(filename) == 0) { in IsFileExistsInZip() 120 bool ZipUtils::IsFileNameExistsInZip(const std::string& zipFilePath, const std::string& filename) in IsFileNameExistsInZip() argument 149 if (fileInfo.external_fa != ZIP_FILE_ATTR_DIRECTORY && strFilePathInZip.length() >= filename.length()) { in IsFileNameExistsInZip() 150 if (strFilePathInZip.substr(strFilePathInZip.length() - filename.length()).compare(filename) == 0) { in IsFileNameExistsInZip() 167 bool ZipUtils::GetFileContentFromZip(const std::string& zipFilePath, const std::string& filename, in GetFileContentFromZip() argument 180 if (unzLocateFile(unzipFile, filename.c_str(), 0) != UNZ_OK) { in GetFileContentFromZip() 181 LOGE("Locate file failed! filename in GetFileContentFromZip() [all...] |
H A D | fast_app_packager.cpp | 318 std::string filename = path.filename().string(); in GetModuleJsonContentFromPath() local 319 if (filename == Constants::MODULE_JSON) { in GetModuleJsonContentFromPath() 321 } else if (Utils::EndsWith(filename, Constants::HSP_SUFFIX)) { in GetModuleJsonContentFromPath() 433 std::string filename = path.filename().string(); in GetPackageNameFromPath() local 434 if (Utils::EndsWith(filename, Constants::HSP_SUFFIX)) { in GetPackageNameFromPath() 435 // .hsp: return filename in GetPackageNameFromPath() 436 packageNameList.push_back(filename.substr(0, filename in GetPackageNameFromPath() 456 std::string filename = path.filename().string(); GetPackInfoContentFromPath() local [all...] |
H A D | unzip_wrapper.cpp | 67 char filename[MAX_ZIP_BUFFER_SIZE] = {0}; in ExtractFile() local 69 if (unzGetCurrentFileInfo64(unzFile_, &fileInfo, filename, MAX_ZIP_BUFFER_SIZE, NULL, 0, NULL, 0) != UNZ_OK) { in ExtractFile() 73 fs::path fsUnzipPath(filename); in ExtractFile() 75 fs::path fsFullFilePath = fsFilePath / filename; in ExtractFile() 87 LOGE("open current file in zip failed![filename=%s]", filename); in ExtractFile()
|
H A D | multiapp_packager.cpp | 180 if (!Utils::EndsWith(entry.path().filename(), Constants::HAP_SUFFIX) && in CopyHapAndHspFromApp() 181 !Utils::EndsWith(entry.path().filename(), Constants::HSP_SUFFIX)) { in CopyHapAndHspFromApp() 184 if (std::find(selectedHaps.begin(), selectedHaps.end(), entry.path().filename()) != selectedHaps.end()) { in CopyHapAndHspFromApp() 185 LOGE("CopyHapAndHspFromApp file duplicated, file is %s ", entry.path().filename().c_str()); in CopyHapAndHspFromApp() 191 filePath = fs::path(tempDir) / entry.path().filename(); in CopyHapAndHspFromApp() 192 selectedHaps.push_back(filePath.filename()); in CopyHapAndHspFromApp() 193 selectedHapsInApp.push_back(filePath.filename()); in CopyHapAndHspFromApp() 285 if (std::find(selectedHaps.begin(), selectedHaps.end(), hapPathFile.filename()) != selectedHaps.end()) { in DisposeHapAndHsp() 286 LOGE("file duplicated, file is %s", hapPathFile.filename().c_str()); in DisposeHapAndHsp() 289 selectedHaps.push_back(hapFile.filename()); in DisposeHapAndHsp() [all...] |
H A D | packager.cpp | 98 std::string name = fs::path(path).filename(); in IsPathValid() 143 std::string name = fileItem.path().filename(); in CompatibleProcess() 175 std::string name = fileItem.path().filename(); in CompatibleProcess() 213 if (!Utils::EndsWith(filePath.filename().string(), Constants::HAP_SUFFIX)) { in IsOutPathValid() 220 if (!Utils::EndsWith(filePath.filename().string(), Constants::HAR_SUFFIX)) { in IsOutPathValid() 227 if (!Utils::EndsWith(filePath.filename().string(), Constants::APP_SUFFIX)) { in IsOutPathValid() 234 if (!Utils::EndsWith(filePath.filename().string(), Constants::RES_SUFFIX)) { in IsOutPathValid() 241 if (!Utils::EndsWith(filePath.filename().string(), Constants::HSP_SUFFIX)) { in IsOutPathValid() 395 if (entry.path().filename() == Constants::PACK_INFO) { in CompressPackinfoIntoHap()
|
H A D | hap_packager.cpp | 128 fs::path(filePath).filename().string() != Constants::PROFILE_NAME) { in IsVerifyValidInHapCommonMode() 146 fs::path(filePath).filename().string() != Constants::PKG_CONTEXT_JSON) { in IsVerifyValidInHapCommonMode() 173 fs::path(filePath).filename().string() != Constants::RESOURCES_INDEX) { in IsVerifyValidInHapMode() 224 if (fs::path(filePath).filename().string() != Constants::RPCID_SC) { in IsValidRpcid() 241 if (fs::path(filePath).filename().string() != Constants::PACK_INFO) { in IsValidPackInfo() 456 std::string zipPath = Constants::SO_ARM64_DIR + fs::path(soPathItem).filename().string(); in CompressHapModeMultiple() 488 std::string zipPath = fs::path(Item).filename().string(); in AddFileListToZip() 532 zipPath = (filePath).filename().string(); in AddParamFileToZip() 564 std::string baseDir = fs::path(dirPath).filename().string(); in AddResFileAndDirLsitToZip() 579 Constants::LINUX_FILE_SEPARATOR + fs::path(it->second).filename() in AddIndexToZipForFaMaode() [all...] |
H A D | app_packager.cpp | 269 if (!fs::is_regular_file(packInfoPath) || fs::path(packInfoPath).filename() != Constants::PACK_INFO) { in GetAndCheckPackInfoPath() 398 fs::path hapTempPath = tempPath / hapFile.filename(); in CompressHapAndHspFiles() 412 fs::path hspTempPath = hspTempDirPath / hspFile.filename(); in CompressHapAndHspFiles() 456 if (zipWrapper_.AddFileOrDirectoryToZip(hapPath, fs::path(hapPath).filename().string()) != in AddHapListToApp() 477 fs::path(itemFormattedEntryCardPath).filename().string()) != in CompressOtherFiles() 492 zipPath = fs::path(it->second).filename().string(); in CompressOtherFiles() 500 zipPath = fs::path(it->second).filename().string(); in CompressOtherFiles() 528 zipPath = fs::path(it->second).filename().string(); in CompressAppMode()
|
H A D | res_packager.cpp | 76 if (fs::path(packInfoPath_).filename().string() != Constants::PACK_INFO) { in IsVerifyValidInResMode() 89 if (fs::path(entryCardPath_).filename().string() != Constants::ENTRYCARD_NAME) { in IsVerifyValidInResMode()
|
/developtools/hiperf/src/ |
H A D | virtual_thread.cpp | 277 void VirtualThread::ParseServiceMap(const std::string &filename) in ParseServiceMap() argument 300 CreateMapItem(filename, begin, end - begin, 0); in ParseServiceMap() 307 std::string filename; in ParseDevhostMap() local 345 filename = mapTokens[MMAP_LINE_TOKEN_INDEX_NAME]; in ParseDevhostMap() 346 if (filename == "[shmm]") { in ParseDevhostMap() 349 if (filename.find(anonPrefix) != std::string::npos) { in ParseDevhostMap() 351 filename = filename.substr(anonPrefix.size(), in ParseDevhostMap() 352 filename.size() - anonPrefix.size() - in ParseDevhostMap() 354 filename in ParseDevhostMap() 382 CreateMapItem(const std::string filename, uint64_t begin, uint64_t len, uint64_t offset, uint32_t prot) CreateMapItem() argument [all...] |
H A D | virtual_runtime.cpp | 227 std::shared_ptr<DfxMap> VirtualRuntime::UpdateThreadMaps(pid_t pid, pid_t tid, const std::string filename, in UpdateThreadMaps() argument 231 std::shared_ptr<DfxMap> map = thread.CreateMapItem(filename, begin, len, offset, prot); in UpdateThreadMaps() 345 std::string filename) in UpdatekernelMap() 348 filename.c_str(), begin, end, offset); in UpdatekernelMap() 350 HLOG_ASSERT(!filename.empty()); in UpdatekernelMap() 351 auto it = find(kernelSpaceMemMaps_.begin(), kernelSpaceMemMaps_.end(), filename); in UpdatekernelMap() 353 kernelSpaceMemMaps_.emplace_back(begin, end, offset, "", filename); in UpdatekernelMap() 358 it->name = filename; in UpdatekernelMap() 662 recordMmap.data_.filename, recordMmap.data_.addr, in UpdateFromRecord() 668 recordMmap.data_.len, recordMmap.data_.filename); in UpdateFromRecord() 344 UpdatekernelMap(uint64_t begin, uint64_t end, uint64_t offset, std::string filename) UpdatekernelMap() argument 1275 UpdateKernelThreadMap(pid_t pid, uint64_t begin, uint64_t len, std::string filename) UpdateKernelThreadMap() argument 1311 std::string filename = std::string(symbol.module_); UpdateDevhostSymbols() local 1345 FixHMBundleMmap(char *filename, int pid, u16 &headerSize) FixHMBundleMmap() argument [all...] |
/developtools/syscap_codec/src/ |
H A D | context_tool.c | 108 int32_t ConvertedContextSaveAsFile(char *outDirPath, const char *filename, char *convertedBuffer, size_t contextBufLen) in ConvertedContextSaveAsFile() argument 130 if (strlen(path) + strlen(filename) + 1 > PATH_MAX) { in ConvertedContextSaveAsFile() 134 ret = strncat_s(path, PATH_MAX, filename, strlen(filename) + 1); in ConvertedContextSaveAsFile() 137 path, PATH_MAX, filename, (int32_t)strlen(filename) + 1, errno); in ConvertedContextSaveAsFile()
|
/developtools/packing_tool/packing_tool/frameworks/include/ |
H A D | zip_utils.h | 40 static bool IsFileExistsInZip(const std::string& zipFilePath, const std::string& filename); 41 static bool IsFileNameExistsInZip(const std::string& zipFilePath, const std::string& filename); 43 static bool GetFileContentFromZip(const std::string& zipFilePath, const std::string& filename,
|
/developtools/global_resource_tool/src/ |
H A D | file_entry.cpp | 73 string filename(findData.cFileName); in GetChilds() 74 if (IsIgnore(filename)) { in GetChilds() 78 filePath = filePath_.GetPath() + SEPARATE + filename; in GetChilds() 88 string filename(entry->d_name); in GetChilds() 89 if (IsIgnore(filename)) { in GetChilds() 93 filePath = filePath_.GetPath() + SEPARATE + filename; in GetChilds() 288 bool FileEntry::IsIgnore(const string &filename) const in IsIgnore() 290 if (filename == "." || filename == "..") { in IsIgnore()
|
H A D | binary_file_packer.cpp | 106 string filename = entry->GetFilePath().GetFilename(); in CopyBinaryFileImpl() local 107 if (ResourceUtil::IsIgnoreFile(filename, entry->IsFile())) { in CopyBinaryFileImpl() 111 string subPath = FileEntry::FilePath(dst).Append(filename).GetPath(); in CopyBinaryFileImpl()
|
/developtools/profiler/hiebpf/test/ |
H A D | hiebpf_test_demo.cpp | 70 void CallStack1(const char * filename) in CallStack1() argument 72 int fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, FILE_MODE); in CallStack1() 74 printf("NOTE Open file err: %s!\n", filename); in CallStack1() 100 void CallStack0(const char * filename) in CallStack0() argument 102 CallStack1(filename); in CallStack0()
|
/developtools/smartperf_host/trace_streamer/src/base/ |
H A D | file.cpp | 101 soFiles.emplace_back(onlyFileName ? entry.path().filename().string() : entry.path().string()); in GetFilesNameFromDir() 175 std::string filename = filename_inzip; in LocalUnzip() local 176 if (filename.back() == '/' || filename.back() == '\\') { in LocalUnzip() 179 std::string dir = dstDir + "/" + filename; in LocalUnzip() 191 std::string writefile = dstDir + "/" + filename; in LocalUnzip()
|
/developtools/integration_verification/DeployDevice/src/util/ |
H A D | log_info.py | 52 filename = "unknow file" 56 filename = os.path.basename(f.f_code.co_filename) 60 log_message = "%s : [%s - %s line: %s - %s]" % (type, time_str, filename, lineno_str, msg)
|
/developtools/profiler/host/smartperf/client/client_command/ |
H A D | Temperature.cpp | 32 std::string filename(dirp->d_name); in ItemData() 33 if (filename.find("cooling") == std::string::npos) { in ItemData() 34 dirs.push_back(SPUtils::IncludePathDelimiter(thermalBasePath) + filename); in ItemData()
|
/developtools/packing_tool/packing_tool/frameworks/test/unittest/json/module_json_utils_test/ |
H A D | module_json_utils_test.cpp | 373 bool CreateModuleJsonFile(std::string filename, const std::string& jsonStr) in CreateModuleJsonFile() argument 375 std::string module_test(filename); in CreateModuleJsonFile() 387 bool CreateModuleJsonHap(std::string hapFilePath, std::string filename, const std::string& jsonStr) in CreateModuleJsonHap() argument 389 EXPECT_TRUE(CreateModuleJsonFile(filename, jsonStr)); in CreateModuleJsonHap() 392 std::string filepath(filename); in CreateModuleJsonHap() 399 bool CreateConfigJsonFile(std::string filename, const std::string& jsonStr) in CreateConfigJsonFile() argument 401 std::string config_test(filename); in CreateConfigJsonFile() 413 bool CreateConfigJsonHap(std::string hapFilePath, std::string filename, const std::string& jsonStr) in CreateConfigJsonHap() argument 415 EXPECT_TRUE(CreateConfigJsonFile(filename, jsonStr)); in CreateConfigJsonHap() 418 std::string filepath(filename); in CreateConfigJsonHap() [all...] |
/developtools/packing_tool/ohos_packing_tool/frameworks/src/ |
H A D | packager.cpp | 80 fs::path tmpPath = zipPath / entry.path().filename(); in AddFileToZip() 157 bool Packager::CheckFileValid(const std::string &filePath, const std::string &filename) in CheckFileValid() argument 160 std::string name = fs::path(filePath).filename(); in CheckFileValid() 161 if (endWith(name, filename)) { in CheckFileValid()
|
/developtools/profiler/hiebpf/src/ |
H A D | hiebpf.bpf.c | 412 size_t get_mountpoint_by_inode(char *filename, int len, const struct inode *host) in get_mountpoint_by_inode() argument 425 name_len = bpf_probe_read_kernel_str(filename + pos, MAX_DENTRY_NAME_LEN, name); in get_mountpoint_by_inode() 431 filename[pos - 1] = '/'; in get_mountpoint_by_inode() 438 int get_filename_by_inode(char *filename, const size_t len, const struct inode *host) in get_filename_by_inode() argument 483 long dentry_name_len = bpf_probe_read_kernel_str(filename + pos, MAX_DENTRY_NAME_LEN, name); in get_filename_by_inode() 490 filename[index] = '/'; in get_filename_by_inode() 497 pos += get_mountpoint_by_inode(filename + pos, len - pos, host); in get_filename_by_inode() 502 int get_filename_by_bio(char *filename, const size_t len, const struct bio *bio) in get_filename_by_bio() argument 504 if (filename == NULL || len == 0 || bio == NULL) { in get_filename_by_bio() 514 return get_filename_by_inode(filename, le in get_filename_by_bio() 543 get_filename_by_file(char *filename, const size_t len, const struct file *filp) get_filename_by_file() argument [all...] |
/developtools/profiler/hiebpf/include/ |
H A D | hiebpf_data_file.h | 64 const std::string& filename, 82 const std::string& filename, in HiebpfDataFile() 85 filename_ {filename} 80 HiebpfDataFile( const std::string& cmd, const std::string& filename, const std::size_t pages = DEFAULT_MMAP_PAGES) HiebpfDataFile() argument
|