/kernel/liteos_a/lib/libscrew/src/ |
D | los_seq_buf.c | 37 static int ExpandSeqBuf(struct SeqBuf *seqBuf, size_t oldCount) in ExpandSeqBuf() argument 42 if ((seqBuf == NULL) || (seqBuf->buf == NULL)) { in ExpandSeqBuf() 46 if (seqBuf->size >= SEQBUF_LIMIT_SIZE) { in ExpandSeqBuf() 50 newBuf = (char*)malloc(seqBuf->size <<= 1); in ExpandSeqBuf() 54 (void)memset_s(newBuf + oldCount, seqBuf->size - oldCount, 0, seqBuf->size - oldCount); in ExpandSeqBuf() 56 ret = memcpy_s(newBuf, seqBuf->size, seqBuf->buf, oldCount); in ExpandSeqBuf() 61 seqBuf->count = oldCount; in ExpandSeqBuf() 63 free(seqBuf->buf); in ExpandSeqBuf() 64 seqBuf->buf = newBuf; in ExpandSeqBuf() 68 free(seqBuf->buf); in ExpandSeqBuf() [all …]
|
/kernel/liteos_a/fs/proc/os_adapt/ |
D | plimits_proc.c | 64 static int ShowPids(struct SeqBuf *seqBuf, VOID *data); 66 static ssize_t PidLimitReadPidLimit(struct SeqBuf *seqBuf, VOID *data); 67 static ssize_t PidLimitReadPriorityLimit(struct SeqBuf *seqBuf, VOID *data); 70 static ssize_t ProcLimitsShowLimiters(struct SeqBuf *seqBuf, VOID *data); 74 static ssize_t MemLimitReadLimit(struct SeqBuf *seqBuf, VOID *data); 76 static ssize_t MemLimitStatShow(struct SeqBuf *seqBuf, VOID *data); 79 static ssize_t IPCLimitReadMqLimit(struct SeqBuf *seqBuf, VOID *data); 81 static ssize_t IPCLimitReadShmLimit(struct SeqBuf *seqBuf, VOID *data); 83 static ssize_t IPCLimitShowStat(struct SeqBuf *seqBuf, VOID *data); 88 static ssize_t DevLimitShow(struct SeqBuf *seqBuf, VOID *data); [all …]
|
D | mem_info.c | 38 static int SysMemInfoFill(struct SeqBuf *seqBuf, void *arg) in SysMemInfoFill() argument 45 (void)LosBufPrintf(seqBuf, "\nUsedSize: %u byte\n", mem.totalUsedSize); in SysMemInfoFill() 46 (void)LosBufPrintf(seqBuf, "FreeSize: %u byte\n", mem.totalFreeSize); in SysMemInfoFill() 47 (void)LosBufPrintf(seqBuf, "MaxFreeNodeSize: %u byte\n", mem.maxFreeNodeSize); in SysMemInfoFill() 48 (void)LosBufPrintf(seqBuf, "UsedNodeNum: %u\n", mem.usedNodeNum); in SysMemInfoFill() 49 (void)LosBufPrintf(seqBuf, "FreeNodeNum: %u\n", mem.freeNodeNum); in SysMemInfoFill() 51 (void)LosBufPrintf(seqBuf, "UsageWaterLine: %u byte\n", mem.usageWaterLine); in SysMemInfoFill()
|
D | fd_proc.c | 47 static void FillFdInfo(struct SeqBuf *seqBuf, struct filelist *fileList, unsigned int pid, bool has… in FillFdInfo() argument 80 …(void)LosBufPrintf(seqBuf, "%u\t%d\t%6d <%d>\t%s\n", pid, fd, sysFd, filp ? filp->f_refcount : 1, … in FillFdInfo() 82 (void)LosBufPrintf(seqBuf, "%u\t%d\t%s\n", pid, fd, name); in FillFdInfo() 90 static int FdProcFill(struct SeqBuf *seqBuf, void *v) in FdProcFill() argument 106 (void)LosBufPrintf(seqBuf, "%s\t%s\t%6s %s\t%s\n", "Pid", "Fd", "SysFd", "<ref>", "Name"); in FdProcFill() 115 (void)LosBufPrintf(seqBuf, "Pid\tFd\tName\n"); in FdProcFill() 122 FillFdInfo(seqBuf, fileList, pidList[i], hasPrivilege); in FdProcFill()
|
D | vmm_proc.c | 44 STATIC VOID OsVmDumpSeqSpaces(struct SeqBuf *seqBuf) in OsVmDumpSeqSpaces() argument 66 … (VOID)LosBufPrintf(seqBuf, "\r\n PID aspace name base size pages \n"); in OsVmDumpSeqSpaces() 67 (VOID)LosBufPrintf(seqBuf, " ---- ------ ---- ---- ----- ----\n"); in OsVmDumpSeqSpaces() 68 (VOID)LosBufPrintf(seqBuf, " %-4d %#010x %-10.10s %#010x %#010x %d\n", in OsVmDumpSeqSpaces() 70 (VOID)LosBufPrintf(seqBuf, in OsVmDumpSeqSpaces() 72 (VOID)LosBufPrintf(seqBuf, in OsVmDumpSeqSpaces() 82 (VOID)LosBufPrintf(seqBuf, "\t %#010x %-19.19s %#010x %#010x %-15.15s %4d %4d\n", in OsVmDumpSeqSpaces()
|
D | process_proc.c | 192 static int ProcessMemInfoRead(struct SeqBuf *seqBuf, LosProcessCB *pcb) in ProcessMemInfoRead() argument 213 (void)LosBufPrintf(seqBuf, "\nVMSpaceSize: %u byte\n", vmSpace->size); in ProcessMemInfoRead() 214 (void)LosBufPrintf(seqBuf, "VMSpaceMapSize: %u byte\n", vmSpace->mapSize); in ProcessMemInfoRead() 215 (void)LosBufPrintf(seqBuf, "VM TLB Asid: %u\n", vmSpace->archMmu.asid); in ProcessMemInfoRead() 216 (void)LosBufPrintf(seqBuf, "VMHeapSize: %u byte\n", heap->range.size); in ProcessMemInfoRead() 217 (void)LosBufPrintf(seqBuf, "VMHeapRegionName: %s\n", OsGetRegionNameOrFilePath(heap)); in ProcessMemInfoRead() 218 (void)LosBufPrintf(seqBuf, "VMHeapRegionType: 0x%x\n", heap->regionType); in ProcessMemInfoRead() 225 static int ProcessCpupRead(struct SeqBuf *seqBuf, LosProcessCB *pcb) in ProcessCpupRead() argument 243 …(void)LosBufPrintf(seqBuf, "\nTotalRunningTime: %lu us\n", TIME_CYCLE_TO_US(processCpup->allTime)); in ProcessCpupRead() 244 (void)LosBufPrintf(seqBuf, "HistoricalRunningTime:(us) "); in ProcessCpupRead() [all …]
|
D | file_sys.c | 40 static int FsFileSysProcRead(struct SeqBuf *seqBuf, void *buf) in FsFileSysProcRead() argument 48 (void)LosBufPrintf(seqBuf, "\n %s\n", m->fs_filesystemtype); in FsFileSysProcRead() 50 (void)LosBufPrintf(seqBuf, "%s %s\n", "nodev", m->fs_filesystemtype); in FsFileSysProcRead()
|
D | mounts_proc.c | 43 struct SeqBuf *seqBuf = (struct SeqBuf *)arg; in ShowType() local 70 (void)LosBufPrintf(seqBuf, "%s %s %s %s %d %d\n", type, mountPoint, type, "()", 0, 0); in ShowType() 72 (void)LosBufPrintf(seqBuf, "%s %s %s %s %d %d\n", devPoint, mountPoint, type, "()", 0, 0); in ShowType()
|
D | uptime_proc.c | 41 static int UptimeProcFill(struct SeqBuf *seqBuf, void *v) in UptimeProcFill() argument 61 (void)LosBufPrintf(seqBuf, "%llu.%03llu %llu.%03llu\n", (unsigned long long)curtime.tv_sec, in UptimeProcFill() 66 (void)LosBufPrintf(seqBuf, "%llu.%03llu\n", (unsigned long long)curtime.tv_sec, in UptimeProcFill()
|
D | sys_user.c | 108 static int ProcSysUserRead(struct SeqBuf *seqBuf, void *v) in ProcSysUserRead() argument 111 if ((seqBuf == NULL) || (v == NULL)) { in ProcSysUserRead() 120 (void)LosBufPrintf(seqBuf, "\nlimit: %u\n", ret); in ProcSysUserRead() 121 (void)LosBufPrintf(seqBuf, "count: %u\n", OsGetContainerCount(type)); in ProcSysUserRead()
|
/kernel/liteos_a/kernel/base/misc/ |
D | task_shellcmd.c | 69 if (seqBuf != NULL) { \ 70 (void)LosBufPrintf((struct SeqBuf *)seqBuf, ##arg); \ 122 STATIC VOID ProcessInfoTitle(VOID *seqBuf, UINT16 flag) in ProcessInfoTitle() argument 142 STATIC VOID ProcessDataShow(const ProcessInfo *processInfo, VOID *seqBuf, UINT16 flag) in ProcessDataShow() argument 170 STATIC VOID AllProcessDataShow(const ProcessInfo *pcbArray, VOID *seqBuf, UINT16 flag) in AllProcessDataShow() argument 177 ProcessDataShow(processInfo, seqBuf, flag); in AllProcessDataShow() 181 STATIC VOID ProcessInfoShow(const ProcessInfo *pcbArray, VOID *seqBuf, UINT16 flag) in ProcessInfoShow() argument 190 ProcessInfoTitle(seqBuf, flag); in ProcessInfoShow() 191 AllProcessDataShow(pcbArray, seqBuf, flag); in ProcessInfoShow() 288 STATIC VOID TaskInfoTitle(VOID *seqBuf, UINT16 flag) in TaskInfoTitle() argument [all …]
|
/kernel/liteos_a/lib/libscrew/include/ |
D | los_seq_buf.h | 56 int LosBufPrintf(struct SeqBuf *seqBuf, const char *fmt, ...); 57 int LosBufVprintf(struct SeqBuf *seqBuf, const char *fmt, va_list argList); 58 int LosBufRelease(struct SeqBuf *seqBuf);
|
/kernel/liteos_a/kernel/extended/plimit/ |
D | los_devicelimit.c | 515 UINT32 OsDevLimitShow(ProcDevLimit *devLimit, struct SeqBuf *seqBuf) in OsDevLimitShow() argument 521 if ((devLimit == NULL) || (seqBuf == NULL)) { in OsDevLimitShow() 529 LosBufPrintf(seqBuf, "%c %s %s\n", DevLimitItemTypeToChar(DEVLIMIT_DEV_ALL), "*", acc); in OsDevLimitShow() 534 LosBufPrintf(seqBuf, "%c %s %s\n", DevLimitItemTypeToChar(item->type), item->name, acc); in OsDevLimitShow()
|
D | los_devicelimit.h | 88 UINT32 OsDevLimitShow(ProcDevLimit *devLimit, struct SeqBuf *seqBuf);
|
/kernel/liteos_a/kernel/extended/power/ |
D | los_pm.c | 44 #define PM_INFO_SHOW(seqBuf, arg...) do { \ argument 45 if (seqBuf != NULL) { \ 46 (void)LosBufPrintf((struct SeqBuf *)seqBuf, ##arg); \
|