From: Zicheng Qu <quzicheng@huawei.com> hulk inclusion category: other bugzilla: https://atomgit.com/openeuler/kernel/issues/10133 ------------------------ Log the tgid of the entity selected by __raw_pick_next_ctx() so that the scheduling path can be traced when XSCHED_DEBUG is enabled. Signed-off-by: Zicheng Qu <quzicheng@huawei.com> Signed-off-by: Tang Hui <tanghui20@huawei.com> --- kernel/xsched/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/xsched/core.c b/kernel/xsched/core.c index c85293f98fe59..1d42943528160 100644 --- a/kernel/xsched/core.c +++ b/kernel/xsched/core.c @@ -114,6 +114,8 @@ static struct xsched_entity *__raw_pick_next_ctx(struct xsched_cu *xcu) return NULL; } + XSCHED_DEBUG("Pick next xse %d @ %s\n", next->tgid, __func__); + break; } } -- 2.34.1