/kernel/liteos_a/kernel/extended/blackbox/ |
D | los_blackbox_common.c | 57 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 …]
|
D | los_blackbox_detector.c | 45 int UploadEventByFile(const char *filePath) in UploadEventByFile() argument 47 if (filePath == NULL) { in UploadEventByFile()
|
D | los_blackbox_common.h | 51 int FullWriteFile(const char *filePath, const char *buf, size_t bufSize, int isAppend); 52 int SaveBasicErrorInfo(const char *filePath, const struct ErrorInfo *info);
|
D | los_blackbox_system_adapter.c | 68 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()
|
D | los_blackbox_detector.h | 42 int UploadEventByFile(const char *filePath);
|
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
D | It_process_plimits_008.cpp | 41 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/ |
D | perf_record.c | 108 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/ |
D | It_user_container_004.cpp | 45 std::string filePath; in childFunc() local 59 filePath = GenContainerLinkPath(childsPid, containerType); in childFunc() 60 fd = open(filePath.c_str(), O_RDONLY); in childFunc()
|
D | It_ipc_container_002.cpp | 96 std::string filePath; in ItIpcContainer002() local 133 filePath = GenContainerLinkPath(childPid, containerType); in ItIpcContainer002() 134 fd = open(filePath.c_str(), O_RDONLY); in ItIpcContainer002()
|
D | It_uts_container_006.cpp | 46 std::string filePath = GenContainerLinkPath(childsPid, containerType); in UtsContainerTest() local 47 int fd = open(filePath.c_str(), O_RDONLY); in UtsContainerTest()
|
D | It_ipc_container_006.cpp | 94 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/ |
D | los_hidumper.c | 245 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()
|
D | los_hidumper.h | 57 char filePath[PATH_MAX_LEN]; member
|
/kernel/liteos_a/fs/vfs/ |
D | vnode.c | 70 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/ |
D | fs_cache_proc.c | 76 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/ |
D | vnode.h | 131 char *filePath; /* file path of the vnode */ member
|
/kernel/liteos_a/kernel/base/vm/ |
D | los_vm_filemap.c | 242 if (stat(vnode->filePath, &buf_stat) != OK) { in GetDirtySize() 243 VM_ERR("FlushDirtyPage get file size failed. (filePath=%s)", vnode->filePath); in GetDirtySize()
|
D | los_vm_fault.c | 113 VM_ERR("region args invalid, file path: %s", region->unTypeData.rf.vnode->filePath); in OsDoReadFault()
|
D | los_vm_dump.c | 65 return vnode->filePath; in OsGetRegionNameOrFilePath()
|
/kernel/liteos_a/syscall/ |
D | fs_syscall.c | 110 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()
|