Home
last modified time | relevance | path

Searched refs:filePath (Results 1 – 20 of 20) sorted by relevance

/kernel/liteos_a/kernel/extended/blackbox/
Dlos_blackbox_common.c57 int FullWriteFile(const char *filePath, const char *buf, size_t bufSize, int isAppend) in FullWriteFile() argument
64 if (filePath == NULL || buf == NULL || bufSize == 0) { in FullWriteFile()
65 BBOX_PRINT_ERR("filePath: %p, buf: %p, bufSize: %lu!\n", filePath, buf, bufSize); in FullWriteFile()
73 fd = open(filePath, O_CREAT | O_RDWR | (isAppend ? O_APPEND : O_TRUNC), BBOX_FILE_MODE); in FullWriteFile()
75 BBOX_PRINT_ERR("Create file [%s] failed, fd: %d!\n", filePath, fd); in FullWriteFile()
81 BBOX_PRINT_ERR("Failed to write file [%s]!\n", filePath); in FullWriteFile()
94 (VOID)filePath; in FullWriteFile()
102 int SaveBasicErrorInfo(const char *filePath, const struct ErrorInfo *info) in SaveBasicErrorInfo() argument
106 if (filePath == NULL || info == NULL) { in SaveBasicErrorInfo()
107 BBOX_PRINT_ERR("filePath: %p, event: %p!\n", filePath, info); in SaveBasicErrorInfo()
[all …]
Dlos_blackbox_detector.c45 int UploadEventByFile(const char *filePath) in UploadEventByFile() argument
47 if (filePath == NULL) { in UploadEventByFile()
Dlos_blackbox_common.h51 int FullWriteFile(const char *filePath, const char *buf, size_t bufSize, int isAppend);
52 int SaveBasicErrorInfo(const char *filePath, const struct ErrorInfo *info);
Dlos_blackbox_system_adapter.c68 static void SaveFaultLog(const char *filePath, const char *dataBuf, size_t bufSize, struct ErrorInf… in SaveFaultLog() argument
70 (void)SaveBasicErrorInfo(filePath, info); in SaveFaultLog()
71 (void)FullWriteFile(filePath, dataBuf, bufSize, 1); in SaveFaultLog()
Dlos_blackbox_detector.h42 int UploadEventByFile(const char *filePath);
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
DIt_process_plimits_008.cpp41 static std::string GetFileMode(const char* filePath) in GetFileMode() argument
47 stat(filePath, &buf); in GetFileMode()
58 static int IsFilePropertyR1(const char* filePath) in IsFilePropertyR1() argument
61 std::string fileProperty = GetFileMode(filePath); in IsFilePropertyR1()
67 std::string filePath = "/proc/plimits/"; in ItProcessPlimits008() local
82 std::string fileFullPath = filePath + *iter; in ItProcessPlimits008()
/kernel/liteos_a/apps/perf/src/
Dperf_record.c108 ssize_t PerfWriteFile(const char *filePath, const char *buf, ssize_t bufSize) in PerfWriteFile() argument
115 if (filePath == NULL || buf == NULL || bufSize == 0) { in PerfWriteFile()
119 fd = open(filePath, O_CREAT | O_RDWR | O_TRUNC, PERF_FILE_MODE); in PerfWriteFile()
121 printf("create file [%s] failed, fd: %d, %s!\n", filePath, fd, strerror(errno)); in PerfWriteFile()
127 printf("failed to write file [%s], %s!\n", filePath, strerror(errno)); in PerfWriteFile()
140 (void)filePath; in PerfWriteFile()
/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_user_container_004.cpp45 std::string filePath; in childFunc() local
59 filePath = GenContainerLinkPath(childsPid, containerType); in childFunc()
60 fd = open(filePath.c_str(), O_RDONLY); in childFunc()
DIt_ipc_container_002.cpp96 std::string filePath; in ItIpcContainer002() local
133 filePath = GenContainerLinkPath(childPid, containerType); in ItIpcContainer002()
134 fd = open(filePath.c_str(), O_RDONLY); in ItIpcContainer002()
DIt_uts_container_006.cpp46 std::string filePath = GenContainerLinkPath(childsPid, containerType); in UtsContainerTest() local
47 int fd = open(filePath.c_str(), O_RDONLY); in UtsContainerTest()
DIt_ipc_container_006.cpp94 std::string filePath = GenContainerLinkPath(pid, containerType); in childFunc() local
95 int fd = open(filePath.c_str(), O_RDONLY); in childFunc()
/kernel/liteos_a/kernel/extended/hidumper/
Dlos_hidumper.c245 static void PrintFile(const char *filePath, const char *pHeader) in PrintFile() argument
250 if (filePath == NULL || pHeader == NULL) { in PrintFile()
251 PRINT_ERR("filePath: %p, pHeader: %p\n", filePath, pHeader); in PrintFile()
255 fd = open(filePath, O_RDONLY); in PrintFile()
261 PRINT_ERR("Open [%s] failed or there's no fault log!\n", filePath); in PrintFile()
264 (VOID)filePath; in PrintFile()
Dlos_hidumper.h57 char filePath[PATH_MAX_LEN]; member
/kernel/liteos_a/fs/vfs/
Dvnode.c70 g_rootVnode->filePath = "/"; in VnodesInit()
200 if (vnode->filePath) { in VnodeFree()
201 free(vnode->filePath); in VnodeFree()
313 if (strcmp(vnode->filePath, "/dev") == 0) { in ConvertVnodeIfMounted()
433 if (currentVnode->filePath == NULL) { in VnodeLookupAt()
434 currentVnode->filePath = normalizedPath; in VnodeLookupAt()
448 if (currentVnode->filePath == NULL) { in VnodeLookupAt()
461 currentVnode->filePath = vnodePath; in VnodeLookupAt()
462 currentVnode->filePath[vnodePathLen] = 0; in VnodeLookupAt()
614 newVnode->filePath = strdup(name); in VnodeCreate()
/kernel/liteos_a/fs/proc/os_adapt/
Dfs_cache_proc.c76 VnodeTypeToStr(item->type), item->gid, item->uid, item->mode, item->filePath); in VnodeListProcess()
130 LosBufPrintf(buf, "%p, %s:[", vnode, vnode->filePath); in PageCacheMapProcess()
/kernel/liteos_a/fs/vfs/include/
Dvnode.h131 char *filePath; /* file path of the vnode */ member
/kernel/liteos_a/kernel/base/vm/
Dlos_vm_filemap.c242 if (stat(vnode->filePath, &buf_stat) != OK) { in GetDirtySize()
243 VM_ERR("FlushDirtyPage get file size failed. (filePath=%s)", vnode->filePath); in GetDirtySize()
Dlos_vm_fault.c113 VM_ERR("region args invalid, file path: %s", region->unTypeData.rf.vnode->filePath); in OsDoReadFault()
Dlos_vm_dump.c65 return vnode->filePath; in OsGetRegionNameOrFilePath()
/kernel/liteos_a/syscall/
Dfs_syscall.c110 static int GetFullpathNull(int fd, const char *path, char **filePath) in GetFullpathNull() argument
133 *filePath = fullPath; in GetFullpathNull()
2320 char *filePath = NULL; in SysUtimensat() local
2331 ret = GetFullpathNull(fd, path, &filePath); in SysUtimensat()
2336 ret = chattr(filePath, &attr); in SysUtimensat()
2342 PointerFree(filePath); in SysUtimensat()