Commit Graph

7 Commits

Author SHA1 Message Date
chao.an
124c1328a6 sched/note: add support of trace section mark
The implementation of this feature is based on android systrace:

https://source.android.com/devices/tech/debug/ftrace

Application developers are more concerned about the performance of
the specified application section,
added two APIs to implement performance measurement:

void sched_note_begin(FAR const char *str);
void sched_note_end(FAR const char *str);
or
SCHED_NOTE_BEGIN();  /* defined to sched_note_begin(__FUNCTION__) */
SCHED_NOTE_END();    /* defined to sched_note_end(__FUNCTION__) */

Signed-off-by: chao.an <anchao@xiaomi.com>
2022-04-03 18:04:28 +08:00
zhuyanlin
e3df21cd4c trace: fix pointer cross the border
Fix pointer cross the border

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-03-28 22:17:59 +08:00
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
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
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
ef2758c0c5 Add note_syscall args support 2020-10-21 00:42:53 +08:00
Nakamura, Yuuichi
71ce72a341 Add trace command for task trace 2020-10-15 16:49:11 +08:00