Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 92) sorted by relevance

1234

/developtools/hiperf/test/unittest/common/native/
Dperf_file_reader_test.cpp47 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 …]
Dperf_file_writer_test.cpp73 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/
Drecv_binary_cache.py85 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/
DElfParser_fuzzer.cpp23 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/
Dvirtual_runtime.cpp142 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 …]
Dperf_event_record.cpp427 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 …]
Delf_file.cpp23 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/
Dhiebpf_test_demo.cpp70 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/
DExampleJsunit.test.js70 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/
Dfile_entry.cpp73 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()
Dgeneric_compiler.cpp52 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/
Dhiebpf.bpf.c419 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 …]
Dbpf_event_receiver.cpp403 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/
Dlog_info.py52 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/
Dhiebpf_data_file.h64 const std::string& filename,
82 const std::string& filename,
85 filename_ {filename}
/developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/
DliteOsUpgrade_L1_shequ_dv_app.py191 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/
Dbytrace_cmd.cpp119 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/
Dvirtual_thread.h72 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/
Delf_file.cpp24 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/
Dlog.go45 _, filename := filepath.Split(f.File)
46 return fmt.Sprintf("%s()", fn), fmt.Sprintf("%s:%d", filename, f.Line)
/developtools/bytrace/
DREADME_zh.md53 | -o filename,--output filename | 指定输出的目标文件名称 |
/developtools/integration_verification/DeployDevice/
Dtemp.txt1 …poServer/v1/files/download?file_id=bc385ef075f545ccaceae883b9ce0770&type=archive&filename=l1.tar.gz
/developtools/hiperf/include/
Dvirtual_runtime.h142 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);
Dvirtual_thread.h81 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/
DL1task1.properties10 …epo.devcloud.cn-north-4.huaweicloud.com/DevRepoServer/v1/files/download?filename=06b3c99656b14c629…

1234