梁林
a6bf03a0c8
多个ulog后端时不支持support_color后端的log指针偏移错误,导致保存到文件的日志出现乱码。
2021-08-19 09:13:16 +08:00
guozhanxin
4af99b0dca
[add] utest add fail_list.
2021-08-18 09:39:21 +08:00
Sherman
491524cb96
[components]rt-link v0.2.0 新特性:
...
1. service 通道增加【连接状态】属性
2. service 通道增加发送消息质量配置,ACK、CRC 可配置开关;
3. 发送接口支持阻塞、非阻塞两种发送方式;
4. 已对接到 device 框架,支持 rt_device 接口操作
5. 已对接到 DFS 框架,支持 POSIX 接口操作
6. 移除 hw_port 目录,改为软件包方式添加 hw_port
7. 修复已知 BUG
2021-08-12 18:10:49 +08:00
Bernard Xiong
0dc972bee6
Merge pull request #4707 from armink/fix_ulog
...
[ulog] Add output locker enabled API
2021-05-21 15:02:22 +08:00
Bernard Xiong
5fb709d72f
Merge pull request #4706 from mysterywolf/ymodem
...
[ymodem] 修改YMODEM_USING_FILE_TRANSFER功能的开启条件
2021-05-21 15:01:53 +08:00
armink
e0b9987508
[ulog] Add output locker enabled API
...
Signed-off-by: armink <armink.ztl@gmail.com>
2021-05-19 18:17:37 +08:00
Meco Man
4aaf52ae9e
[ymodem] 修改YMODEM_USING_FILE_TRANSFER功能的开启条件
...
目前开启的逻辑存在问题,ymodem的文件传输功能开启的前提是得有完整的文件系统,
但是目前,这个开启逻辑错了。
用户选择YMODEM_USING_FILE_TRANSFER功能后select DFS没有任何意义,因为除了需要依赖DFS之外还要依赖其他的例如FATFS,需要和SDIO适配等等等
正确的做法应该是用户配置好完整的文件系统后,ymodem文件传输才能有机会开启,
因此是depends on DFS 而非select DFS
更改之后,只要用户开启了文件系统,在选定YMODEM时,会自动开启文件传输功能,这也是用户希望看到的,直接一键搞定,不需要再多点一步
2021-05-19 12:59:33 +08:00
Sherman
21f9e56253
[add] add new component: rt-link
2021-05-15 16:52:49 +08:00
Bernard Xiong
e3c19a8463
Merge pull request #4601 from armink/fix_ulog
...
[ulog] Fix thread info show when kernel not startup.
2021-04-22 13:44:40 +08:00
Bernard Xiong
3fa35a398b
Update ulog.c
...
Use `rt_thread_self()` to determine whether the scheduler is started or not.
2021-04-19 06:50:58 +08:00
armink
2ea39b4f05
[ulog] Using gettimeofday for timestamp get.
2021-04-15 14:15:39 +08:00
armink
3ae6ca1fb0
[ulog] Fix thread info show when kernel not startup.
2021-04-15 14:10:27 +08:00
Meco Man
a6ac475df3
[ymodem] Check the file path's legitimacy of 'sy' command
2021-04-14 01:34:28 +08:00
Meco Man
3c05a4e719
[compoenets] auto & manual formatted
2021-03-08 18:19:04 +08:00
iysheng
0b2212f773
[components][ulog] Add support with timestamp print in function ulog_hexdump
2021-03-02 12:11:19 +08:00
liruncong
0208fc5546
[components]SECTION=>RT_SECTION(与catch2中SECTION冲突)
2021-02-09 23:25:46 +08:00
chenyong
cddf947863
[utilities][ulog] Add LOG_RAW ringbuffer to fix printing line limit issue
...
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-02-01 11:22:05 +08:00
chenyong
43b1daf325
[utilities][ulog] fix ulog backend color log length calculation error
...
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-01-21 18:58:57 +08:00
chenyong
87b5f3f51e
[components][utilities][ulog] Add backend filtering interface, add async log output control interface, ulog mutex change to semaphore
...
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-01-20 11:20:30 +08:00
yangjie
ef62febf1f
[SConscript]update group name
2020-12-19 16:49:11 +08:00
yangjie11
91261e25b9
[SConscript]rename group name
2020-11-20 13:38:11 +08:00
michael
3f3ff458ed
ulog:fixed compile err
...
syslog.c:154:34: error: unknown type name 'uint8_t'
2020-09-04 11:15:02 +08:00
michael
4bf1535c42
utest:fixed compile err
2020-08-29 22:45:22 +08:00
teh-c
d5e03ad5d1
rt_snprintf多了个参数。
2020-07-03 17:10:43 +08:00
Chinese66
2822ec377d
Update ry_sy.c
...
修改了读取不到文件大小,导致的文件传输的问题,问题说明在
https://www.rt-thread.org/qa/forum.php?mod=viewthread&tid=423781
2020-03-11 11:56:35 +08:00
a1012112796
73cae9564b
[ULOG] fix raw size bug for backend which don't suport color
2020-01-07 11:22:26 +08:00
任光伟
9893f64610
ulogbuffer增加1,为\0预留空间
...
Signed-off-by: RGW <rgw5267@gmail.com>
2019-12-23 10:49:01 +08:00
Bernard Xiong
457759ded7
[Util] fix the dependence of file feature in ymodem
2019-12-17 13:38:49 +08:00
Steven Liu
3c5f46468c
[components]: utilities: ymodem: Add ry_sy function.
...
Use "ry" to receive files and use "sy file_path" to
send files. Default console uart and you can choose
any other uart if you want.
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
2019-12-13 11:49:53 +08:00
armink
e59339e4b8
[components] remove libc dependency in ulog and RTC driver.
2019-11-14 18:09:55 +08:00
chenyong
2b50d3d32c
[components][finsh] Decouple RT_USING_DEVICE dependency for msh feature
...
Signed-off-by: chenyong <1521761801@qq.com>
2019-09-25 20:14:39 +08:00
liruncong
7953cdfae3
[components/utilities/utest]修正无测试用例时,执行utest_run时跑飞问题. utest_init增加__CLANG_ARM编译开关判断
2019-09-14 22:44:44 +08:00
armink
8feb6af992
[component/ulog] Fix ulog hexdump show issue.
2019-08-03 16:52:37 +08:00
tyustli
a559179e6f
fix cpp thread class error
2019-06-24 15:59:26 +08:00
armink
11b0c65921
[components][ulog] Make the asynchronous log output more timely.
2019-05-16 09:55:35 +08:00
armink
415d12220b
[components][ulog] Fix the log length error when using multiple non-color backends.
2019-05-15 08:57:45 +08:00
yangjie
36c78e5480
[components/utilities]delete log_trace,remove log_trace menu from Kconfig
2019-04-23 14:00:18 +08:00
armink
fa4d4ab7cf
Update all of debug log definition to DBG_TAG and DBG_LVL.
2019-04-12 10:18:57 +08:00
MurphyZhao
e5c5215917
[components/utilities/utest] 增加测试运行测试打印
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-03-19 14:27:39 +08:00
armink
584593071e
[component][ulog] Fixed the thread name output.
2019-03-09 15:49:32 +08:00
armink
0d7ba79219
Remove the DBG_COLOR and DBG_ENABLE definition.
2019-03-06 17:54:30 +08:00
zylx
e2c0749d04
[components][ymodem]ymodem 握手阶段增加延时,防止数据接收不全
2019-02-21 11:09:41 +08:00
MurphyZhao
e3546a5043
[components][utest] 增加 utest_help,用于输出帮助信息
...
[components][utest] 对于不支持的测试用例,增加输出日志
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-02-15 12:04:36 +08:00
MurphyZhao
a305c6cca9
[components][utest] utest_run 增加 loop 功能,方便持续运行单一一个测试用例;
...
[components][utest] utest_run 指定测试用例名字的时候,增加通配符 `*` 的支持,及支持仅指定测试用例名字的前部分字节来运行测试用例。该功能会执行匹配成功的所有测试用例。
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-02-14 15:28:56 +08:00
MurphyZhao
0dc7b9a5a2
[components][utest] utest 延时启动
...
在使用 utest 的线程模式的时候,utest_run 命令执行完成后,finsh 会输出 `msh >`,干扰了 utest 内部的日志结构,因此默认在 utest 启动前增加延时。
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-02-14 12:03:29 +08:00
MurphyZhao
82f022f6f0
[components][utest] 增加 utest 线程模式
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-02-13 14:37:08 +08:00
Bernard Xiong
14fd4e34a9
Merge pull request #2249 from PiscesLyn/patch-2
...
ymodem support multiple files transmission
2019-01-30 09:12:40 +08:00
MurphyZhao
655c4ad36b
[component][utest] 增加 utest 日志输出级别配置,提供 ASSERT 和 ALL 两个级别,便于测试用例控制 log 输出
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-25 17:25:29 +08:00
MurphyZhao
f9e5d87c98
[components][utest] 将 utest_assert.h 加入 utest.h,以后测试用例仅需要包含 utest.h
...
[components][utest] 增加 buf 类型的字节比较 assert 宏
[components][utest] 修复错误日志打印的输出类型为 ERR 级别
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-22 15:46:12 +08:00
Lyn
626d0e9e06
ymodem support multiple files transmission
2019-01-22 13:58:59 +08:00
MurphyZhao
5ea985d0fb
[components][utilities/ulog] 修改 ulog_console_backend_init 从 `INIT_COMPONENT_EXPORT` 修改为 `INIT_PREV_EXPORT` 级别的自动初始化,与 ulog_init 同级
...
目的是为了组件初始化中的其他模块可以使用 ulog 输出日志。
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-04 18:59:51 +08:00
朱天龙 (Armink)
c7daacc96f
[component][ulog] Fix the ulog_strcpy function.
2019-01-03 15:31:04 +08:00
Bernard Xiong
dcf7bce2cc
Merge pull request #2041 from zhaojuntao/utest-dev
...
[components][utilities] 增加 utest(单元测试框架)
2018-12-12 12:55:36 +08:00
MurphyZhao
bce7f85907
[components/utilities/utest] 移除不那么必要的日志接口 redefine
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-08 15:01:08 +08:00
MurphyZhao
98b10877e7
[components/utilities/utest] 修复 gcc 编译警告
...
[components/utilities/utest] 移除组件的版本号
[components/utilities/utest] 优化 basename 函数的处理
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-08 14:48:54 +08:00
MurphyZhao
51b17a15e4
[components/utilities/utest] 完善代码,增加注释
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-06 18:59:13 +08:00
MurphyZhao
8824b2ca77
[components/utilities] [Kconfig] 增加 kconfig RT_USING_UTEST 配置
...
[components/utilities] [utest] 增加 testcase 运行超时时间参数
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-06 17:13:14 +08:00
MurphyZhao
0759b66eb9
【更新】components/utilities/utest 增加 SConscript depend
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-05 18:07:03 +08:00
MurphyZhao
1ecf6cbc7c
【更新】utest gcc 链接符
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-12-05 14:53:37 +08:00
HubretXie
81cd4d4f4b
Update ulog.h
...
增加LOG_HEX
2018-12-04 09:10:52 +08:00
HubretXie
fa06299637
Update ulog_def.h
...
增加log_hex
2018-12-04 09:09:58 +08:00
MurphyZhao
85d275b399
[components/utilities][add] 增加测试框架 utest 代码
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-30 16:13:17 +08:00
Dahua1992
0df270bfc5
add #include <sys/time.h>
...
原因tm = gmtime_r(&now, &tm_tmp);报错
2018-11-13 10:55:05 +08:00
Dahua1992
c71828fb33
add #include <sys/time.h>
...
原因 tm = gmtime_r(&now, &tm_tmp);报错
2018-11-13 10:22:53 +08:00
armink
106e6b77b2
[component][ulog] Fix a input parameter check error.
2018-11-10 09:49:21 +08:00
armink
f28b9d83f7
[component][ulog] Fix a compile error when timestamp is enable.
2018-11-09 17:31:40 +08:00
armink
acfe61b501
[component][ulog] Fix some comments.
2018-11-09 09:19:44 +08:00
armink
6a165e5cb1
[component][ulog] Update version to 0.1.1 .
2018-11-08 11:27:18 +08:00
armink
c990f0a026
[component][ulog] Add tag filter to hexdump function.
2018-11-08 11:23:03 +08:00
armink
2ff67c932f
[component][ulog] Add show filter settings shell command 'ulog_filter'.
2018-11-08 11:22:02 +08:00
armink
ad602f5b90
[component][ulog] Add filter get API.
2018-11-08 11:20:42 +08:00
armink
2fe79faf3d
[component][ulog] Fix a memory leak problem.
2018-11-08 10:59:25 +08:00
armink
4e6f13e0da
[component] fix Kconfig warning in at and ulog.
2018-11-06 11:41:44 +08:00
armink
9ceecb4d95
[component][ulog] Update ulog hexdump format.
2018-11-01 19:39:08 +08:00
armink
c336099a93
[component][ulog] Reduce thread stack usage when using ulog.
2018-11-01 14:51:50 +08:00
armink
e588dfa633
[component][ulog] Add newline param for ulog_output API.
2018-10-31 10:54:12 +08:00
armink
12a803bcc9
[component] Add ulog logger basic component.
2018-10-30 09:11:42 +08:00
Bernard Xiong
8c1c6516b3
[Components] Change license to Apache License v2.0
2018-10-29 11:06:58 +08:00
Bernard Xiong
9064b28c2a
[license] Change license to Apache.
2018-10-14 19:28:18 +08:00
MurphyZhao
dcbbb05f50
[components][ymodem] 修复 ymodem 不支持 secureCRT 下 1024字节传输的问题
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-09-06 11:02:49 +08:00
MurphyZhao
3b161b58f2
[component][ymodem] Fix compilation warning in MDK
...
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-08-23 17:23:03 +08:00
Bernard Xiong
884fb70fe9
[Kernel] Add device ops feature.
2018-06-10 17:59:17 +08:00
bernard
b07bd6c515
[Utilities] Add more options for logtrace.
2017-12-29 22:52:38 +08:00
armink
fde3d6bc10
[Kconfig] Add utilities Kconfig.
2017-12-02 23:16:45 +08:00
Bernard Xiong
85b17e9158
[logtrace] change the type of cmd to 'int'
2017-11-01 13:38:10 +08:00
bernard
5e3b3b19a6
[BSP] change the type of cmd.
...
1. Change the type of cmd to 'int';
2. Remove RT_LWIP_USING_RT_MEM macro;
2017-10-16 13:23:03 +08:00
emlslxl
3007b34ad3
add log_file flush function
2017-08-04 12:46:23 +08:00
Bernard Xiong
d6cb1e3465
[Util] Add logtrace into components auto-initialization
2015-06-25 17:11:40 +08:00
Bernard Xiong
4373ef2e26
[Utilities] Change the log_trace_init to auto init.
2015-05-05 10:43:15 +08:00
Grissiom
d479960aac
ymodem: fix a race-condition in handshaking
...
As we are sending C continuously, there is a chance that the
sender(remote) receive an C after sending the first handshake package.
So the sender will interpret it as NAK and re-send the package. So we
just ignore it and proceed.
2014-12-26 22:20:17 +08:00
armink
762f18d743
[Ymodem]Change tabs to space.
2014-09-14 14:52:00 +08:00
armink
987532967f
[Ymodem]Change macro definition and code format.
2014-09-14 14:44:48 +08:00
armink
7121697a71
[Ymodem]Add device open flag as input parameter to ymodem function.
2014-09-13 11:22:01 +08:00
armink
ed57c7c32a
[Ymodem]When active end the session, It can config send CAN number.
2014-09-13 11:15:48 +08:00
bernard
6045b3a075
[LogTrace] Use OFLAG_RDWR to replace FLAG_RDWR when opening a device.
2014-09-11 12:53:23 +08:00
Grissiom
2aa51d42f9
ymodem: increase the default RYM_CHD_INTV_TICK
...
Frequent 'C' on the handshake will confuse some sender(lrzsz for
example).
2014-07-15 14:58:05 +08:00
Grissiom
ff1eb2cbc9
ymodem: refactor _rym_read_code
...
Make fast path fast and slow path slow.
2014-07-14 18:45:46 +08:00
Grissiom
299cccfb26
logtrace: add log_session_lvl
...
log_session_lvl is suitable for performance critical places where in
most cases, the log is turned off by level. If the session is const and
the level is greater than session->lvl, the whole function will be
optimized out.
2014-04-10 21:22:39 +08:00
Grissiom
12728bcdff
logtrace: add const modifier to the APIs
...
Compiler may do more optimization when the parameter is const.
2014-04-10 21:22:39 +08:00
Grissiom
d0251a523a
log_trace: fix the memmove use
...
The first parameter of memmove is the dst, not src. Besides, fix the
wrong move size.
2013-10-11 17:23:30 +08:00