kernel_liteos_a/platform
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
..
BUILD.gn chore: optimize build scripts and add lto config entry 2021-08-31 12:04:34 +08:00
Kconfig feat(make): optimize makefiles and remove some unused files 2021-08-22 04:23:40 +08:00
Makefile chore: optimize build scripts and add lto config entry 2021-08-31 12:04:34 +08:00
board.ld.S update openharmony 1.0.1 2021-03-11 18:43:57 +08:00
bsp.mk chore: optimize build scripts and add lto config entry 2021-08-31 12:04:34 +08:00
console.c !473 Revert "fix: 修改默认窗口宽度到400" 2021-08-03 02:58:47 +00:00
console.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
hwi_shell.c feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_builddef.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_cir_buf.c fix: A核代码告警清零 2021-07-30 17:13:55 +08:00
los_cir_buf_pri.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_config.c fix: smp启动代码解耦及内存映射关系解耦 2021-08-05 16:03:43 +08:00
los_config.h feat: L0-L1 支持Trace 2021-08-31 20:29:45 +08:00
los_excinfo.c feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_excinfo_pri.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_hilog.c feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_hilog.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_init.c fix: A核代码告警清零 2021-07-30 17:13:55 +08:00
los_init.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_init_info.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_init_pri.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_magickey.c !448 fix: Ctrl-C move out of LOS_MAGIC_KEY_ENABLE 2021-07-22 02:51:05 +00:00
los_magickey.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_printf.c feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_seq_buf.c feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_seq_buf.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
los_timer_pri.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
main.c fix: smp启动代码解耦及内存映射关系解耦 2021-08-05 16:03:43 +08:00
sys_config.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00
virtual_serial.c feat: add support for gn build system 2021-07-21 15:52:40 +08:00
virtual_serial.h feat: add support for gn build system 2021-07-21 15:52:40 +08:00