LiteOS2021
d30a009ba5
move trace device init from system_init.c to drivers/char/trace.c
...
Signed-off-by: LiteOS2021 <dinglu@huawei.com>
Change-Id: Ie4555c57f56c82f74b5e29f0e58aec97dc6cc32d
2021-09-01 12:49:37 +08:00
LiteOS2021
dc9ec6856f
feat: L0-L1 支持Trace
...
1.【需求描述】
L0~L1 支持Trace,提供两种工作模式:在线模式、离线缓存模式, 用于按时间线追踪系统事件,如任务切换、中断、ipc等。
2.【方案描述】
L0:
(1).在内核模块预置静态代码桩
(2).触发桩后,收集系统上下文信息
(3).离线模式则写入内存,用户可通过dump导出;
(4).在线模式通过pipeline对接IDE进行可视化解析和展示;
L1:
新增trace字符设备,位于"/dev/trace",通过对设备节点的read\write\ioctl,实现用户态trace;
BREAKING CHANGE:
1.新增一系列trace的对外API,位于los_trace.h中.
LOS_TRACE_EASY简易插桩
LOS_TRACE标准插桩
LOS_TraceInit配置Trace缓冲区的地址和大小
LOS_TraceStart开启事件记录
LOS_TraceStop停止事件记录
LOS_TraceRecordDump输出Trace缓冲区数据
LOS_TraceRecordGet获取Trace缓冲区的首地址
LOS_TraceReset清除Trace缓冲区中的事件
LOS_TraceEventMaskSet设置事件掩码,仅记录某些模块的事件
LOS_TraceHwiFilterHookReg注册过滤特定中断号事件的钩子函数
Close #I46WA0
Signed-off-by: LiteOS2021 <dinglu@huawei.com>
Change-Id: I6a8e64794c4852f2c2980993a06180e09ec6ee0d
2021-08-31 20:29:45 +08:00
Caoruihong
a8805a65aa
feat: add support for gn build system
...
add BUILD.gn for all kernel modules
Signed-off-by: Caoruihong <crh.cao@huawei.com>
Change-Id: I018446427bf64615f2596d47862b219659b58b34
2021-07-21 15:52:40 +08:00
Joker2770
e0a27badde
perf: assign '-1' to uninitialized variable: ret
...
Signed-off-by: Joker2770 <1214220480@qq.com>
2021-06-28 09:33:29 +08:00
mucor
73a777777e
fix: remove redundant headfile
...
1.remove redundant headfile in kernel, such as:
compiler.h;debug.h;automount.h;inode.h;syslog.h;net.h;
2.split fs.h to file.h and driver.h
3.move vnode.h and path_cache.h to vfs/include
4.remove redundant interface and defines
close: #I3RTNR
Signed-off-by: mucor <mucorwang@gmail.com>
2021-06-19 17:32:47 +08:00
arvinzzz
8cde768588
refactor: Refactored the kernel boot process and added a init framework
...
close: #I3I768
Change-Id: I4f801df4abe1a9afdf43391c28276e96a5e81513
2021-05-20 16:45:43 +08:00
boxi
4abd2e0247
fix: Optimize quickstart node implementation
...
Adjust QuickstartListen parameters:
1.delete monitored process pid
2.add timeout waiting
Close #I3R8O8
Change-Id: I89c8626c80b8d6fdaea7cd46029dd9a34b555d37
2021-05-14 09:10:08 +08:00
boxi
0e0ab81ff9
fix: Correctly handle the return value of LOS_EventRead in QuickstartListen.
...
Correctly handle the return value of LOS_EventRead in QuickstartListen.
Close #I3PSLZ
Change-Id: I7b9ab9aa0542b6072dcbe8fa78924125b95c6434
2021-05-06 11:09:04 +08:00
boxi
4e24b57289
fix: Optimize /dev/quickstart permissions.
...
Optimize /dev/quickstart permissions.
Close #I3OYUQ
Change-Id: Ie2847efeb5dddf2bbea0251cca39bb7cb973e3f6
2021-04-30 15:43:32 +08:00
boxi
cb140a4442
fix: Optimiz macro of quickstart cmd
...
Optimiz macro of quickstart cmd.
Close #I3OSYT
Change-Id: I5b96823c6ec7f7eab2c0a80eda8ad30bcf2b9d32
2021-04-29 11:40:01 +08:00
boxi
2e011b672f
fix: Fix quickstart codingstyle
...
Fix quickstart codingstyle
Close #I3OPOM
Change-Id: I062e569b64e7cb3eb5e2d59ecadfe58b9055ef2d
2021-04-28 20:37:29 +08:00
boxi
46b63f7153
feat: Add /dev/quickstart to support synchronous communication between processes in user mode startup.
...
Add /dev/quickstart to support synchronous communication between processes in user mode startup.
Support ioctl cmd:
QUICKSTART_LISTEN,QUICKSTART_STAGE1,QUICKSTART_STAGE2,QUICKSTART_STAGE3,QUICKSTART_UNREGISTER only for init process;
QUICKSTART_NOTIFY for other app process.
Close #I3OHO5
Change-Id: If6a56123be93a5bc6b6d1069abda8d872b15fae1
2021-04-28 19:42:06 +08:00
openharmony_ci
7ba0bfa800
!157 删除无用的__cplusplus,移除不必要的文件x权限
...
Merge pull request !157 from Caoruihong/cplusplus
2021-04-20 09:01:45 +08:00
openharmony_ci
81cdf0c6c3
!156 代码优化
...
Merge pull request !156 from Caoruihong/ioremap
2021-04-19 18:48:22 +08:00
Caoruihong
7e73c929a2
remove __cplusplus guards in .c files
...
Change-Id: I052d930d54e63179b17b77f02c107a015f3cfc3f
2021-04-19 18:28:25 +08:00
Caoruihong
1ea9610ffd
code optimization
...
Change-Id: I8d2e9f96e86f4130474da9898791240b5d42328e
2021-04-19 15:24:00 +08:00
boxi
3b2ff4b71f
fix: fix typo in quickstart
...
rename quickstart.c
closes #I3M1S8
Change-Id: Ic85586553389d56f5188dd58e4fb7ced16463dff
2021-04-19 11:12:58 +08:00
zhangfanfan2
f0fc5db72d
风格修改
2021-04-12 19:41:11 +08:00
YOUR_NAME
c959d43684
IssueNo:#I3E0F2
...
Description:Delete VM to support only kernel mode.
Sig:liteos_a
Feature or Bugfix:Feature
Binary Source:No
Change-Id: Ie1029c8fbc0c1b85c138663933118d2d148b7769
2021-03-31 16:14:54 +08:00
YOUR_NAME
2bc01d3ce4
fix:compile bug fix
2021-03-11 20:12:26 +08:00
mamingshuai
73a7b66116
update openharmony 1.0.1
2021-03-11 18:43:57 +08:00