Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
86be5408
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
接近 2 年 前同步成功
通知
474
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
86be5408
编写于
3月 14, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 14, 2022
浏览文件
操作
浏览文件
下载
差异文件
!829 fix:修改拼写错误
Merge pull request !829 from xuxinyu/FixSpellingMisstakes
上级
395c0be7
0f75bf01
变更
223
展开全部
隐藏空白更改
内联
并排
Showing
223 changed file
with
318 addition
and
318 deletion
+318
-318
Kconfig
Kconfig
+1
-1
apps/shell/src/shcmd.c
apps/shell/src/shcmd.c
+7
-7
apps/shell/src/shmsg.c
apps/shell/src/shmsg.c
+3
-3
apps/tftp/include/tftpc.h
apps/tftp/include/tftpc.h
+1
-1
apps/tftp/src/main.c
apps/tftp/src/main.c
+4
-4
apps/tftp/src/tftpc.c
apps/tftp/src/tftpc.c
+7
-7
arch/arm/arm/include/los_atomic.h
arch/arm/arm/include/los_atomic.h
+4
-4
arch/arm/gic/gic_v2.c
arch/arm/gic/gic_v2.c
+2
-2
arch/arm/gic/gic_v3.c
arch/arm/gic/gic_v3.c
+1
-1
arch/arm/include/gic_common.h
arch/arm/include/gic_common.h
+2
-2
compat/posix/include/mqueue.h
compat/posix/include/mqueue.h
+2
-2
compat/posix/src/time.c
compat/posix/src/time.c
+1
-1
drivers/block/disk/include/disk.h
drivers/block/disk/include/disk.h
+2
-2
drivers/block/disk/src/disk.c
drivers/block/disk/src/disk.c
+4
-4
drivers/mtd/multi_partition/src/mtd_partition.c
drivers/mtd/multi_partition/src/mtd_partition.c
+4
-4
fs/fat/virpart/src/virpartff.c
fs/fat/virpart/src/virpartff.c
+2
-2
fs/proc/include/proc_fs.h
fs/proc/include/proc_fs.h
+1
-1
fs/proc/src/proc_file.c
fs/proc/src/proc_file.c
+1
-1
fs/vfs/operation/vfs_other.c
fs/vfs/operation/vfs_other.c
+1
-1
kernel/base/core/los_swtmr.c
kernel/base/core/los_swtmr.c
+2
-2
kernel/base/core/los_task.c
kernel/base/core/los_task.c
+1
-1
kernel/base/include/los_sched_pri.h
kernel/base/include/los_sched_pri.h
+11
-11
kernel/base/include/los_task_pri.h
kernel/base/include/los_task_pri.h
+2
-2
kernel/base/ipc/los_queue_debug.c
kernel/base/ipc/los_queue_debug.c
+1
-1
kernel/base/mp/los_lockdep.c
kernel/base/mp/los_lockdep.c
+1
-1
kernel/base/vm/los_vm_syscall.c
kernel/base/vm/los_vm_syscall.c
+1
-1
kernel/common/console.c
kernel/common/console.c
+2
-2
kernel/extended/cpup/los_cpup.c
kernel/extended/cpup/los_cpup.c
+2
-2
kernel/extended/liteipc/hm_liteipc.c
kernel/extended/liteipc/hm_liteipc.c
+1
-1
kernel/extended/liteipc/hm_liteipc.h
kernel/extended/liteipc/hm_liteipc.h
+2
-2
kernel/extended/trace/los_trace_pri.h
kernel/extended/trace/los_trace_pri.h
+1
-1
kernel/extended/trace/trace_offline.c
kernel/extended/trace/trace_offline.c
+1
-1
kernel/include/los_memory.h
kernel/include/los_memory.h
+6
-6
kernel/include/los_printf.h
kernel/include/los_printf.h
+1
-1
kernel/include/los_rwlock.h
kernel/include/los_rwlock.h
+2
-2
kernel/include/los_task.h
kernel/include/los_task.h
+2
-2
kernel/include/los_trace.h
kernel/include/los_trace.h
+3
-3
net/lwip-2.1/enhancement/src/api_shell.c
net/lwip-2.1/enhancement/src/api_shell.c
+10
-10
net/lwip-2.1/porting/src/driverif.c
net/lwip-2.1/porting/src/driverif.c
+1
-1
net/lwip-2.1/porting/src/sys_arch.c
net/lwip-2.1/porting/src/sys_arch.c
+1
-1
net/telnet/src/telnet_loop.c
net/telnet/src/telnet_loop.c
+1
-1
shell/full/include/shell_lk.h
shell/full/include/shell_lk.h
+2
-2
shell/full/src/base/shcmd.c
shell/full/src/base/shcmd.c
+7
-7
shell/full/src/base/shmsg.c
shell/full/src/base/shmsg.c
+1
-1
syscall/los_syscall.h
syscall/los_syscall.h
+1
-1
testsuites/kernel/sample/kernel_base/core/hwi/smp/It_smp_los_hwi_006.c
...rnel/sample/kernel_base/core/hwi/smp/It_smp_los_hwi_006.c
+1
-1
testsuites/kernel/sample/kernel_base/core/hwi/smp/It_smp_los_hwi_ipi_007.c
.../sample/kernel_base/core/hwi/smp/It_smp_los_hwi_ipi_007.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_023.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_023.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_026.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_026.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_040.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_040.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_061.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_061.c
+2
-2
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_063.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_063.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_065.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_065.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_067.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_067.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_069.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_069.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_072.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_072.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_075.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_075.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_077.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_077.c
+2
-2
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_089.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_089.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_091.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_091.c
+2
-2
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_093.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_093.c
+2
-2
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_096.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_096.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_097.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_097.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_101.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_101.c
+2
-2
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_102.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_102.c
+2
-2
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_106.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_106.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_130.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_130.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_137.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_137.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_143.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_143.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_150.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_150.c
+2
-2
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_152.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_152.c
+2
-2
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_156.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_156.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_159.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_159.c
+1
-1
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_161.c
...el/sample/kernel_base/core/task/smp/It_smp_los_task_161.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/full/It_los_event_003.c
...rnel/sample/kernel_base/ipc/event/full/It_los_event_003.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/full/It_los_event_015.c
...rnel/sample/kernel_base/ipc/event/full/It_los_event_015.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_002.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_002.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_003.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_003.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_008.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_008.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_011.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_011.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_014.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_014.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_015.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_015.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_018.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_018.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_021.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_021.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_022.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_022.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_023.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_023.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_024.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_024.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_025.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_025.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_031.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_031.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_032.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_032.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_035.c
...l/sample/kernel_base/ipc/event/smp/It_smp_los_event_035.c
+2
-2
testsuites/kernel/sample/kernel_base/ipc/mux/smp/It_smp_los_mux_2026.c
...rnel/sample/kernel_base/ipc/mux/smp/It_smp_los_mux_2026.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_002.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_002.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_003.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_003.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_005.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_005.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_007.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_007.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_008.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_008.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_009.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_009.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_011.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_011.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_012.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_012.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_013.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_013.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_014.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_014.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_015.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_015.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_018.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_018.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_021.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_021.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_022.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_022.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_023.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_023.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_024.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_024.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_025.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_025.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_026.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_026.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_027.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_027.c
+2
-2
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_029.c
...l/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_029.c
+2
-2
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_002.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_002.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_003.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_003.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_005.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_005.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_007.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_007.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_008.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_008.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_009.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_009.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_011.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_011.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_012.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_012.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_013.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_013.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_014.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_014.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_015.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_015.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_018.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_018.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_021.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_021.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_022.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_022.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_023.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_023.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_024.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_024.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_025.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_025.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_026.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_026.c
+2
-2
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_027.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_027.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_028.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_028.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_029.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_029.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_032.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_032.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_033.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_033.c
+1
-1
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_034.c
...ernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_034.c
+1
-1
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_013.c
...uites/kernel/sample/posix/mutex/full/It_posix_mutex_013.c
+1
-1
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_014.c
...uites/kernel/sample/posix/mutex/full/It_posix_mutex_014.c
+1
-1
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_017.c
...uites/kernel/sample/posix/mutex/full/It_posix_mutex_017.c
+1
-1
testsuites/kernel/sample/posix/pthread/full/It_posix_pthread_150.c
...s/kernel/sample/posix/pthread/full/It_posix_pthread_150.c
+1
-1
testsuites/kernel/src/iCunit.c
testsuites/kernel/src/iCunit.c
+1
-1
testsuites/kernel/src/osTest.c
testsuites/kernel/src/osTest.c
+1
-1
testsuites/unittest/basic/mem/shm/full/shm_test_001.cpp
testsuites/unittest/basic/mem/shm/full/shm_test_001.cpp
+1
-1
testsuites/unittest/basic/mem/vm/smoke/mremap_test_001.cpp
testsuites/unittest/basic/mem/vm/smoke/mremap_test_001.cpp
+1
-1
testsuites/unittest/common/osTest.cpp
testsuites/unittest/common/osTest.cpp
+1
-1
testsuites/unittest/extended/liteipc/liteipc.h
testsuites/unittest/extended/liteipc/liteipc.h
+2
-2
testsuites/unittest/extended/liteipc/smgr_demo.cpp
testsuites/unittest/extended/liteipc/smgr_demo.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_056.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_056.cpp
+8
-8
testsuites/unittest/fs/jffs/full/It_vfs_jffs_069.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_069.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_104.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_104.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_105.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_105.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_106.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_106.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_107.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_107.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_116.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_116.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_117.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_117.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_118.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_118.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_119.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_119.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_120.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_120.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_121.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_121.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_122.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_122.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_123.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_123.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_142.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_142.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_143.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_143.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_147.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_147.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_148.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_148.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_520.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_520.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_521.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_521.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_522.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_522.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_523.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_523.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_524.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_524.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_526.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_526.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_528.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_528.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_529.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_529.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_530.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_530.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_574.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_574.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_586.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_586.cpp
+1
-1
testsuites/unittest/fs/jffs/full/It_vfs_jffs_807.cpp
testsuites/unittest/fs/jffs/full/It_vfs_jffs_807.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_066.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_066.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_068.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_068.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_073.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_073.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_074.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_074.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_663.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_663.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_664.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_664.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_665.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_665.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_666.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_666.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_667.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_667.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_668.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_668.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_669.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_669.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_670.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_670.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_671.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_671.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_672.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_672.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_673.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_673.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_674.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_674.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_675.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_675.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_676.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_676.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_677.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_677.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_678.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_678.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_679.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_679.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_680.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_680.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_681.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_681.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_682.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_682.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_683.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_683.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_684.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_684.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_685.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_685.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_686.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_686.cpp
+3
-3
testsuites/unittest/fs/vfat/full/It_vfs_fat_687.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_687.cpp
+3
-3
testsuites/unittest/fs/vfat/full/It_vfs_fat_692.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_692.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_693.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_693.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_694.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_694.cpp
+1
-1
testsuites/unittest/fs/vfat/full/It_vfs_fat_870.cpp
testsuites/unittest/fs/vfat/full/It_vfs_fat_870.cpp
+1
-1
testsuites/unittest/fs/vfat/pressure/It_fs_fat_performance_013.cpp
...s/unittest/fs/vfat/pressure/It_fs_fat_performance_013.cpp
+1
-1
testsuites/unittest/fs/vfat/pressure/It_fs_fat_performance_014.cpp
...s/unittest/fs/vfat/pressure/It_fs_fat_performance_014.cpp
+1
-1
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_029.cpp
...ites/unittest/fs/vfat/pressure/It_fs_fat_pressure_029.cpp
+1
-1
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_030.cpp
...ites/unittest/fs/vfat/pressure/It_fs_fat_pressure_030.cpp
+1
-1
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_031.cpp
...ites/unittest/fs/vfat/pressure/It_fs_fat_pressure_031.cpp
+1
-1
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_038.cpp
...ites/unittest/fs/vfat/pressure/It_fs_fat_pressure_038.cpp
+1
-1
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_040.cpp
...ites/unittest/fs/vfat/pressure/It_fs_fat_pressure_040.cpp
+1
-1
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_041.cpp
...ites/unittest/fs/vfat/pressure/It_fs_fat_pressure_041.cpp
+1
-1
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_042.cpp
...ites/unittest/fs/vfat/pressure/It_fs_fat_pressure_042.cpp
+1
-1
testsuites/unittest/fs/vfat/smoke/It_vfs_fat_026.cpp
testsuites/unittest/fs/vfat/smoke/It_vfs_fat_026.cpp
+1
-1
testsuites/unittest/libc/posix/mqueue/full/It_posix_queue_043.cpp
...es/unittest/libc/posix/mqueue/full/It_posix_queue_043.cpp
+1
-1
tools/build/liteos.ld
tools/build/liteos.ld
+1
-1
tools/build/liteos_llvm.ld
tools/build/liteos_llvm.ld
+1
-1
未找到文件。
Kconfig
浏览文件 @
86be5408
...
@@ -265,7 +265,7 @@ config MEM_LEAKCHECK
...
@@ -265,7 +265,7 @@ config MEM_LEAKCHECK
default n
default n
depends on DEBUG_VERSION && MEM_DEBUG
depends on DEBUG_VERSION && MEM_DEBUG
help
help
Answer Y to enable record the LR of Function call stack of Mem operation, it can check the mem leak through the infomations of mem node.
Answer Y to enable record the LR of Function call stack of Mem operation, it can check the mem leak through the info
r
mations of mem node.
config BASE_MEM_NODE_INTEGRITY_CHECK
config BASE_MEM_NODE_INTEGRITY_CHECK
bool "Enable integrity check or not"
bool "Enable integrity check or not"
default n
default n
...
...
apps/shell/src/shcmd.c
浏览文件 @
86be5408
...
@@ -377,7 +377,7 @@ static int OsTabMatchFile(char *cmdKey, unsigned int *len)
...
@@ -377,7 +377,7 @@ static int OsTabMatchFile(char *cmdKey, unsigned int *len)
* Description: Pass in the string and clear useless space ,which include:
* Description: Pass in the string and clear useless space ,which include:
* 1) The overmatch space which is not be marked by Quote's area
* 1) The overmatch space which is not be marked by Quote's area
* Squeeze the overmatch space into one space
* Squeeze the overmatch space into one space
* 2) Clear all space before first valid chara
tcto
r
* 2) Clear all space before first valid chara
cte
r
* Input: cmdKey : Pass in the buff string, which is ready to be operated
* Input: cmdKey : Pass in the buff string, which is ready to be operated
* cmdOut : Pass out the buffer string ,which has already been operated
* cmdOut : Pass out the buffer string ,which has already been operated
* size : cmdKey length
* size : cmdKey length
...
@@ -406,17 +406,17 @@ unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size)
...
@@ -406,17 +406,17 @@ unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size)
/* Backup the 'output' start address */
/* Backup the 'output' start address */
outputBak
=
output
;
outputBak
=
output
;
/* Scan each charact
or in 'cmdKey',and squeeze the overmuch space and ignore invalid characto
r */
/* Scan each charact
er in 'cmdKey',and squeeze the overmuch space and ignore invalid characte
r */
for
(;
*
cmdKey
!=
'\0'
;
cmdKey
++
)
{
for
(;
*
cmdKey
!=
'\0'
;
cmdKey
++
)
{
/* Detected a Double Quotes, switch the matching status */
/* Detected a Double Quotes, switch the matching status */
if
(
*
(
cmdKey
)
==
'\"'
)
{
if
(
*
(
cmdKey
)
==
'\"'
)
{
SWITCH_QUOTES_STATUS
(
quotes
);
SWITCH_QUOTES_STATUS
(
quotes
);
}
}
/* Ignore the current charact
o
r in following situation */
/* Ignore the current charact
e
r in following situation */
/* 1) Quotes matching status is FALSE (which said that the space is not been marked by double quotes) */
/* 1) Quotes matching status is FALSE (which said that the space is not been marked by double quotes) */
/* 2) Current charact
o
r is a space */
/* 2) Current charact
e
r is a space */
/* 3) Next charact
o
r is a space too, or the string is been seeked to the end already(\0) */
/* 3) Next charact
e
r is a space too, or the string is been seeked to the end already(\0) */
/* 4) Invalid charact
o
r, such as single quotes */
/* 4) Invalid charact
e
r, such as single quotes */
if
((
*
cmdKey
==
' '
)
&&
((
*
(
cmdKey
+
1
)
==
' '
)
||
(
*
(
cmdKey
+
1
)
==
'\0'
))
&&
QUOTES_STATUS_CLOSE
(
quotes
))
{
if
((
*
cmdKey
==
' '
)
&&
((
*
(
cmdKey
+
1
)
==
' '
)
||
(
*
(
cmdKey
+
1
)
==
'\0'
))
&&
QUOTES_STATUS_CLOSE
(
quotes
))
{
continue
;
continue
;
}
}
...
@@ -430,7 +430,7 @@ unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size)
...
@@ -430,7 +430,7 @@ unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size)
/* Restore the 'output' start address */
/* Restore the 'output' start address */
output
=
outputBak
;
output
=
outputBak
;
len
=
strlen
(
output
);
len
=
strlen
(
output
);
/* Clear the space which is located at the first charact
o
r in buffer */
/* Clear the space which is located at the first charact
e
r in buffer */
if
(
*
output
==
' '
)
{
if
(
*
output
==
' '
)
{
output
++
;
output
++
;
len
--
;
len
--
;
...
...
apps/shell/src/shmsg.c
浏览文件 @
86be5408
...
@@ -334,12 +334,12 @@ char *GetCmdName(const char *cmdline, unsigned int len)
...
@@ -334,12 +334,12 @@ char *GetCmdName(const char *cmdline, unsigned int len)
/* If reach a double quotes, switch the quotes matching status */
/* If reach a double quotes, switch the quotes matching status */
if
(
*
tmpStr
==
'\"'
)
{
if
(
*
tmpStr
==
'\"'
)
{
SWITCH_QUOTES_STATUS
(
quotes
);
SWITCH_QUOTES_STATUS
(
quotes
);
/* Ignore the double quote charact
o
r itself */
/* Ignore the double quote charact
e
r itself */
tmpStr
++
;
tmpStr
++
;
continue
;
continue
;
}
}
/* If detected a space which the quotes matching status is false */
/* If detected a space which the quotes matching status is false */
/* which said has detected the first space for sep
e
rator, finish this scan operation */
/* which said has detected the first space for sep
a
rator, finish this scan operation */
if
((
*
tmpStr
==
' '
)
&&
(
QUOTES_STATUS_CLOSE
(
quotes
)))
{
if
((
*
tmpStr
==
' '
)
&&
(
QUOTES_STATUS_CLOSE
(
quotes
)))
{
break
;
break
;
}
}
...
@@ -503,7 +503,7 @@ unsigned int PreHandleCmdline(const char *input, char **output, unsigned int *ou
...
@@ -503,7 +503,7 @@ unsigned int PreHandleCmdline(const char *input, char **output, unsigned int *ou
*
output
=
shiftStr
;
*
output
=
shiftStr
;
*
outputlen
=
shiftLen
;
*
outputlen
=
shiftLen
;
/* Check and parse "./", located at the first two charaters of the cmd */
/* Check and parse "./", located at the first two chara
c
ters of the cmd */
if
((
shiftLen
>
removeLen
)
&&
(
shiftStr
[
0
]
==
'.'
)
&&
(
shiftStr
[
1
]
==
'/'
))
{
if
((
shiftLen
>
removeLen
)
&&
(
shiftStr
[
0
]
==
'.'
)
&&
(
shiftStr
[
1
]
==
'/'
))
{
execLen
=
strlen
(
execCmd
);
execLen
=
strlen
(
execCmd
);
newLen
=
execLen
+
shiftLen
-
removeLen
;
/* i.e., newLen - execLen == shiftLen - removeLen */
newLen
=
execLen
+
shiftLen
-
removeLen
;
/* i.e., newLen - execLen == shiftLen - removeLen */
...
...
apps/tftp/include/tftpc.h
浏览文件 @
86be5408
...
@@ -114,7 +114,7 @@ typedef enum tagTFTPC_OpCode {
...
@@ -114,7 +114,7 @@ typedef enum tagTFTPC_OpCode {
TFTPC_OP_RRQ
=
1
,
/* read request */
TFTPC_OP_RRQ
=
1
,
/* read request */
TFTPC_OP_WRQ
,
/* write request */
TFTPC_OP_WRQ
,
/* write request */
TFTPC_OP_DATA
,
/* data packet */
TFTPC_OP_DATA
,
/* data packet */
TFTPC_OP_ACK
,
/* acknowledg
e
ment */
TFTPC_OP_ACK
,
/* acknowledgment */
TFTPC_OP_ERROR
,
/* error code */
TFTPC_OP_ERROR
,
/* error code */
TFTPC_OP_OPT
/* option code */
TFTPC_OP_OPT
/* option code */
}
TFTPC_OPCODE_E
;
}
TFTPC_OPCODE_E
;
...
...
apps/tftp/src/main.c
浏览文件 @
86be5408
...
@@ -50,11 +50,11 @@ static char *TftpError[] = {
...
@@ -50,11 +50,11 @@ static char *TftpError[] = {
"Error while sending data to the peer
\n
"
,
"Error while sending data to the peer
\n
"
,
"Requested file is not found
\n
"
,
"Requested file is not found
\n
"
,
"This is the error sent by the server when hostname cannot be resolved
\n
"
,
"This is the error sent by the server when hostname cannot be resolved
\n
"
,
"Input paramters passed to TFTP interfaces are invalid
\n
"
,
"Input param
e
ters passed to TFTP interfaces are invalid
\n
"
,
"Error detected in TFTP packet or the error received from the TFTP server
\n
"
,
"Error detected in TFTP packet or the error received from the TFTP server
\n
"
,
"Error during packet synhronization while sending or unexpected packet is received
\n
"
,
"Error during packet synhronization while sending or unexpected packet is received
\n
"
,
"File size limit crossed, Max block can be 0xFFFF, each block containing 512 bytes
\n
"
,
"File size limit crossed, Max block can be 0xFFFF, each block containing 512 bytes
\n
"
,
"File name leng
ht
greater than 256
\n
"
,
"File name leng
th
greater than 256
\n
"
,
"Hostname IP is not valid
\n
"
,
"Hostname IP is not valid
\n
"
,
"TFTP server returned file access error
\n
"
,
"TFTP server returned file access error
\n
"
,
"TFTP server returned error signifying that the DISK is full to write
\n
"
,
"TFTP server returned error signifying that the DISK is full to write
\n
"
,
...
@@ -66,11 +66,11 @@ static char *TftpError[] = {
...
@@ -66,11 +66,11 @@ static char *TftpError[] = {
"File create error
\n
"
,
"File create error
\n
"
,
"File write error
\n
"
,
"File write error
\n
"
,
"Max time expired while waiting for file to be recived
\n
"
,
"Max time expired while waiting for file to be recived
\n
"
,
"Error when the received packet is less than 4bytes(error leng
ht
) or greater than 512bytes
\n
"
,
"Error when the received packet is less than 4bytes(error leng
th
) or greater than 512bytes
\n
"
,
"Returned by TFTP server for protocol user error
\n
"
,
"Returned by TFTP server for protocol user error
\n
"
,
"The destination file path length greater than 256
\n
"
,
"The destination file path length greater than 256
\n
"
,
"Returned by TFTP server for undefined transfer ID
\n
"
,
"Returned by TFTP server for undefined transfer ID
\n
"
,
"IOCTL fu
cn
tion failed at TFTP client while setting the socket to non-block
\n
"
,
"IOCTL fu
nc
tion failed at TFTP client while setting the socket to non-block
\n
"
,
};
};
#ifndef ARRAY_SIZE
#ifndef ARRAY_SIZE
...
...
apps/tftp/src/tftpc.c
浏览文件 @
86be5408
...
@@ -189,7 +189,7 @@ u32_t lwip_tftp_recv_from_server(s32_t iSockNum, u32_t *pulSize, TFTPC_PACKET_S
...
@@ -189,7 +189,7 @@ u32_t lwip_tftp_recv_from_server(s32_t iSockNum, u32_t *pulSize, TFTPC_PACKET_S
if
(
iRet
==
-
1
)
{
if
(
iRet
==
-
1
)
{
return
TFTPC_SELECT_ERROR
;
return
TFTPC_SELECT_ERROR
;
}
else
if
(
iRet
==
0
)
{
}
else
if
(
iRet
==
0
)
{
return
TFTPC_TIMEOUT_ERROR
;
/* Select timeout occured */
return
TFTPC_TIMEOUT_ERROR
;
/* Select timeout occur
r
ed */
}
}
if
(
!
FD_ISSET
(
iSockNum
,
&
stReadfds
))
{
if
(
!
FD_ISSET
(
iSockNum
,
&
stReadfds
))
{
...
@@ -268,7 +268,7 @@ u32_t lwip_tftp_recv_from_server(s32_t iSockNum, u32_t *pulSize, TFTPC_PACKET_S
...
@@ -268,7 +268,7 @@ u32_t lwip_tftp_recv_from_server(s32_t iSockNum, u32_t *pulSize, TFTPC_PACKET_S
*
pulSize
=
(
u32_t
)
iRet
;
*
pulSize
=
(
u32_t
)
iRet
;
/* If received packet is first block of data(for get operation) or if
/* If received packet is first block of data(for get operation) or if
received packet is acknowledg
e
ment for write request (put operation)
received packet is acknowledgment for write request (put operation)
store the received port number */
store the received port number */
if
(((
usOpcode
==
TFTPC_OP_DATA
)
&&
if
(((
usOpcode
==
TFTPC_OP_DATA
)
&&
(
ntohs
(
pstRecvBuf
->
u
.
stTFTP_Data
.
usBlknum
)
==
1
))
||
(
ntohs
(
pstRecvBuf
->
u
.
stTFTP_Data
.
usBlknum
)
==
1
))
||
...
@@ -687,7 +687,7 @@ u32_t lwip_tftp_get_file_by_filename(u32_t ulHostAddr,
...
@@ -687,7 +687,7 @@ u32_t lwip_tftp_get_file_by_filename(u32_t ulHostAddr,
ulErrCode
=
lwip_tftp_recv_from_server
(
iSockNum
,
&
ulRecvSize
,
pstRecvBuf
,
ulErrCode
=
lwip_tftp_recv_from_server
(
iSockNum
,
&
ulRecvSize
,
pstRecvBuf
,
&
ulIgnorePkt
,
&
stServerAddr
,
pstSendBuf
);
&
ulIgnorePkt
,
&
stServerAddr
,
pstSendBuf
);
/* If select timeout occured */
/* If select timeout occur
r
ed */
if
(
ulErrCode
==
TFTPC_TIMEOUT_ERROR
)
{
if
(
ulErrCode
==
TFTPC_TIMEOUT_ERROR
)
{
ulTotalTime
++
;
ulTotalTime
++
;
if
(
ulTotalTime
<
TFTPC_MAX_SEND_REQ_ATTEMPTS
)
{
if
(
ulTotalTime
<
TFTPC_MAX_SEND_REQ_ATTEMPTS
)
{
...
@@ -982,7 +982,7 @@ u32_t lwip_tftp_put_file_by_filename(u32_t ulHostAddr, u16_t usTftpServPort, u8_
...
@@ -982,7 +982,7 @@ u32_t lwip_tftp_put_file_by_filename(u32_t ulHostAddr, u16_t usTftpServPort, u8_
return
TFTPC_MEMALLOC_ERROR
;
return
TFTPC_MEMALLOC_ERROR
;
}
}
/* First time intialize the buffer */
/* First time in
i
tialize the buffer */
(
void
)
memset_s
((
void
*
)
pstSendBuf
,
sizeof
(
TFTPC_PACKET_S
),
0
,
sizeof
(
TFTPC_PACKET_S
));
(
void
)
memset_s
((
void
*
)
pstSendBuf
,
sizeof
(
TFTPC_PACKET_S
),
0
,
sizeof
(
TFTPC_PACKET_S
));
/* The destination path can only be one of the following:
/* The destination path can only be one of the following:
...
@@ -1221,7 +1221,7 @@ u32_t lwip_tftp_inner_put_file(s32_t iSockNum,
...
@@ -1221,7 +1221,7 @@ u32_t lwip_tftp_inner_put_file(s32_t iSockNum,
return
TFTPC_MEMALLOC_ERROR
;
return
TFTPC_MEMALLOC_ERROR
;
}
}
/* First time intialize the buffer */
/* First time in
i
tialize the buffer */
(
void
)
memset_s
((
void
*
)
pstRecvBuf
,
sizeof
(
TFTPC_PACKET_S
),
0
,
sizeof
(
TFTPC_PACKET_S
));
(
void
)
memset_s
((
void
*
)
pstRecvBuf
,
sizeof
(
TFTPC_PACKET_S
),
0
,
sizeof
(
TFTPC_PACKET_S
));
/* Initialize from address to the server address at first */
/* Initialize from address to the server address at first */
...
@@ -1235,7 +1235,7 @@ u32_t lwip_tftp_inner_put_file(s32_t iSockNum,
...
@@ -1235,7 +1235,7 @@ u32_t lwip_tftp_inner_put_file(s32_t iSockNum,
ulError
=
lwip_tftp_recv_from_server
(
iSockNum
,
&
ulPktSize
,
ulError
=
lwip_tftp_recv_from_server
(
iSockNum
,
&
ulPktSize
,
pstRecvBuf
,
&
ulIgnorePkt
,
pstRecvBuf
,
&
ulIgnorePkt
,
pstServerAddr
,
pstSendBuf
);
pstServerAddr
,
pstSendBuf
);
/* If select timeout occured */
/* If select timeout occur
r
ed */
if
(
ulError
==
TFTPC_TIMEOUT_ERROR
)
{
if
(
ulError
==
TFTPC_TIMEOUT_ERROR
)
{
ulTotalTime
++
;
ulTotalTime
++
;
if
(
ulTotalTime
<
TFTPC_MAX_SEND_REQ_ATTEMPTS
)
{
if
(
ulTotalTime
<
TFTPC_MAX_SEND_REQ_ATTEMPTS
)
{
...
@@ -1526,7 +1526,7 @@ u32_t lwip_tftp_get_file_by_filename_to_rawmem(u32_t ulHostAddr,
...
@@ -1526,7 +1526,7 @@ u32_t lwip_tftp_get_file_by_filename_to_rawmem(u32_t ulHostAddr,
ulErrCode
=
lwip_tftp_recv_from_server
(
iSockNum
,
&
ulRecvSize
,
pstRecvBuf
,
&
ulIgnorePkt
,
ulErrCode
=
lwip_tftp_recv_from_server
(
iSockNum
,
&
ulRecvSize
,
pstRecvBuf
,
&
ulIgnorePkt
,
&
stServerAddr
,
pstSendBuf
);
&
stServerAddr
,
pstSendBuf
);
/* If select timeout occured */
/* If select timeout occur
r
ed */
if
(
ulErrCode
==
TFTPC_TIMEOUT_ERROR
)
{
if
(
ulErrCode
==
TFTPC_TIMEOUT_ERROR
)
{
ulTotalTime
++
;
ulTotalTime
++
;
if
(
ulTotalTime
<
TFTPC_MAX_SEND_REQ_ATTEMPTS
)
{
if
(
ulTotalTime
<
TFTPC_MAX_SEND_REQ_ATTEMPTS
)
{
...
...
arch/arm/arm/include/los_atomic.h
浏览文件 @
86be5408
...
@@ -246,7 +246,7 @@ STATIC INLINE INT32 LOS_AtomicIncRet(Atomic *v)
...
@@ -246,7 +246,7 @@ STATIC INLINE INT32 LOS_AtomicIncRet(Atomic *v)
* @brief Atomic auto-decrement.
* @brief Atomic auto-decrement.
*
*
* @par Description:
* @par Description:
* This API is used to implement
ating
the atomic auto-decrement.
* This API is used to implement the atomic auto-decrement.
* @attention
* @attention
* <ul>
* <ul>
* <li>The pointer v must not be NULL.</li>
* <li>The pointer v must not be NULL.</li>
...
@@ -280,7 +280,7 @@ STATIC INLINE VOID LOS_AtomicDec(Atomic *v)
...
@@ -280,7 +280,7 @@ STATIC INLINE VOID LOS_AtomicDec(Atomic *v)
* @brief Atomic auto-decrement.
* @brief Atomic auto-decrement.
*
*
* @par Description:
* @par Description:
* This API is used to implement
ating
the atomic auto-decrement and return the result of auto-decrement.
* This API is used to implement the atomic auto-decrement and return the result of auto-decrement.
* @attention
* @attention
* <ul>
* <ul>
* <li>The pointer v must not be NULL.</li>
* <li>The pointer v must not be NULL.</li>
...
@@ -531,7 +531,7 @@ STATIC INLINE INT64 LOS_Atomic64IncRet(Atomic64 *v)
...
@@ -531,7 +531,7 @@ STATIC INLINE INT64 LOS_Atomic64IncRet(Atomic64 *v)
* @brief Atomic64 auto-decrement.
* @brief Atomic64 auto-decrement.
*
*
* @par Description:
* @par Description:
* This API is used to implement
ating
the atomic64 auto-decrement.
* This API is used to implement the atomic64 auto-decrement.
* @attention
* @attention
* <ul>
* <ul>
* <li>The pointer v must not be NULL.</li>
* <li>The pointer v must not be NULL.</li>
...
@@ -566,7 +566,7 @@ STATIC INLINE VOID LOS_Atomic64Dec(Atomic64 *v)
...
@@ -566,7 +566,7 @@ STATIC INLINE VOID LOS_Atomic64Dec(Atomic64 *v)
* @brief Atomic64 auto-decrement.
* @brief Atomic64 auto-decrement.
*
*
* @par Description:
* @par Description:
* This API is used to implement
ating
the atomic64 auto-decrement and return the result of auto-decrement.
* This API is used to implement the atomic64 auto-decrement and return the result of auto-decrement.
* @attention
* @attention
* <ul>
* <ul>
* <li>The pointer v must not be NULL.</li>
* <li>The pointer v must not be NULL.</li>
...
...
arch/arm/gic/gic_v2.c
浏览文件 @
86be5408
...
@@ -119,12 +119,12 @@ VOID HalIrqInit(VOID)
...
@@ -119,12 +119,12 @@ VOID HalIrqInit(VOID)
{
{
UINT32
i
;
UINT32
i
;
/* set extern
e
l interrupts to be level triggered, active low. */
/* set extern
a
l interrupts to be level triggered, active low. */
for
(
i
=
32
;
i
<
OS_HWI_MAX_NUM
;
i
+=
16
)
{
for
(
i
=
32
;
i
<
OS_HWI_MAX_NUM
;
i
+=
16
)
{
GIC_REG_32
(
GICD_ICFGR
(
i
/
16
))
=
0
;
GIC_REG_32
(
GICD_ICFGR
(
i
/
16
))
=
0
;
}
}
/* set extern
e
l interrupts to CPU 0 */
/* set extern
a
l interrupts to CPU 0 */
for
(
i
=
32
;
i
<
OS_HWI_MAX_NUM
;
i
+=
4
)
{
for
(
i
=
32
;
i
<
OS_HWI_MAX_NUM
;
i
+=
4
)
{
GIC_REG_32
(
GICD_ITARGETSR
(
i
/
4
))
=
0x01010101
;
GIC_REG_32
(
GICD_ITARGETSR
(
i
/
4
))
=
0x01010101
;
}
}
...
...
arch/arm/gic/gic_v3.c
浏览文件 @
86be5408
...
@@ -362,7 +362,7 @@ VOID HalIrqInit(VOID)
...
@@ -362,7 +362,7 @@ VOID HalIrqInit(VOID)
GicWaitForRwp
(
GICD_CTLR
);
GicWaitForRwp
(
GICD_CTLR
);
ISB
;
ISB
;
/* set extern
e
l interrupts to be level triggered, active low. */
/* set extern
a
l interrupts to be level triggered, active low. */
for
(
i
=
32
;
i
<
OS_HWI_MAX_NUM
;
i
+=
16
)
{
for
(
i
=
32
;
i
<
OS_HWI_MAX_NUM
;
i
+=
16
)
{
GIC_REG_32
(
GICD_ICFGR
(
i
/
16
))
=
0
;
GIC_REG_32
(
GICD_ICFGR
(
i
/
16
))
=
0
;
}
}
...
...
arch/arm/include/gic_common.h
浏览文件 @
86be5408
...
@@ -77,8 +77,8 @@ enum {
...
@@ -77,8 +77,8 @@ enum {
#define GICD_PIDR2V3 (GICD_OFFSET + 0xffe8)
#define GICD_PIDR2V3 (GICD_OFFSET + 0xffe8)
#ifdef LOSCFG_ARCH_GIC_V3
#ifdef LOSCFG_ARCH_GIC_V3
#define GICD_IGRPMODR(n) (GICD_OFFSET + 0x0d00 + (n) * 4)
/* Interrupt Group Mode Reisters */
#define GICD_IGRPMODR(n) (GICD_OFFSET + 0x0d00 + (n) * 4)
/* Interrupt Group Mode Re
g
isters */
#define GICD_IROUTER(n) (GICD_OFFSET + 0x6000 + (n) * 8)
/* Interrupt Rounter Reisters */
#define GICD_IROUTER(n) (GICD_OFFSET + 0x6000 + (n) * 8)
/* Interrupt Rounter Re
g
isters */
#endif
#endif
#define GIC_REG_8(reg) (*(volatile UINT8 *)((UINTPTR)(GIC_BASE_ADDR + (reg))))
#define GIC_REG_8(reg) (*(volatile UINT8 *)((UINTPTR)(GIC_BASE_ADDR + (reg))))
...
...
compat/posix/include/mqueue.h
浏览文件 @
86be5408
...
@@ -71,7 +71,7 @@ extern "C" {
...
@@ -71,7 +71,7 @@ extern "C" {
/* CONSTANTS */
/* CONSTANTS */
#define MQ_USE_MAGIC 0x89abcdef
#define MQ_USE_MAGIC 0x89abcdef
/* not supp
u
rt prio */
/* not supp
o
rt prio */
#define MQ_PRIO_MAX 1
#define MQ_PRIO_MAX 1
typedef
union
send_receive_t
{
typedef
union
send_receive_t
{
...
@@ -297,7 +297,7 @@ extern int mq_send(mqd_t personal, const char *msg, size_t msgLen, unsigned int
...
@@ -297,7 +297,7 @@ extern int mq_send(mqd_t personal, const char *msg, size_t msgLen, unsigned int
* <li><b>EAGAIN</b>: The message queue is empty.</li>
* <li><b>EAGAIN</b>: The message queue is empty.</li>
* <li><b>EINVAL</b>: invalid parameter.</li>
* <li><b>EINVAL</b>: invalid parameter.</li>
* <li><b>EMSGSIZE</b>: The message to be received is too long.</li>
* <li><b>EMSGSIZE</b>: The message to be received is too long.</li>
* <li><b>ETIMEDOUT</b>: The operaton times out.</li>
* <li><b>ETIMEDOUT</b>: The operat
i
on times out.</li>
* </ul>
* </ul>
*
*
* @par Dependency:
* @par Dependency:
...
...
compat/posix/src/time.c
浏览文件 @
86be5408
...
@@ -647,7 +647,7 @@ int clock_getres(clockid_t clockID, struct timespec *tp)
...
@@ -647,7 +647,7 @@ int clock_getres(clockid_t clockID, struct timespec *tp)
case
CLOCK_MONOTONIC_RAW
:
case
CLOCK_MONOTONIC_RAW
:
case
CLOCK_MONOTONIC
:
case
CLOCK_MONOTONIC
:
case
CLOCK_REALTIME
:
case
CLOCK_REALTIME
:
/* the access
a
ble rtc resolution */
/* the access
i
ble rtc resolution */
tp
->
tv_nsec
=
OS_SYS_NS_PER_US
;
/* the precision of clock_gettime is 1us */
tp
->
tv_nsec
=
OS_SYS_NS_PER_US
;
/* the precision of clock_gettime is 1us */
tp
->
tv_sec
=
0
;
tp
->
tv_sec
=
0
;
break
;
break
;
...
...
drivers/block/disk/include/disk.h
浏览文件 @
86be5408
...
@@ -253,7 +253,7 @@ struct disk_divide_info {
...
@@ -253,7 +253,7 @@ struct disk_divide_info {
* </ul>
* </ul>
*
*
* @param diskName [IN] Type #const CHAR * disk driver name.
* @param diskName [IN] Type #const CHAR * disk driver name.
* @param bops [IN] Type #const struct block_operations * block driver control st
ur
cture.
* @param bops [IN] Type #const struct block_operations * block driver control st
ru
cture.
* @param priv [IN] Type #VOID * private data of vnode.
* @param priv [IN] Type #VOID * private data of vnode.
* @param diskID [IN] Type #INT32 disk id number, less than SYS_MAX_DISK.
* @param diskID [IN] Type #INT32 disk id number, less than SYS_MAX_DISK.
* @param info [IN] Type #VOID * disk driver partition information.
* @param info [IN] Type #VOID * disk driver partition information.
...
@@ -712,7 +712,7 @@ INT32 los_alloc_diskid_byname(const CHAR *diskName);
...
@@ -712,7 +712,7 @@ INT32 los_alloc_diskid_byname(const CHAR *diskName);
* @brief get the INUSED disk id.
* @brief get the INUSED disk id.
*
*
* @par Description:
* @par Description:
* Get the correponding INUSED disk id by diskName.
* Get the corre
s
ponding INUSED disk id by diskName.
*
*
* @attention
* @attention
* <ul>
* <ul>
...
...
drivers/block/disk/src/disk.c
浏览文件 @
86be5408
...
@@ -107,7 +107,7 @@ INT32 los_alloc_diskid_byname(const CHAR *diskName)
...
@@ -107,7 +107,7 @@ INT32 los_alloc_diskid_byname(const CHAR *diskName)
size_t
nameLen
;
size_t
nameLen
;
if
(
diskName
==
NULL
)
{
if
(
diskName
==
NULL
)
{
PRINT_ERR
(
"The paramter disk_name is NULL"
);
PRINT_ERR
(
"The param
e
ter disk_name is NULL"
);
return
VFS_ERROR
;
return
VFS_ERROR
;
}
}
...
@@ -163,7 +163,7 @@ INT32 los_get_diskid_byname(const CHAR *diskName)
...
@@ -163,7 +163,7 @@ INT32 los_get_diskid_byname(const CHAR *diskName)
size_t
diskNameLen
;
size_t
diskNameLen
;
if
(
diskName
==
NULL
)
{
if
(
diskName
==
NULL
)
{
PRINT_ERR
(
"The paramter diskName is NULL"
);
PRINT_ERR
(
"The param
e
ter diskName is NULL"
);
return
VFS_ERROR
;
return
VFS_ERROR
;
}
}
...
@@ -756,7 +756,7 @@ INT32 DiskPartitionRegister(los_disk *disk)
...
@@ -756,7 +756,7 @@ INT32 DiskPartitionRegister(los_disk *disk)
los_part
*
part
=
NULL
;
los_part
*
part
=
NULL
;
struct
disk_divide_info
parInfo
;
struct
disk_divide_info
parInfo
;
/* Fill disk_divide_info structure to set partition's infomation. */
/* Fill disk_divide_info structure to set partition's info
r
mation. */
(
VOID
)
memset_s
(
parInfo
.
part
,
sizeof
(
parInfo
.
part
),
0
,
sizeof
(
parInfo
.
part
));
(
VOID
)
memset_s
(
parInfo
.
part
,
sizeof
(
parInfo
.
part
),
0
,
sizeof
(
parInfo
.
part
));
partSize
=
sizeof
(
parInfo
.
part
)
/
sizeof
(
parInfo
.
part
[
0
]);
partSize
=
sizeof
(
parInfo
.
part
)
/
sizeof
(
parInfo
.
part
[
0
]);
...
@@ -788,7 +788,7 @@ INT32 DiskPartitionRegister(los_disk *disk)
...
@@ -788,7 +788,7 @@ INT32 DiskPartitionRegister(los_disk *disk)
}
}
for
(
i
=
0
;
i
<
partSize
;
i
++
)
{
for
(
i
=
0
;
i
<
partSize
;
i
++
)
{
/* Read the disk_divide_info structure to get partition's infomation. */
/* Read the disk_divide_info structure to get partition's info
r
mation. */
if
((
parInfo
.
part
[
i
].
type
!=
0
)
&&
(
parInfo
.
part
[
i
].
type
!=
EXTENDED_PAR
)
&&
if
((
parInfo
.
part
[
i
].
type
!=
0
)
&&
(
parInfo
.
part
[
i
].
type
!=
EXTENDED_PAR
)
&&
(
parInfo
.
part
[
i
].
type
!=
EXTENDED_8G
))
{
(
parInfo
.
part
[
i
].
type
!=
EXTENDED_8G
))
{
part
=
get_part
(
DiskAddPart
(
disk
,
parInfo
.
part
[
i
].
sector_start
,
parInfo
.
part
[
i
].
sector_count
,
TRUE
));
part
=
get_part
(
DiskAddPart
(
disk
,
parInfo
.
part
[
i
].
sector_start
,
parInfo
.
part
[
i
].
sector_count
,
TRUE
));
...
...
drivers/mtd/multi_partition/src/mtd_partition.c
浏览文件 @
86be5408
...
@@ -289,7 +289,7 @@ static INT32 BlockDriverRegisterOperate(mtd_partition *newNode,
...
@@ -289,7 +289,7 @@ static INT32 BlockDriverRegisterOperate(mtd_partition *newNode,
if
(
ret
)
{
if
(
ret
)
{
free
(
newNode
->
blockdriver_name
);
free
(
newNode
->
blockdriver_name
);
newNode
->
blockdriver_name
=
NULL
;
newNode
->
blockdriver_name
=
NULL
;
PRINT_ERR
(
"register blkdev partion error
\n
"
);
PRINT_ERR
(
"register blkdev parti
ti
on error
\n
"
);
return
ret
;
return
ret
;
}
}
}
else
{
}
else
{
...
@@ -322,7 +322,7 @@ static INT32 CharDriverRegisterOperate(mtd_partition *newNode,
...
@@ -322,7 +322,7 @@ static INT32 CharDriverRegisterOperate(mtd_partition *newNode,
ret
=
register_driver
(
newNode
->
chardriver_name
,
param
->
char_ops
,
RWE_RW_RW
,
newNode
);
ret
=
register_driver
(
newNode
->
chardriver_name
,
param
->
char_ops
,
RWE_RW_RW
,
newNode
);
if
(
ret
)
{
if
(
ret
)
{
PRINT_ERR
(
"register chardev partion error
\n
"
);
PRINT_ERR
(
"register chardev parti
ti
on error
\n
"
);
free
(
newNode
->
chardriver_name
);
free
(
newNode
->
chardriver_name
);
newNode
->
chardriver_name
=
NULL
;
newNode
->
chardriver_name
=
NULL
;
return
ret
;
return
ret
;
...
@@ -340,7 +340,7 @@ static INT32 BlockDriverUnregister(mtd_partition *node)
...
@@ -340,7 +340,7 @@ static INT32 BlockDriverUnregister(mtd_partition *node)
if
(
node
->
blockdriver_name
!=
NULL
)
{
if
(
node
->
blockdriver_name
!=
NULL
)
{
ret
=
unregister_blockdriver
(
node
->
blockdriver_name
);
ret
=
unregister_blockdriver
(
node
->
blockdriver_name
);
if
(
ret
==
-
EBUSY
)
{
if
(
ret
==
-
EBUSY
)
{
PRINT_ERR
(
"unregister blkdev partion error:%d
\n
"
,
ret
);
PRINT_ERR
(
"unregister blkdev parti
ti
on error:%d
\n
"
,
ret
);
return
ret
;
return
ret
;
}
}
free
(
node
->
blockdriver_name
);
free
(
node
->
blockdriver_name
);
...
@@ -356,7 +356,7 @@ static INT32 CharDriverUnregister(mtd_partition *node)
...
@@ -356,7 +356,7 @@ static INT32 CharDriverUnregister(mtd_partition *node)
if
(
node
->
chardriver_name
!=
NULL
)
{
if
(
node
->
chardriver_name
!=
NULL
)
{
ret
=
unregister_driver
(
node
->
chardriver_name
);
ret
=
unregister_driver
(
node
->
chardriver_name
);
if
(
ret
==
-
EBUSY
)
{
if
(
ret
==
-
EBUSY
)
{
PRINT_ERR
(
"unregister chardev partion error:%d
\n
"
,
ret
);
PRINT_ERR
(
"unregister chardev parti
ti
on error:%d
\n
"
,
ret
);
return
ret
;
return
ret
;
}
}
free
(
node
->
chardriver_name
);
free
(
node
->
chardriver_name
);
...
...
fs/fat/virpart/src/virpartff.c
浏览文件 @
86be5408
...
@@ -319,7 +319,7 @@ FRESULT f_regvirfs(FATFS *fs)
...
@@ -319,7 +319,7 @@ FRESULT f_regvirfs(FATFS *fs)
/* Set the CHILD object field */
/* Set the CHILD object field */
for
(
i
=
0
;
i
<
fs
->
vir_amount
;
i
++
)
{
for
(
i
=
0
;
i
<
fs
->
vir_amount
;
i
++
)
{
pfs
=
ff_memalloc
(
sizeof
(
FATFS
));
/* Allocate a mem
e
ory for current child FATFS object */
pfs
=
ff_memalloc
(
sizeof
(
FATFS
));
/* Allocate a memory for current child FATFS object */
if
(
pfs
==
NULL
)
{
/* If allocate failed, must call 'f_unregvirfs' to free the previous FATFS object memory */
if
(
pfs
==
NULL
)
{
/* If allocate failed, must call 'f_unregvirfs' to free the previous FATFS object memory */
goto
ERROUT
;
goto
ERROUT
;
}
}
...
@@ -500,7 +500,7 @@ static void FatfsSetChildClst(BYTE *work, FATFS *fs, WORD i)
...
@@ -500,7 +500,7 @@ static void FatfsSetChildClst(BYTE *work, FATFS *fs, WORD i)
* - FR_OK : The external SD configure is complete, all info has been set to the
* - FR_OK : The external SD configure is complete, all info has been set to the
* each CHILD FATFS
* each CHILD FATFS
* - FR_NOT_MATCHED : The virtual partition's configure does not matched as current setting
* - FR_NOT_MATCHED : The virtual partition's configure does not matched as current setting
* - FR_MODIFIED : The virtual partition's configure has been dest
ori
ed partly or completely
* - FR_MODIFIED : The virtual partition's configure has been dest
roy
ed partly or completely
* - FR_NOVIRPART : The external SD has not been apllied as virtual partition yet
* - FR_NOVIRPART : The external SD has not been apllied as virtual partition yet
*
*
* Others Return Value:
* Others Return Value:
...
...
fs/proc/include/proc_fs.h
浏览文件 @
86be5408
...
@@ -60,7 +60,7 @@ typedef unsigned short fmode_t;
...
@@ -60,7 +60,7 @@ typedef unsigned short fmode_t;
#define FMODE_64BITHASH ((fmode_t)0x400)
#define FMODE_64BITHASH ((fmode_t)0x400)
/* 32bit hashes as llseek() offset (for directories) */
/* 32bit hashes as llseek() offset (for directories) */
#define FMODE_32BITHASH ((fmode_t)0x200)
#define FMODE_32BITHASH ((fmode_t)0x200)
/* File is opened using open(.., 3, ..) and is writ
e
able only for ioctls
/* File is opened using open(.., 3, ..) and is writable only for ioctls
* (specialy hack for floppy.c)
* (specialy hack for floppy.c)
*/
*/
#define FMODE_WRITE_IOCTL ((fmode_t)0x100)
#define FMODE_WRITE_IOCTL ((fmode_t)0x100)
...
...
fs/proc/src/proc_file.c
浏览文件 @
86be5408
...
@@ -87,7 +87,7 @@ static struct ProcDirEntry *ProcFindNode(struct ProcDirEntry *parent, const char
...
@@ -87,7 +87,7 @@ static struct ProcDirEntry *ProcFindNode(struct ProcDirEntry *parent, const char
}
}
/*
/*
* descrition: find the file's handle
* descri
p
tion: find the file's handle
* path: the file of fullpath
* path: the file of fullpath
* return: the file of handle
* return: the file of handle
* add by ll
* add by ll
...
...
fs/vfs/operation/vfs_other.c
浏览文件 @
86be5408
...
@@ -637,7 +637,7 @@ void ls(const char *pathname)
...
@@ -637,7 +637,7 @@ void ls(const char *pathname)
if
(
statInfo
.
st_mode
&
S_IFDIR
)
{
/* list all directory and file */
if
(
statInfo
.
st_mode
&
S_IFDIR
)
{
/* list all directory and file */
ret
=
LsDir
((
pathname
==
NULL
)
?
path
:
pathname
);
ret
=
LsDir
((
pathname
==
NULL
)
?
path
:
pathname
);
}
else
{
/* show the file infomation */
}
else
{
/* show the file info
r
mation */
ret
=
LsFile
(
path
);
ret
=
LsFile
(
path
);
}
}
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
...
...
kernel/base/core/los_swtmr.c
浏览文件 @
86be5408
...
@@ -407,7 +407,7 @@ LITE_OS_SEC_TEXT UINT32 OsSwtmrGetNextTimeout(VOID)
...
@@ -407,7 +407,7 @@ LITE_OS_SEC_TEXT UINT32 OsSwtmrGetNextTimeout(VOID)
/*
/*
* Description: Stop of Software Timer interface
* Description: Stop of Software Timer interface
* Input : swtmr --- the software timer contrl handler
* Input : swtmr --- the software timer contr
o
l handler
*/
*/
LITE_OS_SEC_TEXT
STATIC
VOID
OsSwtmrStop
(
SWTMR_CTRL_S
*
swtmr
)
LITE_OS_SEC_TEXT
STATIC
VOID
OsSwtmrStop
(
SWTMR_CTRL_S
*
swtmr
)
{
{
...
@@ -421,7 +421,7 @@ LITE_OS_SEC_TEXT STATIC VOID OsSwtmrStop(SWTMR_CTRL_S *swtmr)
...
@@ -421,7 +421,7 @@ LITE_OS_SEC_TEXT STATIC VOID OsSwtmrStop(SWTMR_CTRL_S *swtmr)
/*
/*
* Description: Get next software timer expiretime
* Description: Get next software timer expiretime
* Input : swtmr --- the software timer contrl handler
* Input : swtmr --- the software timer contr
o
l handler
*/
*/
LITE_OS_SEC_TEXT
STATIC
UINT32
OsSwtmrTimeGet
(
const
SWTMR_CTRL_S
*
swtmr
)
LITE_OS_SEC_TEXT
STATIC
UINT32
OsSwtmrTimeGet
(
const
SWTMR_CTRL_S
*
swtmr
)
{
{
...
...
kernel/base/core/los_task.c
浏览文件 @
86be5408
...
@@ -277,7 +277,7 @@ STATIC INLINE UINT32 OsTaskSyncWait(const LosTaskCB *taskCB)
...
@@ -277,7 +277,7 @@ STATIC INLINE UINT32 OsTaskSyncWait(const LosTaskCB *taskCB)
/*
/*
* gc soft timer works every OS_MP_GC_PERIOD period, to prevent this timer
* gc soft timer works every OS_MP_GC_PERIOD period, to prevent this timer
* triggered right at the timeout has reached, we set the timeout as double
* triggered right at the timeout has reached, we set the timeout as double
* of the gc per
oi
d.
* of the gc per
io
d.
*/
*/
if
(
LOS_SemPend
(
taskCB
->
syncSignal
,
OS_MP_GC_PERIOD
*
2
)
!=
LOS_OK
)
{
if
(
LOS_SemPend
(
taskCB
->
syncSignal
,
OS_MP_GC_PERIOD
*
2
)
!=
LOS_OK
)
{
ret
=
LOS_ERRNO_TSK_MP_SYNC_FAILED
;
ret
=
LOS_ERRNO_TSK_MP_SYNC_FAILED
;
...
...
kernel/base/include/los_sched_pri.h
浏览文件 @
86be5408
...
@@ -138,28 +138,28 @@ STATIC INLINE BOOL OsSchedIsLock(VOID)
...
@@ -138,28 +138,28 @@ STATIC INLINE BOOL OsSchedIsLock(VOID)
return
(
OsSchedRunQue
()
->
taskLockCnt
!=
0
);
return
(
OsSchedRunQue
()
->
taskLockCnt
!=
0
);
}
}
/* Check if preempt
a
ble with counter flag */
/* Check if preempt
i
ble with counter flag */
STATIC
INLINE
BOOL
OsPreemptable
(
VOID
)
STATIC
INLINE
BOOL
OsPreemptable
(
VOID
)
{
{
SchedRunQue
*
rq
=
OsSchedRunQue
();
SchedRunQue
*
rq
=
OsSchedRunQue
();
/*
/*
* Unlike OsPreemptableInSched, the int may be not disabled when OsPreemptable
* Unlike OsPreemptableInSched, the int may be not disabled when OsPreemptable
* is called, needs man
n
ually disable interrupt, to prevent current task from
* is called, needs manually disable interrupt, to prevent current task from
* being migrated to another core, and get the wrong preeptable status.
* being migrated to another core, and get the wrong pree
m
ptable status.
*/
*/
UINT32
intSave
=
LOS_IntLock
();
UINT32
intSave
=
LOS_IntLock
();
BOOL
preempt
a
ble
=
(
rq
->
taskLockCnt
==
0
);
BOOL
preempt
i
ble
=
(
rq
->
taskLockCnt
==
0
);
if
(
!
preempt
a
ble
)
{
if
(
!
preempt
i
ble
)
{
/* Set schedule flag if preemption is disabled */
/* Set schedule flag if preemption is disabled */
rq
->
schedFlag
|=
INT_PEND_RESCH
;
rq
->
schedFlag
|=
INT_PEND_RESCH
;
}
}
LOS_IntRestore
(
intSave
);
LOS_IntRestore
(
intSave
);
return
preempt
a
ble
;
return
preempt
i
ble
;
}
}
STATIC
INLINE
BOOL
OsPreemptableInSched
(
VOID
)
STATIC
INLINE
BOOL
OsPreemptableInSched
(
VOID
)
{
{
BOOL
preempt
a
ble
=
FALSE
;
BOOL
preempt
i
ble
=
FALSE
;
SchedRunQue
*
rq
=
OsSchedRunQue
();
SchedRunQue
*
rq
=
OsSchedRunQue
();
#ifdef LOSCFG_KERNEL_SMP
#ifdef LOSCFG_KERNEL_SMP
...
@@ -167,17 +167,17 @@ STATIC INLINE BOOL OsPreemptableInSched(VOID)
...
@@ -167,17 +167,17 @@ STATIC INLINE BOOL OsPreemptableInSched(VOID)
* For smp systems, schedule must hold the task spinlock, and this counter
* For smp systems, schedule must hold the task spinlock, and this counter
* will increase by 1 in that case.
* will increase by 1 in that case.
*/
*/
preempt
a
ble
=
(
rq
->
taskLockCnt
==
1
);
preempt
i
ble
=
(
rq
->
taskLockCnt
==
1
);
#else
#else
preempt
a
ble
=
(
rq
->
taskLockCnt
==
0
);
preempt
i
ble
=
(
rq
->
taskLockCnt
==
0
);
#endif
#endif
if
(
!
preempt
a
ble
)
{
if
(
!
preempt
i
ble
)
{
/* Set schedule flag if preemption is disabled */
/* Set schedule flag if preemption is disabled */
rq
->
schedFlag
|=
INT_PEND_RESCH
;
rq
->
schedFlag
|=
INT_PEND_RESCH
;
}
}
return
preempt
a
ble
;
return
preempt
i
ble
;
}
}
STATIC
INLINE
UINT32
OsSchedGetRunQueIdle
(
VOID
)
STATIC
INLINE
UINT32
OsSchedGetRunQueIdle
(
VOID
)
...
...
kernel/base/include/los_task_pri.h
浏览文件 @
86be5408
...
@@ -43,9 +43,9 @@ extern "C" {
...
@@ -43,9 +43,9 @@ extern "C" {
/**
/**
* @ingroup los_task
* @ingroup los_task
* Define task sig
i
nal types.
* Define task signal types.
*
*
* Task sig
i
nal types.
* Task signal types.
*/
*/
#define SIGNAL_NONE 0U
#define SIGNAL_NONE 0U
#define SIGNAL_KILL (1U << 0)
#define SIGNAL_KILL (1U << 0)
...
...
kernel/base/ipc/los_queue_debug.c
浏览文件 @
86be5408
...
@@ -82,7 +82,7 @@ VOID OsQueueDbgUpdate(UINT32 queueID, TSK_ENTRY_FUNC entry)
...
@@ -82,7 +82,7 @@ VOID OsQueueDbgUpdate(UINT32 queueID, TSK_ENTRY_FUNC entry)
STATIC
INLINE
VOID
OsQueueInfoOutPut
(
const
LosQueueCB
*
node
)
STATIC
INLINE
VOID
OsQueueInfoOutPut
(
const
LosQueueCB
*
node
)
{
{
PRINTK
(
"Queue ID <0x%x> may leak, queue len is 0x%x, "
PRINTK
(
"Queue ID <0x%x> may leak, queue len is 0x%x, "
"readable cnt:0x%x, writ
e
able cnt:0x%x, "
,
"readable cnt:0x%x, writable cnt:0x%x, "
,
node
->
queueID
,
node
->
queueID
,
node
->
queueLen
,
node
->
queueLen
,
node
->
readWriteableCnt
[
OS_QUEUE_READ
],
node
->
readWriteableCnt
[
OS_QUEUE_READ
],
...
...
kernel/base/mp/los_lockdep.c
浏览文件 @
86be5408
...
@@ -142,7 +142,7 @@ STATIC VOID OsLockDepDumpLock(const LosTaskCB *task, const SPIN_LOCK_S *lock,
...
@@ -142,7 +142,7 @@ STATIC VOID OsLockDepDumpLock(const LosTaskCB *task, const SPIN_LOCK_S *lock,
OsPrintLockDepInfo
(
"task name : %s
\n
"
,
temp
->
taskName
);
OsPrintLockDepInfo
(
"task name : %s
\n
"
,
temp
->
taskName
);
OsPrintLockDepInfo
(
"task id : %u
\n
"
,
temp
->
taskID
);
OsPrintLockDepInfo
(
"task id : %u
\n
"
,
temp
->
taskID
);
OsPrintLockDepInfo
(
"cpu num : %u
\n
"
,
temp
->
currCpu
);
OsPrintLockDepInfo
(
"cpu num : %u
\n
"
,
temp
->
currCpu
);
OsPrintLockDepInfo
(
"start dumping lockdep infomation
\n
"
);
OsPrintLockDepInfo
(
"start dumping lockdep info
r
mation
\n
"
);
for
(
i
=
0
;
i
<
lockDep
->
lockDepth
;
i
++
)
{
for
(
i
=
0
;
i
<
lockDep
->
lockDepth
;
i
++
)
{
if
(
lockDep
->
heldLocks
[
i
].
lockPtr
==
lock
)
{
if
(
lockDep
->
heldLocks
[
i
].
lockPtr
==
lock
)
{
OsPrintLockDepInfo
(
"[%d] %s <-- addr:0x%x
\n
"
,
i
,
LOCKDEP_GET_NAME
(
lockDep
,
i
),
OsPrintLockDepInfo
(
"[%d] %s <-- addr:0x%x
\n
"
,
i
,
LOCKDEP_GET_NAME
(
lockDep
,
i
),
...
...
kernel/base/vm/los_vm_syscall.c
浏览文件 @
86be5408
...
@@ -387,7 +387,7 @@ STATUS_T OsMremapCheck(VADDR_T addr, size_t oldLen, VADDR_T newAddr, size_t newL
...
@@ -387,7 +387,7 @@ STATUS_T OsMremapCheck(VADDR_T addr, size_t oldLen, VADDR_T newAddr, size_t newL
}
}
}
}
/* avoid new region overlaping with the old one */
/* avoid new region overlap
p
ing with the old one */
if
(
flags
&
MREMAP_FIXED
)
{
if
(
flags
&
MREMAP_FIXED
)
{
if
(((
region
->
range
.
base
+
region
->
range
.
size
)
>
newAddr
)
&&
if
(((
region
->
range
.
base
+
region
->
range
.
size
)
>
newAddr
)
&&
(
region
->
range
.
base
<
(
newAddr
+
newLen
)))
{
(
region
->
range
.
base
<
(
newAddr
+
newLen
)))
{
...
...
kernel/common/console.c
浏览文件 @
86be5408
...
@@ -88,7 +88,7 @@ INT32 GetFilepOps(const struct file *filep, struct file **privFilep, const struc
...
@@ -88,7 +88,7 @@ INT32 GetFilepOps(const struct file *filep, struct file **privFilep, const struc
goto
ERROUT
;
goto
ERROUT
;
}
}
/* to find console device's filep(now it is *privFilep) through
t
i_private */
/* to find console device's filep(now it is *privFilep) through i_private */
struct
drv_data
*
drv
=
(
struct
drv_data
*
)
filep
->
f_vnode
->
data
;
struct
drv_data
*
drv
=
(
struct
drv_data
*
)
filep
->
f_vnode
->
data
;
*
privFilep
=
(
struct
file
*
)
drv
->
priv
;
*
privFilep
=
(
struct
file
*
)
drv
->
priv
;
if
(((
*
privFilep
)
->
f_vnode
==
NULL
)
||
((
*
privFilep
)
->
f_vnode
->
data
==
NULL
))
{
if
(((
*
privFilep
)
->
f_vnode
==
NULL
)
||
((
*
privFilep
)
->
f_vnode
->
data
==
NULL
))
{
...
@@ -1073,7 +1073,7 @@ STATIC INT32 OsConsoleDevInit(CONSOLE_CB *consoleCB, const CHAR *deviceName)
...
@@ -1073,7 +1073,7 @@ STATIC INT32 OsConsoleDevInit(CONSOLE_CB *consoleCB, const CHAR *deviceName)
filep
->
f_path
=
NULL
;
filep
->
f_path
=
NULL
;
filep
->
f_priv
=
NULL
;
filep
->
f_priv
=
NULL
;
/*
/*
* Use filep to connect console and uart, we can find uart driver function through
t
filep.
* Use filep to connect console and uart, we can find uart driver function through filep.
* now we can operate /dev/console to operate /dev/ttyS0 through filep.
* now we can operate /dev/console to operate /dev/ttyS0 through filep.
*/
*/
devOps
=
(
struct
file_operations_vfs
*
)((
struct
drv_data
*
)
vnode
->
data
)
->
ops
;
devOps
=
(
struct
file_operations_vfs
*
)((
struct
drv_data
*
)
vnode
->
data
)
->
ops
;
...
...
kernel/extended/cpup/los_cpup.c
浏览文件 @
86be5408
...
@@ -288,8 +288,8 @@ LITE_OS_SEC_TEXT_MINOR STATIC VOID OsCpupGetPos(UINT16 mode, UINT16 *curPosPoint
...
@@ -288,8 +288,8 @@ LITE_OS_SEC_TEXT_MINOR STATIC VOID OsCpupGetPos(UINT16 mode, UINT16 *curPosPoint
curPos
=
CPUP_PRE_POS
(
tmpPos
);
curPos
=
CPUP_PRE_POS
(
tmpPos
);
/*
/*
* The current postion has nothing to do with the CPUP modes,
* The current pos
i
tion has nothing to do with the CPUP modes,
* however, the previous postion differs.
* however, the previous pos
i
tion differs.
*/
*/
switch
(
mode
)
{
switch
(
mode
)
{
case
CPUP_LAST_ONE_SECONDS
:
case
CPUP_LAST_ONE_SECONDS
:
...
...
kernel/extended/liteipc/hm_liteipc.c
浏览文件 @
86be5408
...
@@ -1161,7 +1161,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 LiteIpcRead(IpcContent *content)
...
@@ -1161,7 +1161,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 LiteIpcRead(IpcContent *content)
if
(
ret
==
LOS_OK
)
{
if
(
ret
==
LOS_OK
)
{
break
;
break
;
}
}
if
(
ret
==
-
ENOENT
)
{
/* It means that we've rec
ie
ved a failed reply */
if
(
ret
==
-
ENOENT
)
{
/* It means that we've rec
ei
ved a failed reply */
return
ret
;
return
ret
;
}
}
}
}
...
...
kernel/extended/liteipc/hm_liteipc.h
浏览文件 @
86be5408
...
@@ -150,8 +150,8 @@ typedef struct {
...
@@ -150,8 +150,8 @@ typedef struct {
VOID
*
data
;
VOID
*
data
;
UINT32
spObjNum
;
UINT32
spObjNum
;
VOID
*
offsets
;
VOID
*
offsets
;
UINT32
processID
;
/**< filled by kernel, processId of sender/rec
ie
ver */
UINT32
processID
;
/**< filled by kernel, processId of sender/rec
ei
ver */
UINT32
taskID
;
/**< filled by kernel, taskId of sender/rec
ie
ver */
UINT32
taskID
;
/**< filled by kernel, taskId of sender/rec
ei
ver */
#ifdef LOSCFG_SECURITY_CAPABILITY
#ifdef LOSCFG_SECURITY_CAPABILITY
UINT32
userID
;
UINT32
userID
;
UINT32
gid
;
UINT32
gid
;
...
...
kernel/extended/trace/los_trace_pri.h
浏览文件 @
86be5408
...
@@ -94,7 +94,7 @@ typedef struct {
...
@@ -94,7 +94,7 @@ typedef struct {
/**
/**
* @ingroup los_trace
* @ingroup los_trace
* struct to store the event infomation
* struct to store the event info
r
mation
*/
*/
typedef
struct
{
typedef
struct
{
UINT32
cmd
;
/* trace start or stop cmd */
UINT32
cmd
;
/* trace start or stop cmd */
...
...
kernel/extended/trace/trace_offline.c
浏览文件 @
86be5408
...
@@ -187,7 +187,7 @@ STATIC VOID OsTraceInfoEventData(VOID)
...
@@ -187,7 +187,7 @@ STATIC VOID OsTraceInfoEventData(VOID)
UINT32
taskLockCnt
=
frame
->
core
.
taskLockCnt
;
UINT32
taskLockCnt
=
frame
->
core
.
taskLockCnt
;
#ifdef LOSCFG_KERNEL_SMP
#ifdef LOSCFG_KERNEL_SMP
/*
/*
* For smp systems, TRACE_LOCK will requst taskLock, and this counter
* For smp systems, TRACE_LOCK will requ
e
st taskLock, and this counter
* will increase by 1 in that case.
* will increase by 1 in that case.
*/
*/
taskLockCnt
-=
1
;
taskLockCnt
-=
1
;
...
...
kernel/include/los_memory.h
浏览文件 @
86be5408
...
@@ -59,7 +59,7 @@ extern "C" {
...
@@ -59,7 +59,7 @@ extern "C" {
/**
/**
* @ingroup los_memory
* @ingroup los_memory
* The recored layers of function call.
* The recor
d
ed layers of function call.
*/
*/
#define LOS_RECORD_LR_CNT 3
#define LOS_RECORD_LR_CNT 3
#endif
#endif
...
@@ -101,11 +101,11 @@ extern UINT32 LOS_MemDeInit(VOID *pool);
...
@@ -101,11 +101,11 @@ extern UINT32 LOS_MemDeInit(VOID *pool);
/**
/**
* @ingroup los_memory
* @ingroup los_memory
* @brief Print infomation about all pools.
* @brief Print info
r
mation about all pools.
*
*
* @par Description:
* @par Description:
* <ul>
* <ul>
* <li>This API is used to print infomation about all pools.</li>
* <li>This API is used to print info
r
mation about all pools.</li>
* </ul>
* </ul>
*
*
* @retval #UINT32 The pool number.
* @retval #UINT32 The pool number.
...
@@ -351,11 +351,11 @@ extern UINT32 LOS_MemTotalUsedGet(VOID *pool);
...
@@ -351,11 +351,11 @@ extern UINT32 LOS_MemTotalUsedGet(VOID *pool);
/**
/**
* @ingroup los_memory
* @ingroup los_memory
* @brief Get the infomation of memory pool.
* @brief Get the info
r
mation of memory pool.
*
*
* @par Description:
* @par Description:
* <ul>
* <ul>
* <li>This API is used to get the infomation of memory pool.</li>
* <li>This API is used to get the info
r
mation of memory pool.</li>
* </ul>
* </ul>
* @attention
* @attention
* <ul>
* <ul>
...
@@ -366,7 +366,7 @@ extern UINT32 LOS_MemTotalUsedGet(VOID *pool);
...
@@ -366,7 +366,7 @@ extern UINT32 LOS_MemTotalUsedGet(VOID *pool);
* @param poolStatus [IN] A pointer for storage the pool status
* @param poolStatus [IN] A pointer for storage the pool status
*
*
* @retval #LOS_NOK The incoming parameter pool is NULL or invalid.
* @retval #LOS_NOK The incoming parameter pool is NULL or invalid.
* @retval #LOS_OK Success to get memory infomation.
* @retval #LOS_OK Success to get memory info
r
mation.
* @par Dependency:
* @par Dependency:
* <ul><li>los_memory.h: the header file that contains the API declaration.</li></ul>
* <ul><li>los_memory.h: the header file that contains the API declaration.</li></ul>
* @see None.
* @see None.
...
...
kernel/include/los_printf.h
浏览文件 @
86be5408
...
@@ -80,7 +80,7 @@ typedef VOID (*pf_OUTPUT)(const CHAR *fmt, ...);
...
@@ -80,7 +80,7 @@ typedef VOID (*pf_OUTPUT)(const CHAR *fmt, ...);
* <li>None</li>
* <li>None</li>
* </ul>
* </ul>
*
*
* @param fmt [IN] Type char* controls the ouput as in C printf.
* @param fmt [IN] Type char* controls the ou
t
put as in C printf.
*
*
* @retval None
* @retval None
* @par Dependency:
* @par Dependency:
...
...
kernel/include/los_rwlock.h
浏览文件 @
86be5408
...
@@ -184,7 +184,7 @@ extern UINT32 LOS_RwlockTryRdLock(LosRwlock *rwlock);
...
@@ -184,7 +184,7 @@ extern UINT32 LOS_RwlockTryRdLock(LosRwlock *rwlock);
* the task scheduling.</li>
* the task scheduling.</li>
* is disabled.</li>
* is disabled.</li>
* <li>Do not wait on a rwlock during an interrupt.</li>
* <li>Do not wait on a rwlock during an interrupt.</li>
* <li>The funtion fails when other tasks have the read or write lock.</li>
* <li>The fun
c
tion fails when other tasks have the read or write lock.</li>
* <li>A recursive rwlock can be locked more than once by the same thread.</li>
* <li>A recursive rwlock can be locked more than once by the same thread.</li>
* <li>Do not call this API in software timer callback. </li>
* <li>Do not call this API in software timer callback. </li>
* </ul>
* </ul>
...
@@ -218,7 +218,7 @@ extern UINT32 LOS_RwlockWrLock(LosRwlock *rwlock, UINT32 timeout);
...
@@ -218,7 +218,7 @@ extern UINT32 LOS_RwlockWrLock(LosRwlock *rwlock, UINT32 timeout);
* when the task scheduling.</li>
* when the task scheduling.</li>
* is disabled.</li>
* is disabled.</li>
* <li>Do not wait on a rwlock during an interrupt.</li>
* <li>Do not wait on a rwlock during an interrupt.</li>
* <li>The funtion fails when other tasks have the read or write lock.</li>
* <li>The fun
c
tion fails when other tasks have the read or write lock.</li>
* <li>A recursive rwlock can be locked more than once by the same thread.</li>
* <li>A recursive rwlock can be locked more than once by the same thread.</li>
* <li>Do not call this API in software timer callback. </li>
* <li>Do not call this API in software timer callback. </li>
* </ul>
* </ul>
...
...
kernel/include/los_task.h
浏览文件 @
86be5408
...
@@ -221,7 +221,7 @@ extern "C" {
...
@@ -221,7 +221,7 @@ extern "C" {
/**
/**
* @ingroup los_task
* @ingroup los_task
* Task error code: The task y
ei
ld occurs when the task is locked.
* Task error code: The task y
ie
ld occurs when the task is locked.
* Value: 0x0200020f
* Value: 0x0200020f
*
*
* Solution: Check the task.
* Solution: Check the task.
...
@@ -411,7 +411,7 @@ extern "C" {
...
@@ -411,7 +411,7 @@ extern "C" {
/**
/**
* @ingroup los_task
* @ingroup los_task
* Task error code: Task y
ei
ld in int is not permited, which will result in unexpected result.
* Task error code: Task y
ie
ld in int is not permited, which will result in unexpected result.
*
*
* Value: 0x02000224
* Value: 0x02000224
*
*
...
...
kernel/include/los_trace.h
浏览文件 @
86be5408
...
@@ -235,7 +235,7 @@ typedef struct {
...
@@ -235,7 +235,7 @@ typedef struct {
/**
/**
* @ingroup los_trace
* @ingroup los_trace
* struct to store the event infomation
* struct to store the event info
r
mation
*/
*/
typedef
struct
{
typedef
struct
{
UINT32
eventType
;
/**< event type */
UINT32
eventType
;
/**< event type */
...
@@ -377,8 +377,8 @@ extern TRACE_EVENT_HOOK g_traceEventHook;
...
@@ -377,8 +377,8 @@ extern TRACE_EVENT_HOOK g_traceEventHook;
#define QUEUE_CREATE_PARAMS(queueId, queueSz, itemSz, queueAddr, memType) \
#define QUEUE_CREATE_PARAMS(queueId, queueSz, itemSz, queueAddr, memType) \
queueId, queueSz, itemSz, queueAddr, memType
queueId, queueSz, itemSz, queueAddr, memType
#define QUEUE_DELETE_PARAMS(queueId, state, readable) queueId, state, readable
#define QUEUE_DELETE_PARAMS(queueId, state, readable) queueId, state, readable
#define QUEUE_RW_PARAMS(queueId, queueSize, bufSize, operateType, readable, writ
e
able, timeout) \
#define QUEUE_RW_PARAMS(queueId, queueSize, bufSize, operateType, readable, writable, timeout) \
queueId, queueSize, bufSize, operateType, readable, writ
e
able, timeout
queueId, queueSize, bufSize, operateType, readable, writable, timeout
#define SEM_CREATE_PARAMS(semId, type, count) semId, type, count
#define SEM_CREATE_PARAMS(semId, type, count) semId, type, count
#define SEM_DELETE_PARAMS(semId, delRetCode) semId, delRetCode
#define SEM_DELETE_PARAMS(semId, delRetCode) semId, delRetCode
...
...
net/lwip-2.1/enhancement/src/api_shell.c
浏览文件 @
86be5408
...
@@ -168,7 +168,7 @@ typedef struct ping6_stats {
...
@@ -168,7 +168,7 @@ typedef struct ping6_stats {
u32_t
max_rtt
;
u32_t
max_rtt
;
float
avg_rtt
;
float
avg_rtt
;
}
ping6_stats_t
;
}
ping6_stats_t
;
LWIP_STATIC
void
update_ping6_stats
(
ping6_stats_t
*
ping6_stats
,
u32_t
rtt
,
u32_t
nrec
ie
ved
);
LWIP_STATIC
void
update_ping6_stats
(
ping6_stats_t
*
ping6_stats
,
u32_t
rtt
,
u32_t
nrec
ei
ved
);
LWIP_STATIC
int
parse_args_ping6
(
int
argc
,
const
char
**
argv
,
ping6_args_t
*
ping6_params
);
LWIP_STATIC
int
parse_args_ping6
(
int
argc
,
const
char
**
argv
,
ping6_args_t
*
ping6_params
);
u32_t
osShellPing6
(
int
argc
,
const
char
**
argv
);
u32_t
osShellPing6
(
int
argc
,
const
char
**
argv
);
...
@@ -2086,7 +2086,7 @@ u32_t osShellPing6(int argc, const char **argv)
...
@@ -2086,7 +2086,7 @@ u32_t osShellPing6(int argc, const char **argv)
u16_t
icmpv6_seq
;
u16_t
icmpv6_seq
;
u32_t
nsent
;
u32_t
nsent
;
u32_t
nrecieve
;
u32_t
nrecieve
;
u32_t
last_rec
ie
ved
;
u32_t
last_rec
ei
ved
;
struct
timespec
start
,
end
,
start_in_reply
;
struct
timespec
start
,
end
,
start_in_reply
;
struct
timespec
first
,
last
;
struct
timespec
first
,
last
;
long
rtt
;
long
rtt
;
...
@@ -2170,7 +2170,7 @@ u32_t osShellPing6(int argc, const char **argv)
...
@@ -2170,7 +2170,7 @@ u32_t osShellPing6(int argc, const char **argv)
ping6_stats
.
avg_rtt
=
0
;
ping6_stats
.
avg_rtt
=
0
;
ping6_stats
.
max_rtt
=
0
;
ping6_stats
.
max_rtt
=
0
;
ping6_stats
.
min_rtt
=
0
;
ping6_stats
.
min_rtt
=
0
;
last_rec
ie
ved
=
LWIP_PING6_STARTING_SEQ_NUM
+
LWIP_PING6_OUT_OF_ORDER_MAGNITUDE
+
1
;
last_rec
ei
ved
=
LWIP_PING6_STARTING_SEQ_NUM
+
LWIP_PING6_OUT_OF_ORDER_MAGNITUDE
+
1
;
icmpv6_id
=
(
u16_t
)
LWIP_RAND
();
icmpv6_id
=
(
u16_t
)
LWIP_RAND
();
icmpv6_seq
=
LWIP_PING6_STARTING_SEQ_NUM
;
icmpv6_seq
=
LWIP_PING6_STARTING_SEQ_NUM
;
/* Setting the start time of the entire ping task for statistics */
/* Setting the start time of the entire ping task for statistics */
...
@@ -2181,7 +2181,7 @@ u32_t osShellPing6(int argc, const char **argv)
...
@@ -2181,7 +2181,7 @@ u32_t osShellPing6(int argc, const char **argv)
for
(
nsent
=
0
;
nsent
<
ping6_params
.
pingcount
;
nsent
++
)
{
for
(
nsent
=
0
;
nsent
<
ping6_params
.
pingcount
;
nsent
++
)
{
/* capture the start tick to calculate rtt */
/* capture the start tick to calculate rtt */
(
void
)
clock_gettime
(
CLOCK_MONOTONIC_RAW
,
&
start
);
(
void
)
clock_gettime
(
CLOCK_MONOTONIC_RAW
,
&
start
);
/* Initialize Memory To Prevent Unintialized Memory Read Write Issues */
/* Initialize Memory To Prevent Unin
i
tialized Memory Read Write Issues */
if
(
memset_s
(
pbuf_req
->
payload
,
pbuf_req
->
len
,
(
int
)(
start
.
tv_nsec
),
pbuf_req
->
len
)
!=
0
)
{
if
(
memset_s
(
pbuf_req
->
payload
,
pbuf_req
->
len
,
(
int
)(
start
.
tv_nsec
),
pbuf_req
->
len
)
!=
0
)
{
goto
exit
;
goto
exit
;
}
}
...
@@ -2253,14 +2253,14 @@ u32_t osShellPing6(int argc, const char **argv)
...
@@ -2253,14 +2253,14 @@ u32_t osShellPing6(int argc, const char **argv)
}
}
/* Accept and process only those delayed EREP only if its sequence num is within out-of-order magnitude */
/* Accept and process only those delayed EREP only if its sequence num is within out-of-order magnitude */
if
(
nsent
&&
iecho_resp
->
seqno
!=
icmpv6_seq
&&
if
(
nsent
&&
iecho_resp
->
seqno
!=
icmpv6_seq
&&
(
iecho_resp
->
seqno
<
(
u16_t
)(
last_rec
ie
ved
-
LWIP_PING6_OUT_OF_ORDER_MAGNITUDE
)
||
(
iecho_resp
->
seqno
<
(
u16_t
)(
last_rec
ei
ved
-
LWIP_PING6_OUT_OF_ORDER_MAGNITUDE
)
||
iecho_resp
->
seqno
>
(
u16_t
)(
iecho_resp
->
seqno
>
(
u16_t
)(
last_rec
ie
ved
+
LWIP_PING6_OUT_OF_ORDER_MAGNITUDE
)))
{
last_rec
ei
ved
+
LWIP_PING6_OUT_OF_ORDER_MAGNITUDE
)))
{
/* Otherwise drop it and wait for more packets */
/* Otherwise drop it and wait for more packets */
goto
REDUCE_SELECT_TIME
;
goto
REDUCE_SELECT_TIME
;
}
}
++
nrecieve
;
++
nrecieve
;
last_rec
ie
ved
=
iecho_resp
->
seqno
;
last_rec
ei
ved
=
iecho_resp
->
seqno
;
/* Retrieving the start_tick from the packet which was embedded when the request was transmitted */
/* Retrieving the start_tick from the packet which was embedded when the request was transmitted */
(
void
)
pbuf_header
(
pbuf_resp
,
(
s16_t
)(
-
(
s16_t
)(
sizeof
(
struct
icmp6_echo_hdr
))));
(
void
)
pbuf_header
(
pbuf_resp
,
(
s16_t
)(
-
(
s16_t
)(
sizeof
(
struct
icmp6_echo_hdr
))));
if
(
memcpy_s
((
void
*
)
&
start_in_reply
,
sizeof
(
start_in_reply
),
if
(
memcpy_s
((
void
*
)
&
start_in_reply
,
sizeof
(
start_in_reply
),
...
@@ -2314,7 +2314,7 @@ REDUCE_SELECT_TIME:
...
@@ -2314,7 +2314,7 @@ REDUCE_SELECT_TIME:
nsent
,
nrecieve
,
(
float
)(((
float
)(
nsent
-
nrecieve
))
*
((
float
)(
100
))
/
((
float
)(
nsent
))),
nsent
,
nrecieve
,
(
float
)(((
float
)(
nsent
-
nrecieve
))
*
((
float
)(
100
))
/
((
float
)(
nsent
))),
((
last
.
tv_sec
-
first
.
tv_sec
)
*
1000
+
(
last
.
tv_nsec
-
first
.
tv_nsec
)
/
1000000
));
((
last
.
tv_sec
-
first
.
tv_sec
)
*
1000
+
(
last
.
tv_nsec
-
first
.
tv_nsec
)
/
1000000
));
if
(
nrecieve
)
{
if
(
nrecieve
)
{
/* Display rtt stats only if atleast one packet is rec
ie
ved */
/* Display rtt stats only if atleast one packet is rec
ei
ved */
PRINTK
(
"rtt min/avg/max = %u/%.2f/%u ms
\n
"
,
ping6_stats
.
min_rtt
,
ping6_stats
.
avg_rtt
,
ping6_stats
.
max_rtt
);
PRINTK
(
"rtt min/avg/max = %u/%.2f/%u ms
\n
"
,
ping6_stats
.
min_rtt
,
ping6_stats
.
avg_rtt
,
ping6_stats
.
max_rtt
);
}
}
...
@@ -2550,7 +2550,7 @@ exit:
...
@@ -2550,7 +2550,7 @@ exit:
* Function to update ping6_stats
* Function to update ping6_stats
* stats is maintained in ping6_stats structure
* stats is maintained in ping6_stats structure
*/
*/
LWIP_STATIC
void
update_ping6_stats
(
ping6_stats_t
*
ping6_stats
,
u32_t
rtt
,
u32_t
nrec
ie
ved
)
LWIP_STATIC
void
update_ping6_stats
(
ping6_stats_t
*
ping6_stats
,
u32_t
rtt
,
u32_t
nrec
ei
ved
)
{
{
if
(
rtt
>
ping6_stats
->
max_rtt
)
{
if
(
rtt
>
ping6_stats
->
max_rtt
)
{
ping6_stats
->
max_rtt
=
rtt
;
ping6_stats
->
max_rtt
=
rtt
;
...
@@ -2562,7 +2562,7 @@ LWIP_STATIC void update_ping6_stats(ping6_stats_t *ping6_stats, u32_t rtt, u32_t
...
@@ -2562,7 +2562,7 @@ LWIP_STATIC void update_ping6_stats(ping6_stats_t *ping6_stats, u32_t rtt, u32_t
}
}
ping6_stats
->
avg_rtt
=
(
float
)(
ping6_stats
->
avg_rtt
+
ping6_stats
->
avg_rtt
=
(
float
)(
ping6_stats
->
avg_rtt
+
(
float
)((
float
)((
float
)
rtt
-
ping6_stats
->
avg_rtt
)
/
(
float
)(
nrec
ie
ved
)));
(
float
)((
float
)((
float
)
rtt
-
ping6_stats
->
avg_rtt
)
/
(
float
)(
nrec
ei
ved
)));
}
}
LWIP_STATIC
const
char
*
convert_icmpv6_err_to_string
(
u8_t
err_type
)
LWIP_STATIC
const
char
*
convert_icmpv6_err_to_string
(
u8_t
err_type
)
...
...
net/lwip-2.1/porting/src/driverif.c
浏览文件 @
86be5408
...
@@ -88,7 +88,7 @@ driverif_init_ifname(struct netif *netif)
...
@@ -88,7 +88,7 @@ driverif_init_ifname(struct netif *netif)
*
*
* @note Returning ERR_MEM here if a DMA queue of your MAC is full can lead to
* @note Returning ERR_MEM here if a DMA queue of your MAC is full can lead to
* strange results. You might consider waiting for space in the DMA queue
* strange results. You might consider waiting for space in the DMA queue
* to become availale since the stack doesn't retry to send a packet
* to become availa
b
le since the stack doesn't retry to send a packet
* dropped because of memory failure (except for the TCP timers).
* dropped because of memory failure (except for the TCP timers).
*/
*/
...
...
net/lwip-2.1/porting/src/sys_arch.c
浏览文件 @
86be5408
...
@@ -84,7 +84,7 @@ void sys_init(void)
...
@@ -84,7 +84,7 @@ void sys_init(void)
u32_t
sys_now
(
void
)
u32_t
sys_now
(
void
)
{
{
/* Lwip docs mentioned like wraparound is not a problem in this funtion */
/* Lwip docs mentioned like wraparound is not a problem in this fun
c
tion */
return
(
u32_t
)((
LOS_TickCountGet
()
*
OS_SYS_MS_PER_SECOND
)
/
LOSCFG_BASE_CORE_TICK_PER_SECOND
);
return
(
u32_t
)((
LOS_TickCountGet
()
*
OS_SYS_MS_PER_SECOND
)
/
LOSCFG_BASE_CORE_TICK_PER_SECOND
);
}
}
...
...
net/telnet/src/telnet_loop.c
浏览文件 @
86be5408
...
@@ -427,7 +427,7 @@ STATIC INT32 TelnetdAcceptClient(INT32 clientFd, const struct sockaddr_in *inTel
...
@@ -427,7 +427,7 @@ STATIC INT32 TelnetdAcceptClient(INT32 clientFd, const struct sockaddr_in *inTel
}
}
if
(
g_telnetClientFd
>=
0
)
{
if
(
g_telnetClientFd
>=
0
)
{
/* alreay connected and support only one */
/* alrea
d
y connected and support only one */
goto
ERROUT_UNLOCK
;
goto
ERROUT_UNLOCK
;
}
}
...
...
shell/full/include/shell_lk.h
浏览文件 @
86be5408
...
@@ -62,7 +62,7 @@ extern "C" {
...
@@ -62,7 +62,7 @@ extern "C" {
* @param level [IN] print level.
* @param level [IN] print level.
* @param func [IN] means which func calls print func.
* @param func [IN] means which func calls print func.
* @param line [IN] means which line calls print func.
* @param line [IN] means which line calls print func.
* @param fmt [IN] other infomation by user define.
* @param fmt [IN] other info
r
mation by user define.
* @param ap [IN] the para list.
* @param ap [IN] the para list.
*
*
* @retval None.
* @retval None.
...
@@ -85,7 +85,7 @@ typedef VOID (*LK_FUNC)(INT32 level, const CHAR *func, INT32 line, const CHAR *f
...
@@ -85,7 +85,7 @@ typedef VOID (*LK_FUNC)(INT32 level, const CHAR *func, INT32 line, const CHAR *f
* @param level [IN] print level.
* @param level [IN] print level.
* @param func [IN] means which func calls print func.
* @param func [IN] means which func calls print func.
* @param line [IN] means which line calls print func.
* @param line [IN] means which line calls print func.
* @param fmt [IN] other infomation by user define
* @param fmt [IN] other info
r
mation by user define
*
*
* @retval NONE
* @retval NONE
* @par Dependency:
* @par Dependency:
...
...
shell/full/src/base/shcmd.c
浏览文件 @
86be5408
...
@@ -424,7 +424,7 @@ STATIC INT32 OsTabMatchFile(CHAR *cmdKey, UINT32 *len)
...
@@ -424,7 +424,7 @@ STATIC INT32 OsTabMatchFile(CHAR *cmdKey, UINT32 *len)
* Description: Pass in the string and clear useless space, which include:
* Description: Pass in the string and clear useless space, which include:
* 1) The overmatch space which is not be marked by Quote's area
* 1) The overmatch space which is not be marked by Quote's area
* Squeeze the overmatch space into one space
* Squeeze the overmatch space into one space
* 2) Clear all space before first valid chara
tcto
r
* 2) Clear all space before first valid chara
cte
r
* Input: cmdKey : Pass in the buff string, which is ready to be operated
* Input: cmdKey : Pass in the buff string, which is ready to be operated
* cmdOut : Pass out the buffer string ,which has already been operated
* cmdOut : Pass out the buffer string ,which has already been operated
* size : cmdKey length
* size : cmdKey length
...
@@ -452,17 +452,17 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UI
...
@@ -452,17 +452,17 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UI
}
}
/* Backup the 'output' start address */
/* Backup the 'output' start address */
outputBak
=
output
;
outputBak
=
output
;
/* Scan each charact
or in 'cmdKey',and squeeze the overmuch space and ignore invalid characto
r */
/* Scan each charact
er in 'cmdKey',and squeeze the overmuch space and ignore invalid characte
r */
for
(;
*
cmdKey
!=
'\0'
;
cmdKey
++
)
{
for
(;
*
cmdKey
!=
'\0'
;
cmdKey
++
)
{
/* Detected a Double Quotes, switch the matching status */
/* Detected a Double Quotes, switch the matching status */
if
(
*
(
cmdKey
)
==
'\"'
)
{
if
(
*
(
cmdKey
)
==
'\"'
)
{
SWITCH_QUOTES_STATUS
(
quotes
);
SWITCH_QUOTES_STATUS
(
quotes
);
}
}
/* Ignore the current charact
o
r in following situation */
/* Ignore the current charact
e
r in following situation */
/* 1) Quotes matching status is FALSE (which said that the space is not been marked by double quotes) */
/* 1) Quotes matching status is FALSE (which said that the space is not been marked by double quotes) */
/* 2) Current charact
o
r is a space */
/* 2) Current charact
e
r is a space */
/* 3) Next charact
o
r is a space too, or the string is been seeked to the end already(\0) */
/* 3) Next charact
e
r is a space too, or the string is been seeked to the end already(\0) */
/* 4) Invalid charact
o
r, such as single quotes */
/* 4) Invalid charact
e
r, such as single quotes */
if
((
*
cmdKey
==
' '
)
&&
((
*
(
cmdKey
+
1
)
==
' '
)
||
(
*
(
cmdKey
+
1
)
==
'\0'
))
&&
QUOTES_STATUS_CLOSE
(
quotes
))
{
if
((
*
cmdKey
==
' '
)
&&
((
*
(
cmdKey
+
1
)
==
' '
)
||
(
*
(
cmdKey
+
1
)
==
'\0'
))
&&
QUOTES_STATUS_CLOSE
(
quotes
))
{
continue
;
continue
;
}
}
...
@@ -476,7 +476,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UI
...
@@ -476,7 +476,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UI
/* Restore the 'output' start address */
/* Restore the 'output' start address */
output
=
outputBak
;
output
=
outputBak
;
len
=
strlen
(
output
);
len
=
strlen
(
output
);
/* Clear the space which is located at the first charact
o
r in buffer */
/* Clear the space which is located at the first charact
e
r in buffer */
if
(
*
outputBak
==
' '
)
{
if
(
*
outputBak
==
' '
)
{
output
++
;
output
++
;
len
--
;
len
--
;
...
...
shell/full/src/base/shmsg.c
浏览文件 @
86be5408
...
@@ -250,7 +250,7 @@ STATIC UINT32 ShellMsgNameGetAndExec(CmdParsed *cmdParsed, const CHAR *output, U
...
@@ -250,7 +250,7 @@ STATIC UINT32 ShellMsgNameGetAndExec(CmdParsed *cmdParsed, const CHAR *output, U
continue
;
continue
;
}
}
/* If detected a space which the quotes matching status is false */
/* If detected a space which the quotes matching status is false */
/* which said has detected the first space for sep
e
rator, finish this scan operation */
/* which said has detected the first space for sep
a
rator, finish this scan operation */
if
((
*
tmpStr
==
' '
)
&&
(
QUOTES_STATUS_CLOSE
(
quotes
)))
{
if
((
*
tmpStr
==
' '
)
&&
(
QUOTES_STATUS_CLOSE
(
quotes
)))
{
break
;
break
;
}
}
...
...
syscall/los_syscall.h
浏览文件 @
86be5408
...
@@ -269,7 +269,7 @@ extern int SysFstatfs64(int fd, size_t sz, struct statfs *buf);
...
@@ -269,7 +269,7 @@ extern int SysFstatfs64(int fd, size_t sz, struct statfs *buf);
extern
int
SysStat
(
const
char
*
path
,
struct
kstat
*
buf
);
extern
int
SysStat
(
const
char
*
path
,
struct
kstat
*
buf
);
extern
int
SysLstat
(
const
char
*
path
,
struct
kstat
*
buffer
);
extern
int
SysLstat
(
const
char
*
path
,
struct
kstat
*
buffer
);
extern
int
SysFstat
(
int
fi
lde
s
,
struct
kstat
*
buf
);
extern
int
SysFstat
(
int
fi
eld
s
,
struct
kstat
*
buf
);
extern
int
SysStatx
(
int
fd
,
const
char
*
restrict
path
,
int
flag
,
unsigned
mask
,
struct
statx
*
restrict
stx
);
extern
int
SysStatx
(
int
fd
,
const
char
*
restrict
path
,
int
flag
,
unsigned
mask
,
struct
statx
*
restrict
stx
);
extern
int
SysFsync
(
int
fd
);
extern
int
SysFsync
(
int
fd
);
extern
ssize_t
SysReadv
(
int
fd
,
const
struct
iovec
*
iov
,
int
iovcnt
);
extern
ssize_t
SysReadv
(
int
fd
,
const
struct
iovec
*
iov
,
int
iovcnt
);
...
...
testsuites/kernel/sample/kernel_base/core/hwi/smp/It_smp_los_hwi_006.c
浏览文件 @
86be5408
...
@@ -82,7 +82,7 @@ static UINT32 Testcase(void)
...
@@ -82,7 +82,7 @@ static UINT32 Testcase(void)
TestHwiTrigger
(
HWI_NUM_TEST
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
1
,
g_testCount
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
g_testCount
,
1
,
g_testCount
,
EXIT
);
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/core/hwi/smp/It_smp_los_hwi_ipi_007.c
浏览文件 @
86be5408
...
@@ -109,7 +109,7 @@ static UINT32 Testcase(void)
...
@@ -109,7 +109,7 @@ static UINT32 Testcase(void)
LOS_TaskDelay
(
1
);
LOS_TaskDelay
(
1
);
PRINTK
(
"sent %u time
\n
"
,
g_ipiTriggerTimes
);
PRINTK
(
"sent %u time
\n
"
,
g_ipiTriggerTimes
);
for
(
i
=
0
;
i
<
LOSCFG_KERNEL_CORE_NUM
;
i
++
)
{
for
(
i
=
0
;
i
<
LOSCFG_KERNEL_CORE_NUM
;
i
++
)
{
PRINTK
(
" cpu%d rec
ie
ved %u times
\n
"
,
i
,
g_ipiRecieveTimes
[
i
]);
PRINTK
(
" cpu%d rec
ei
ved %u times
\n
"
,
i
,
g_ipiRecieveTimes
[
i
]);
}
}
ICUNIT_GOTO_EQUAL
(
g_testCount
,
LOSCFG_KERNEL_CORE_NUM
*
(
j
+
1
),
g_testCount
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
g_testCount
,
LOSCFG_KERNEL_CORE_NUM
*
(
j
+
1
),
g_testCount
,
EXIT
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_023.c
浏览文件 @
86be5408
...
@@ -62,7 +62,7 @@ static UINT32 Testcase(void)
...
@@ -62,7 +62,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
/* Wait TaskF01 to start */
/* Wait TaskF01 to start */
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
ret
=
OS_TCB_FROM_TID
(
testid
)
->
taskStatus
;
ret
=
OS_TCB_FROM_TID
(
testid
)
->
taskStatus
;
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_026.c
浏览文件 @
86be5408
...
@@ -74,7 +74,7 @@ static UINT32 Testcase(void)
...
@@ -74,7 +74,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
/* Wait TaskF1 to start */
/* Wait TaskF1 to start */
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
1
,
g_testCount
);
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
1
,
g_testCount
);
/* lower down the priority of TaskF01 to trigger preeption */
/* lower down the priority of TaskF01 to trigger preeption */
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_040.c
浏览文件 @
86be5408
...
@@ -63,7 +63,7 @@ static UINT32 Testcase(void)
...
@@ -63,7 +63,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
}
}
/* wait for task to y
ei
ld */
/* wait for task to y
ie
ld */
TestBusyTaskDelay
(
LOSCFG_BASE_CORE_TIMESLICE_TIMEOUT
*
2
);
// 2, used to calculate delay time
TestBusyTaskDelay
(
LOSCFG_BASE_CORE_TIMESLICE_TIMEOUT
*
2
);
// 2, used to calculate delay time
ICUNIT_GOTO_EQUAL
(
g_testCount
,
LOSCFG_KERNEL_CORE_NUM
,
g_testCount
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
g_testCount
,
LOSCFG_KERNEL_CORE_NUM
,
g_testCount
,
EXIT
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_061.c
浏览文件 @
86be5408
...
@@ -66,7 +66,7 @@ static UINT32 Testcase(void)
...
@@ -66,7 +66,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
@@ -91,7 +91,7 @@ static UINT32 Testcase(void)
...
@@ -91,7 +91,7 @@ static UINT32 Testcase(void)
ret
=
LOS_SemPost
(
g_semID
);
ret
=
LOS_SemPost
(
g_semID
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_063.c
浏览文件 @
86be5408
...
@@ -70,7 +70,7 @@ static UINT32 Testcase(void)
...
@@ -70,7 +70,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
/* Wait TaskF01 to start */
/* Wait TaskF01 to start */
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, assert that g_testCount is equal to this.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, assert that g_testCount is equal to this.
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_065.c
浏览文件 @
86be5408
...
@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
...
@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_067.c
浏览文件 @
86be5408
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(void)
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(void)
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
/* Wait TaskF01 to start */
/* Wait TaskF01 to start */
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_069.c
浏览文件 @
86be5408
...
@@ -82,7 +82,7 @@ static UINT32 Testcase(void)
...
@@ -82,7 +82,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_072.c
浏览文件 @
86be5408
...
@@ -66,7 +66,7 @@ static UINT32 Testcase(void)
...
@@ -66,7 +66,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
/* wait for other core's task being schduled */
/* wait for other core's task being schduled */
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
ret
=
OS_TCB_FROM_TID
(
g_testTaskID01
)
->
taskStatus
;
ret
=
OS_TCB_FROM_TID
(
g_testTaskID01
)
->
taskStatus
;
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_075.c
浏览文件 @
86be5408
...
@@ -83,7 +83,7 @@ static UINT32 Testcase(void)
...
@@ -83,7 +83,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_077.c
浏览文件 @
86be5408
...
@@ -73,7 +73,7 @@ static UINT32 Testcase(void)
...
@@ -73,7 +73,7 @@ static UINT32 Testcase(void)
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
/* wait for other core's task being scheduled */
/* wait for other core's task being scheduled */
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
@@ -98,7 +98,7 @@ static UINT32 Testcase(void)
...
@@ -98,7 +98,7 @@ static UINT32 Testcase(void)
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
/* wait for other core's task executed */
/* wait for other core's task executed */
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count
TestBusyTaskDelay
(
4
);
// 4, set delay time
TestBusyTaskDelay
(
4
);
// 4, set delay time
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_089.c
浏览文件 @
86be5408
...
@@ -81,7 +81,7 @@ static UINT32 Testcase(void)
...
@@ -81,7 +81,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_091.c
浏览文件 @
86be5408
...
@@ -67,7 +67,7 @@ static UINT32 Testcase(void)
...
@@ -67,7 +67,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(void)
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(void)
ret
=
LOS_SemPost
(
g_semID
);
ret
=
LOS_SemPost
(
g_semID
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_093.c
浏览文件 @
86be5408
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(void)
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
@@ -116,7 +116,7 @@ static UINT32 Testcase(void)
...
@@ -116,7 +116,7 @@ static UINT32 Testcase(void)
ret
=
LOS_SemPost
(
g_semID
);
ret
=
LOS_SemPost
(
g_semID
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
5
);
// 100, Set the timeout of runtime; 5, test runing count
TestAssertBusyTaskDelay
(
100
,
5
);
// 100, Set the timeout of runtime; 5, test run
n
ing count
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
5
,
g_testCount
);
// 5, assert that g_testCount is equal to this.
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
5
,
g_testCount
);
// 5, assert that g_testCount is equal to this.
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_096.c
浏览文件 @
86be5408
...
@@ -78,7 +78,7 @@ static UINT32 Testcase(void)
...
@@ -78,7 +78,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
2
,
g_testCount
);
// 2, assert that g_testCount is equal to this.
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
2
,
g_testCount
);
// 2, assert that g_testCount is equal to this.
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_097.c
浏览文件 @
86be5408
...
@@ -81,7 +81,7 @@ static UINT32 Testcase(void)
...
@@ -81,7 +81,7 @@ static UINT32 Testcase(void)
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
/* Wait other core's TaskF01 to resume */
/* Wait other core's TaskF01 to resume */
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_101.c
浏览文件 @
86be5408
...
@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
...
@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
@@ -111,7 +111,7 @@ static UINT32 Testcase(void)
...
@@ -111,7 +111,7 @@ static UINT32 Testcase(void)
/* unlock other core's tasklock */
/* unlock other core's tasklock */
g_flag
=
1
;
g_flag
=
1
;
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_102.c
浏览文件 @
86be5408
...
@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
...
@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
/* wait for other core's task to suspend */
/* wait for other core's task to suspend */
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
@@ -99,7 +99,7 @@ static UINT32 Testcase(void)
...
@@ -99,7 +99,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
/* wait for other core's task being running */
/* wait for other core's task being running */
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
10
);
// 10, set delay time
TestBusyTaskDelay
(
10
);
// 10, set delay time
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, assert that g_testCount is equal to this.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, assert that g_testCount is equal to this.
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_106.c
浏览文件 @
86be5408
...
@@ -68,7 +68,7 @@ static UINT32 Testcase(void)
...
@@ -68,7 +68,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
// 2, set delay time.
// 2, set delay time.
TestBusyTaskDelay
(
2
);
TestBusyTaskDelay
(
2
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_130.c
浏览文件 @
86be5408
...
@@ -93,7 +93,7 @@ static UINT32 Testcase(void)
...
@@ -93,7 +93,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskYield
();
ret
=
LOS_TaskYield
();
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
ret
,
LOS_OK
,
ret
,
EXIT
);
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, assert that g_testCount is equal to this.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, assert that g_testCount is equal to this.
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_137.c
浏览文件 @
86be5408
...
@@ -75,7 +75,7 @@ static UINT32 Testcase(void)
...
@@ -75,7 +75,7 @@ static UINT32 Testcase(void)
ret
=
OS_TCB_FROM_TID
(
g_testTaskID02
)
->
taskStatus
;
ret
=
OS_TCB_FROM_TID
(
g_testTaskID02
)
->
taskStatus
;
ICUNIT_ASSERT_NOT_EQUAL
((
ret
&
OS_TASK_STATUS_READY
),
0
,
ret
);
ICUNIT_ASSERT_NOT_EQUAL
((
ret
&
OS_TASK_STATUS_READY
),
0
,
ret
);
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
ICUNIT_ASSERT_NOT_EQUAL
(
g_testCount
,
0
,
g_testCount
);
ICUNIT_ASSERT_NOT_EQUAL
(
g_testCount
,
0
,
g_testCount
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_143.c
浏览文件 @
86be5408
...
@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
...
@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
LOS_TaskUnlock
();
LOS_TaskUnlock
();
/* wait for TaskF01 is finished */
/* wait for TaskF01 is finished */
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
1
,
g_testCount
);
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
1
,
g_testCount
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_150.c
浏览文件 @
86be5408
...
@@ -74,7 +74,7 @@ static UINT32 Testcase(void)
...
@@ -74,7 +74,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
5
);
// 5, set delay time
TestBusyTaskDelay
(
5
);
// 5, set delay time
...
@@ -95,7 +95,7 @@ static UINT32 Testcase(void)
...
@@ -95,7 +95,7 @@ static UINT32 Testcase(void)
ret
=
LOS_SemPost
(
g_semID
);
ret
=
LOS_SemPost
(
g_semID
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
3
,
g_testCount
);
// 3, assert that g_testCount is equal to this.
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
3
,
g_testCount
);
// 3, assert that g_testCount is equal to this.
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_152.c
浏览文件 @
86be5408
...
@@ -71,7 +71,7 @@ static UINT32 Testcase(void)
...
@@ -71,7 +71,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestBusyTaskDelay
(
2
);
// 2, set delay time
TestBusyTaskDelay
(
2
);
// 2, set delay time
...
@@ -93,7 +93,7 @@ static UINT32 Testcase(void)
...
@@ -93,7 +93,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskResume
(
g_testTaskID01
);
ret
=
LOS_TaskResume
(
g_testTaskID01
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
3
,
g_testCount
);
// 3, assert that g_testCount is equal to this.
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
3
,
g_testCount
);
// 3, assert that g_testCount is equal to this.
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_156.c
浏览文件 @
86be5408
...
@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
...
@@ -84,7 +84,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
LOS_AtomicInc
(
&
g_testCount
);
LOS_AtomicInc
(
&
g_testCount
);
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_159.c
浏览文件 @
86be5408
...
@@ -94,7 +94,7 @@ static UINT32 Testcase(void)
...
@@ -94,7 +94,7 @@ static UINT32 Testcase(void)
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
/* wait for task02 start */
/* wait for task02 start */
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
for
(
j
=
0
;
j
<
TRandom
()
%
200
;
j
++
)
{
// 200, Number of cycles.
for
(
j
=
0
;
j
<
TRandom
()
%
200
;
j
++
)
{
// 200, Number of cycles.
}
}
...
...
testsuites/kernel/sample/kernel_base/core/task/smp/It_smp_los_task_161.c
浏览文件 @
86be5408
...
@@ -69,7 +69,7 @@ static UINT32 Testcase(void)
...
@@ -69,7 +69,7 @@ static UINT32 Testcase(void)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
task1
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
task1
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test runing count
TestAssertBusyTaskDelay
(
100
,
1
);
// 100, Set the timeout of runtime; 1, test run
n
ing count
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
1
,
g_testCount
);
ICUNIT_ASSERT_EQUAL
(
g_testCount
,
1
,
g_testCount
);
...
...
testsuites/kernel/sample/kernel_base/ipc/event/full/It_los_event_003.c
浏览文件 @
86be5408
...
@@ -77,7 +77,7 @@ static UINT32 Testcase(VOID)
...
@@ -77,7 +77,7 @@ static UINT32 Testcase(VOID)
g_testCount
++
;
g_testCount
++
;
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, Here, assert that g_testCount is equal to 3.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, Here, assert that g_testCount is equal to 3.
EXIT:
EXIT:
LOS_TaskDelete
(
g_testTaskID01
);
LOS_TaskDelete
(
g_testTaskID01
);
...
...
testsuites/kernel/sample/kernel_base/ipc/event/full/It_los_event_015.c
浏览文件 @
86be5408
...
@@ -86,7 +86,7 @@ static UINT32 Testcase(VOID)
...
@@ -86,7 +86,7 @@ static UINT32 Testcase(VOID)
LOS_EventWrite
(
&
g_event
,
0x1111
);
LOS_EventWrite
(
&
g_event
,
0x1111
);
ICUNIT_GOTO_EQUAL
(
g_testCount
,
1
,
g_testCount
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
g_testCount
,
1
,
g_testCount
,
EXIT
);
TestAssertBusyTaskDelay
(
100
,
4
);
// 100, Set the timeout of runtime; 4, test runing count
TestAssertBusyTaskDelay
(
100
,
4
);
// 100, Set the timeout of runtime; 4, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
4
,
g_testCount
,
EXIT1
);
// 4, Here, assert that g_testCount is equal to 4.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
4
,
g_testCount
,
EXIT1
);
// 4, Here, assert that g_testCount is equal to 4.
EXIT1:
EXIT1:
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_002.c
浏览文件 @
86be5408
...
@@ -69,7 +69,7 @@ static UINT32 Testcase(VOID)
...
@@ -69,7 +69,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_003.c
浏览文件 @
86be5408
...
@@ -71,7 +71,7 @@ static UINT32 Testcase(VOID)
...
@@ -71,7 +71,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger
(
HWI_NUM_TEST
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
EXIT:
EXIT:
LOS_HwiDelete
(
HWI_NUM_TEST
,
NULL
);
LOS_HwiDelete
(
HWI_NUM_TEST
,
NULL
);
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_008.c
浏览文件 @
86be5408
...
@@ -72,7 +72,7 @@ static UINT32 Testcase(VOID)
...
@@ -72,7 +72,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger
(
HWI_NUM_TEST
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_011.c
浏览文件 @
86be5408
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, Here, assert that g_testCount is equal to 3.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, Here, assert that g_testCount is equal to 3.
ret
=
LOS_EventDestroy
(
&
g_event
);
ret
=
LOS_EventDestroy
(
&
g_event
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_014.c
浏览文件 @
86be5408
...
@@ -91,7 +91,7 @@ static UINT32 Testcase(VOID)
...
@@ -91,7 +91,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_015.c
浏览文件 @
86be5408
...
@@ -99,7 +99,7 @@ static UINT32 Testcase(VOID)
...
@@ -99,7 +99,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger
(
HWI_NUM_TEST
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, Here, assert that g_testCount is equal to 3.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, Here, assert that g_testCount is equal to 3.
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_018.c
浏览文件 @
86be5408
...
@@ -72,7 +72,7 @@ static UINT32 Testcase(VOID)
...
@@ -72,7 +72,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_021.c
浏览文件 @
86be5408
...
@@ -74,7 +74,7 @@ static UINT32 Testcase(VOID)
...
@@ -74,7 +74,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ret
=
LOS_EventDestroy
(
&
g_event
);
ret
=
LOS_EventDestroy
(
&
g_event
);
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_022.c
浏览文件 @
86be5408
...
@@ -86,7 +86,7 @@ static UINT32 Testcase(VOID)
...
@@ -86,7 +86,7 @@ static UINT32 Testcase(VOID)
ICUNIT_GOTO_EQUAL
(
g_testCount
,
1
,
g_testCount
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
g_testCount
,
1
,
g_testCount
,
EXIT
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ret
=
LOS_EventDestroy
(
&
g_event
);
ret
=
LOS_EventDestroy
(
&
g_event
);
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_023.c
浏览文件 @
86be5408
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_024.c
浏览文件 @
86be5408
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
...
@@ -89,7 +89,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_025.c
浏览文件 @
86be5408
...
@@ -93,7 +93,7 @@ static UINT32 Testcase(VOID)
...
@@ -93,7 +93,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger
(
HWI_NUM_TEST
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_031.c
浏览文件 @
86be5408
...
@@ -45,7 +45,7 @@ static VOID TaskF01(VOID)
...
@@ -45,7 +45,7 @@ static VOID TaskF01(VOID)
LOS_AtomicInc
(
&
g_testCount
);
LOS_AtomicInc
(
&
g_testCount
);
ret
=
LOS_EventRead
(
&
g_event
,
0x11
,
LOS_WAITMODE_AND
,
LOS_WAIT_FOREVER
);
ret
=
LOS_EventRead
(
&
g_event
,
0x11
,
LOS_WAITMODE_AND
,
LOS_WAIT_FOREVER
);
/*
/*
* write event ---> read event ---> dest
or
y event [pass]
* write event ---> read event ---> dest
ro
y event [pass]
* write event ---> destroy event ---> read event [fail]
* write event ---> destroy event ---> read event [fail]
*/
*/
LOS_AtomicInc
(
&
g_testCount
);
LOS_AtomicInc
(
&
g_testCount
);
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_032.c
浏览文件 @
86be5408
...
@@ -111,7 +111,7 @@ static UINT32 Testcase(void)
...
@@ -111,7 +111,7 @@ static UINT32 Testcase(void)
}
else
if
((
g_ret1
==
0x00
)
&&
(
g_ret2
==
LOS_OK
)
&&
(
g_ret3
==
LOS_OK
))
{
}
else
if
((
g_ret1
==
0x00
)
&&
(
g_ret2
==
LOS_OK
)
&&
(
g_ret3
==
LOS_OK
))
{
/*
/*
* (g_ret1 == 0) && (g_ret2 == 0) && (uwRet3 == 0)
* (g_ret1 == 0) && (g_ret2 == 0) && (uwRet3 == 0)
* try read -->write event ---resume read---> dest
or
y event ---> read event [fail]
* try read -->write event ---resume read---> dest
ro
y event ---> read event [fail]
*/
*/
}
else
{
}
else
{
ICUNIT_GOTO_EQUAL
(
1
,
0
,
g_ret1
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
1
,
0
,
g_ret1
,
EXIT
);
...
...
testsuites/kernel/sample/kernel_base/ipc/event/smp/It_smp_los_event_035.c
浏览文件 @
86be5408
...
@@ -100,13 +100,13 @@ static UINT32 Testcase(VOID)
...
@@ -100,13 +100,13 @@ static UINT32 Testcase(VOID)
ret
=
LOS_EventWrite
(
&
g_event
,
0x11
);
// try to wake task f01
ret
=
LOS_EventWrite
(
&
g_event
,
0x11
);
// try to wake task f01
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
// 100, Set the timeout of runtime; 2, test runing count
// 100, Set the timeout of runtime; 2, test run
n
ing count
TestAssertBusyTaskDelay
(
100
,
2
);
// cause tasklock on other cpu ,so task f01 wake failed
TestAssertBusyTaskDelay
(
100
,
2
);
// cause tasklock on other cpu ,so task f01 wake failed
LOS_AtomicInc
(
&
g_testCount
);
LOS_AtomicInc
(
&
g_testCount
);
g_runFlag
=
0
;
// unlock the other cpu
g_runFlag
=
0
;
// unlock the other cpu
// 100, Set the timeout of runtime; 4, test runing count
// 100, Set the timeout of runtime; 4, test run
n
ing count
TestAssertBusyTaskDelay
(
100
,
4
);
// not schedule in current cpu cause tasklock
TestAssertBusyTaskDelay
(
100
,
4
);
// not schedule in current cpu cause tasklock
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/mux/smp/It_smp_los_mux_2026.c
浏览文件 @
86be5408
...
@@ -103,7 +103,7 @@ static UINT32 Testcase(VOID)
...
@@ -103,7 +103,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
LOS_TaskDelay
(
2
);
// test task's prio be set
ed
22
LOS_TaskDelay
(
2
);
// test task's prio be set 22
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
LOS_TaskLock
();
LOS_TaskLock
();
...
...
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_002.c
浏览文件 @
86be5408
...
@@ -70,7 +70,7 @@ static UINT32 Testcase(VOID)
...
@@ -70,7 +70,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID01
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_003.c
浏览文件 @
86be5408
...
@@ -72,7 +72,7 @@ static UINT32 Testcase(VOID)
...
@@ -72,7 +72,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger
(
HWI_NUM_TEST
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
...
...
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_005.c
浏览文件 @
86be5408
...
@@ -87,7 +87,7 @@ static UINT32 Testcase(VOID)
...
@@ -87,7 +87,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_007.c
浏览文件 @
86be5408
...
@@ -88,7 +88,7 @@ static UINT32 Testcase(VOID)
...
@@ -88,7 +88,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_008.c
浏览文件 @
86be5408
...
@@ -73,7 +73,7 @@ static UINT32 Testcase(VOID)
...
@@ -73,7 +73,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger
(
HWI_NUM_TEST
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
// 2, Here, assert that g_testCount is equal to 2.
ret
=
LOS_QueueDelete
(
g_testQueueID01
);
ret
=
LOS_QueueDelete
(
g_testQueueID01
);
...
...
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_009.c
浏览文件 @
86be5408
...
@@ -94,7 +94,7 @@ static UINT32 Testcase(VOID)
...
@@ -94,7 +94,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger
(
HWI_NUM_TEST
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test runing count.
TestAssertBusyTaskDelay
(
100
,
2
);
// 100, Set the timeout of runtime; 2, test run
n
ing count.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
ICUNIT_GOTO_EQUAL
(
g_testCount
,
2
,
g_testCount
,
EXIT
);
EXIT:
EXIT:
...
...
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_011.c
浏览文件 @
86be5408
...
@@ -88,7 +88,7 @@ static UINT32 Testcase(VOID)
...
@@ -88,7 +88,7 @@ static UINT32 Testcase(VOID)
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ret
=
LOS_TaskCreate
(
&
g_testTaskID02
,
&
testTask
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
ICUNIT_ASSERT_EQUAL
(
ret
,
LOS_OK
,
ret
);
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count.
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, Here, assert that g_testCount is equal to 3.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, Here, assert that g_testCount is equal to 3.
ret
=
LOS_QueueDelete
(
g_testQueueID01
);
ret
=
LOS_QueueDelete
(
g_testQueueID01
);
...
...
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_012.c
浏览文件 @
86be5408
...
@@ -90,7 +90,7 @@ static UINT32 Testcase(VOID)
...
@@ -90,7 +90,7 @@ static UINT32 Testcase(VOID)
TestHwiTrigger
(
HWI_NUM_TEST
);
TestHwiTrigger
(
HWI_NUM_TEST
);
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test runing count.
TestAssertBusyTaskDelay
(
100
,
3
);
// 100, Set the timeout of runtime; 3, test run
n
ing count.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, Here, assert that g_testCount is equal to 3.
ICUNIT_GOTO_EQUAL
(
g_testCount
,
3
,
g_testCount
,
EXIT
);
// 3, Here, assert that g_testCount is equal to 3.
ret
=
LOS_QueueDelete
(
g_testQueueID01
);
ret
=
LOS_QueueDelete
(
g_testQueueID01
);
...
...
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_013.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_014.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_015.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_018.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_021.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_022.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_023.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_024.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_025.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_026.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_027.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/queue/smp/It_smp_los_queue_029.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_002.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_003.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_005.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_007.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_008.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_009.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_011.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_012.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_013.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_014.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_015.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_018.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_021.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_022.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_023.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_024.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_025.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_026.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_027.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_028.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_029.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_032.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_033.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/kernel_base/ipc/sem/smp/It_smp_los_sem_034.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_013.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_014.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/posix/mutex/full/It_posix_mutex_017.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/sample/posix/pthread/full/It_posix_pthread_150.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/src/iCunit.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/kernel/src/osTest.c
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/basic/mem/shm/full/shm_test_001.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/basic/mem/vm/smoke/mremap_test_001.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/common/osTest.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/extended/liteipc/liteipc.h
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/extended/liteipc/smgr_demo.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_056.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_069.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_104.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_105.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_106.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_107.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_116.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_117.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_118.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_119.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_120.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_121.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_122.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_123.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_142.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_143.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_147.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_148.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_520.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_521.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_522.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_523.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_524.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_526.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_528.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_529.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_530.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_574.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_586.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/jffs/full/It_vfs_jffs_807.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_066.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_068.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_073.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_074.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_663.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_664.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_665.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_666.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_667.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_668.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_669.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_670.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_671.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_672.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_673.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_674.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_675.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_676.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_677.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_678.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_679.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_680.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_681.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_682.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_683.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_684.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_685.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_686.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_687.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_692.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_693.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_694.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/full/It_vfs_fat_870.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/pressure/It_fs_fat_performance_013.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/pressure/It_fs_fat_performance_014.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_029.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_030.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_031.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_038.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_040.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_041.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/pressure/It_fs_fat_pressure_042.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/fs/vfat/smoke/It_vfs_fat_026.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
testsuites/unittest/libc/posix/mqueue/full/It_posix_queue_043.cpp
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
tools/build/liteos.ld
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
tools/build/liteos_llvm.ld
浏览文件 @
86be5408
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录