So the sched_entity will be associated with a real task if it is a leaf one in trees of cfs_rq. Otherwise, it will be a group scheduling entity that is not directly associated with any real task(Right?So this means task_of(se) is meaningless?).
My question is: given a sched_entity, how can we know it is a leaf one and associated with a real task_struct? Thanks
I have found the macro: entity_is_task(se)