sched_note: add SCHED_NOTE_BEGIN/ENDEX interface

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-02-07 15:12:17 +08:00 committed by Xiang Xiao
parent b250db5dba
commit 1faeba3f2d

View File

@ -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() \