sched_note: add SCHED_NOTE_BEGIN/ENDEX interface
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
b250db5dba
commit
1faeba3f2d
1 changed files with 4 additions and 0 deletions
|
|
@ -125,6 +125,10 @@
|
|||
sched_note_printf(SCHED_NOTE_IP, fmt, ##__VA_ARGS__)
|
||||
# define SCHED_NOTE_BPRINTF(event, fmt, ...) \
|
||||
sched_note_bprintf(SCHED_NOTE_IP, event, fmt, ##__VA_ARGS__)
|
||||
# define SCHED_NOTE_BEGINEX(str) \
|
||||
sched_note_printf(SCHED_NOTE_IP, "B|%d|%s", gettid(), str)
|
||||
# define SCHED_NOTE_ENDEX(str) \
|
||||
sched_note_printf(SCHED_NOTE_IP, "E|%d|%s", gettid(), str)
|
||||
# define SCHED_NOTE_BEGIN() \
|
||||
sched_note_begin(SCHED_NOTE_IP)
|
||||
# define SCHED_NOTE_END() \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue