| /developtools/hiperf/test/unittest/common/native/ |
| D | perf_file_reader_test.cpp | 47 const std::string filename = "perf.data"; variable 49 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); 50 std::unique_ptr<PerfFileReader> ret = hiperfFileReader->Instance(filename); 60 const std::string filename = "xxx"; variable 62 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); 63 std::unique_ptr<PerfFileReader> ret = hiperfFileReader->Instance(filename); 73 const std::string filename = "perf.data"; variable 75 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); 82 const std::string filename = "xxx"; variable 84 PerfFileReader *hiperfFileReader = new PerfFileReader(filename, fp); [all …]
|
| D | perf_file_writer_test.cpp | 73 std::string filename = "./TestFileWriter_Normal"; variable 75 ASSERT_TRUE(fileWriter.Open(filename)) << "current path no write permission?"; 104 ASSERT_TRUE((access(filename.c_str(), F_OK) == 0)); 109 std::string filename = "./TestFileWriter_Compress"; variable 111 ASSERT_TRUE(fileWriter.Open(filename, true)) << "current path no write permission?"; 137 ASSERT_TRUE((access(filename.c_str(), F_OK) == 0)); 138 filename += ".gz"; 139 ASSERT_TRUE((access(filename.c_str(), F_OK) != 0)); 144 std::string filename = "./TestFileWriter_NoWriteAttrAndId"; variable 146 ASSERT_TRUE(fileWriter.Open(filename)) << "current path no write permission?"; [all …]
|
| /developtools/hiperf/script/ |
| D | recv_binary_cache.py | 85 filename = bin_file[bin_file.rfind('/') + 1:] 86 if file_dict.get(filename) is None: 87 file_dict[filename] = [bin_file] 89 file_dict[filename].append(bin_file) 92 for filename in files: 93 paths = file_dict.get(filename) 97 build_id = get_build_id(os.path.join(root, filename)) 105 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/hiperf/test/fuzztest/elfparser_fuzzer/ |
| D | ElfParser_fuzzer.cpp | 23 explicit ElfFileFuzzer(const std::string &filename) : ElfFile(filename) {} in ElfFileFuzzer() argument 25 static std::unique_ptr<ElfFileFuzzer> MakeUnique(const std::string &filename, in MakeUnique() argument 28 std::unique_ptr<ElfFileFuzzer> file = std::make_unique<ElfFileFuzzer>(filename); in MakeUnique()
|
| /developtools/hiperf/src/ |
| D | virtual_runtime.cpp | 142 void VirtualRuntime::UpdateThreadMaps(pid_t pid, pid_t tid, const std::string filename, in UpdateThreadMaps() argument 146 thread.CreateMapItem(filename, begin, len, offset); in UpdateThreadMaps() 254 std::string filename) in UpdatekernelMap() argument 257 filename.c_str(), begin, end, offset); in UpdatekernelMap() 259 HLOG_ASSERT(!filename.empty()); in UpdatekernelMap() 260 auto it = find(kernelSpaceMemMaps_.begin(), kernelSpaceMemMaps_.end(), filename); in UpdatekernelMap() 262 kernelSpaceMemMaps_.emplace_back(begin, end, offset, filename); in UpdatekernelMap() 267 it->name_ = filename; in UpdatekernelMap() 410 recordMmap.data_.filename, recordMmap.data_.addr, in UpdateFromRecord() 416 recordMmap.data_.pgoff, recordMmap.data_.filename); in UpdateFromRecord() [all …]
|
| D | perf_event_record.cpp | 427 const std::string &filename) in PerfRecordMmap() argument 435 if (strncpy_s(data_.filename, KILO, filename.c_str(), filename.size()) != 0) { in PerfRecordMmap() 439 header.size = sizeof(header) + sizeof(data_) - KILO + filename.size() + 1; in PerfRecordMmap() 460 PrintIndent(indent, "pgoff 0x%llx, filename %s\n", data_.pgoff, data_.filename); in DumpData() 466 header.size, data_.pid, data_.tid, data_.filename, data_.addr, data_.addr + data_.len, in DumpLog() 480 const std::string &filename) in PerfRecordMmap2() argument 494 if (strncpy_s(data_.filename, KILO, filename.c_str(), filename.size()) != 0) { in PerfRecordMmap2() 498 header.size = sizeof(header) + sizeof(data_) - KILO + filename.size() + 1; in PerfRecordMmap2() 515 if (strncpy_s(data_.filename, KILO, item.name_.c_str(), item.name_.size()) != 0) { in PerfRecordMmap2() 543 data_.filename); in DumpData() [all …]
|
| D | elf_file.cpp | 23 ElfFile::ElfFile(const std::string &filename) in ElfFile() argument 26 std::string resolvedPath = CanonicalizeSpecPath(filename.c_str()); in ElfFile() 29 std::string resolvedPath = CanonicalizeSpecPath(filename.c_str()); in ElfFile() 62 std::unique_ptr<ElfFile> ElfFile::MakeUnique(const std::string &filename) in MakeUnique() argument 64 std::unique_ptr<ElfFile> file {new (std::nothrow) ElfFile(filename)}; in MakeUnique()
|
| /developtools/profiler/hiebpf/test/ |
| 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/profiler/hidebug/test/unittest/js/ |
| D | ExampleJsunit.test.js | 70 let filename = "cpuprofiler_" + timestamp.toString(); 71 hidebug.startProfiling(filename); 77 let path = "/proc/" + pid + "/root/data/storage/el2/base/files/" + filename + ".json"; 100 let filename = "cpuprofiler_" + timestamp.toString(); 101 hidebug.startJsCpuProfiling(filename); 107 let path = "/proc/" + pid + "/root/data/storage/el2/base/files/" + filename + ".json";
|
| /developtools/global_resource_tool/src/ |
| D | file_entry.cpp | 73 string filename(findData.cFileName); in GetChilds() local 74 if (IsIgnore(filename)) { in GetChilds() 78 filePath = filePath_.GetPath() + SEPARATE + filename; in GetChilds() 88 string filename(entry->d_name); in GetChilds() local 89 if (IsIgnore(filename)) { in GetChilds() 93 filePath = filePath_.GetPath() + SEPARATE + filename; in GetChilds() 279 bool FileEntry::IsIgnore(const string &filename) const in IsIgnore() 281 if (filename == "." || filename == "..") { in IsIgnore()
|
| D | generic_compiler.cpp | 52 ResourceItem resourceItem(fileInfo.filename, fileInfo.keyParams, type_); in PostFile() 56 string data = fileInfo.filename; in PostFile() 69 string outputFilePath = FileEntry::FilePath(outputFolder).Append(fileInfo.filename).GetPath(); in GetOutputFilePath()
|
| /developtools/profiler/hiebpf/src/ |
| D | hiebpf.bpf.c | 419 size_t get_mountpoint_by_inode(char *filename, int len, const struct inode *host) in get_mountpoint_by_inode() argument 432 name_len = bpf_probe_read_kernel_str(filename + pos, MAX_DENTRY_NAME_LEN, name); in get_mountpoint_by_inode() 438 filename[pos - 1] = '/'; in get_mountpoint_by_inode() 445 int get_filename_by_inode(char *filename, const size_t len, const struct inode *host) in get_filename_by_inode() argument 490 long dentry_name_len = bpf_probe_read_kernel_str(filename + pos, MAX_DENTRY_NAME_LEN, name); in get_filename_by_inode() 496 filename[pos - 1] = '/'; in get_filename_by_inode() 503 pos += get_mountpoint_by_inode(filename + pos, len - pos, host); in get_filename_by_inode() 508 int get_filename_by_bio(char *filename, const size_t len, const struct bio *bio) in get_filename_by_bio() argument 510 if (filename == NULL || len == 0 || bio == NULL) { in get_filename_by_bio() 520 return get_filename_by_inode(filename, len, host); in get_filename_by_bio() [all …]
|
| D | bpf_event_receiver.cpp | 403 char *filename = static_cast<char*>(tlvItem); in EncodeSTRTraceEvent() local 404 filename += sizeof(struct FixedSTRTraceTLVItem); in EncodeSTRTraceEvent() 405 … CHECK_TRUE(strncpy_s(filename, MAX_FILENAME_LEN, cmplt_event->filename, item->strLen_) == EOK, -1, in EncodeSTRTraceEvent() 408 ReverseStr(filename, filename + item->strLen_ - 2); // 2: last 2 chars in EncodeSTRTraceEvent() 409 char* start = filename; in EncodeSTRTraceEvent()
|
| /developtools/integration_verification/DeployDevice/src/util/ |
| 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/hiebpf/include/ |
| D | hiebpf_data_file.h | 64 const std::string& filename, 82 const std::string& filename, 85 filename_ {filename}
|
| /developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/ |
| D | liteOsUpgrade_L1_shequ_dv_app.py | 191 for filename in pushfilelist: 192 if not os.path.exists(os.path.join(local_file_path, filename)): 194 ….info("copy %s to %s" % (os.path.join(local_file_path, filename), "%s/%s" % (remote_path, filename… 196 … sftp.put(os.path.join(local_file_path, filename), "%s/%s" % (remote_path, filename)) 198 …retry, copy %s to %s" % (os.path.join(local_file_path, filename), "%s/%s" % (remote_path, filename… 199 … sftp.put(os.path.join(local_file_path, filename), "%s/%s" % (remote_path, filename))
|
| /developtools/bytrace/bin/src/ |
| D | bytrace_cmd.cpp | 119 static bool IsFileExit(const string& filename) in IsFileExit() argument 121 return access((g_traceRootPath + filename).c_str(), F_OK) != -1; // verify if the file exists in IsFileExit() 124 static bool IsWritableFile(const string& filename) in IsWritableFile() argument 126 return access((g_traceRootPath + filename).c_str(), W_OK) != -1; // verify if the file writable in IsWritableFile() 129 static bool WriteStrToFile(const string& filename, const std::string& str) in WriteStrToFile() argument 132 out.open(g_traceRootPath + filename, ios::out); in WriteStrToFile() 135 fprintf(stderr, "Error: Did not open %s\n", filename.c_str()); in WriteStrToFile() 140 fprintf(stderr, "Error: Did not write %s\n", filename.c_str()); in WriteStrToFile() 224 static string ReadFile(const string& filename) in ReadFile() argument 227 string resolvedPath = CanonicalizeSpecPath((g_traceRootPath + filename).c_str()); in ReadFile() [all …]
|
| /developtools/profiler/device/plugins/native_daemon/include/ |
| D | virtual_thread.h | 72 void CreateMapItem(const std::string filename, uint64_t begin, uint64_t len, uint64_t offset); 86 static bool IsLegalFileName(const std::string &filename);
|
| /developtools/profiler/device/plugins/native_daemon/src/ |
| D | elf_file.cpp | 24 ElfFile::ElfFile(const std::string &filename) in ElfFile() argument 27 fd_ = open(filename.c_str(), O_RDONLY | O_BINARY); in ElfFile() 29 fd_ = open(filename.c_str(), O_RDONLY); in ElfFile() 62 std::unique_ptr<ElfFile> ElfFile::MakeUnique(const std::string &filename) in MakeUnique() argument 64 std::unique_ptr<ElfFile> file {new (std::nothrow) ElfFile(filename)}; in MakeUnique()
|
| /developtools/integration_verification/tools/fotff/utils/ |
| D | log.go | 45 _, filename := filepath.Split(f.File) 46 return fmt.Sprintf("%s()", fn), fmt.Sprintf("%s:%d", filename, f.Line)
|
| /developtools/bytrace/ |
| D | README_zh.md | 53 | -o filename,--output filename | 指定输出的目标文件名称 |
|
| /developtools/integration_verification/DeployDevice/ |
| D | temp.txt | 1 …poServer/v1/files/download?file_id=bc385ef075f545ccaceae883b9ce0770&type=archive&filename=l1.tar.gz
|
| /developtools/hiperf/include/ |
| D | virtual_runtime.h | 142 void UpdateSymbols(std::string filename); 153 void UpdateThreadMaps(pid_t pid, pid_t tid, const std::string filename, uint64_t begin, 155 void UpdatekernelMap(uint64_t begin, uint64_t end, uint64_t offset, std::string filename);
|
| D | virtual_thread.h | 81 void CreateMapItem(const std::string filename, uint64_t begin, uint64_t len, uint64_t offset); 92 static bool IsLegalFileName(const std::string &filename);
|
| /developtools/integration_verification/DeployDevice/src/ |
| D | L1task1.properties | 10 …epo.devcloud.cn-north-4.huaweicloud.com/DevRepoServer/v1/files/download?filename=06b3c99656b14c629…
|