Commit Graph

18 Commits

Author SHA1 Message Date
zhanghu6
18b5902a3e apps/trace: add switch and dump instrumentation
usage:
    trace switch switch [+|-]
                             Configure switch trace filter

    trace print [+|-]
                             Configure dump trace filter

Signed-off-by: zhanghu6 <zhanghu6@xiaomi.com>
2022-02-24 10:23:50 -03:00
Xiang Xiao
db235f98d8 Rename CONFIG_SMP_NCPUS to CONFIG_NR_CPUS
follow up NuttX side change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-22 00:08:32 +01:00
zhanghu6
1e28c3b9ea trace dump: the note dump module of out keep string output 2021-12-14 11:16:54 -06:00
zhanghu6
a63aef8f02 warning: trace_dump_sched_switch unused because add SCHED_INSTRUMENTATION_SWITCH
https://github.com/apache/incubator-nuttx/pull/4998
note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH #4998
2021-12-14 11:16:54 -06:00
zhanghu6
a2c8fa182a trace dump: build error because add CONFIG_SCHED_INSTRUMENTATION_SWITCH in note driver
https://github.com/apache/incubator-nuttx/pull/4998
note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH #4998
2021-12-14 11:16:54 -06:00
zhanghu6
cc8dd03b9c trace dump: add string and binary
NOTE_DUMP_STRING
NOTE_DUMP_BINARY

And incubator-nuttx[trace: and sched note dump #4963] is together
2021-12-13 21:22:21 -06:00
Abdelatif Guettouche
7b192f24fe system/trace/trace.c: Condition the creation of "i" and "count"
varialbes with SYSCALL or IRQ instrumentation to avoid a warning.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-27 05:48:13 -06:00
Abdelatif Guettouche
c26c4009d9 system/trace/trace_dump.c: Fix typo in a comment (NUL -> NULL).
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-11-27 05:48:13 -06:00
Xiang Xiao
ad3f44bc77 Change match to fnmatch
follow the kernel side change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 16:15:57 -03:00
Nakamura, Yuuichi (ITDD)
f6dfd1dbb2 system/trace: Fix trace output for the correct display in Trace Compass 2021-08-01 08:43:24 -07:00
Nakamura, Yuuichi
bfa826d30d system/trace: Fix fprintf format warnings 2021-01-06 10:27:34 +01:00
chao.an
fe915679b1 style/Document: remove unnecessary trailing whitespace
N/A

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:10 +01:00
Nakamura, Yuuichi
e6e435572b Add task name recording support for trace command 2020-11-01 19:33:08 -08:00
Nakamura, Yuuichi
954c90b4b5 Add SCHED_INSTRUMENTATION_HIRES support 2020-10-21 02:10:51 +08:00
Nakamura, Yuuichi
ef2758c0c5 Add note_syscall args support 2020-10-21 00:42:53 +08:00
Nakamura, Yuuichi
7588d458e5 Remove trace command description 2020-10-18 00:23:27 +08:00
Nakamura, Yuuichi
007033f295 Fix note_syscall_leave_s to avoid unaligned access 2020-10-17 23:53:30 +08:00
Nakamura, Yuuichi
71ce72a341 Add trace command for task trace 2020-10-15 16:49:11 +08:00