Skip to content

What is the "current task" in sched_wakeup and sched_switch context? #185

@xcy-megvii

Description

@xcy-megvii

I was studying the runqlat implementation. The code uses the bpf_current_task_under_cgroup() to filter tasks by cgroup. As far as I understand, the "current task" here refers to the waker, i.e. the kernel, not the woken task. Since runqlat aims to measure task delay in the run queue, shouldn't the cgroup filter check the woken task rather than the waker?

if (filter_cg && !bpf_current_task_under_cgroup(&cgroup_map, 0))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions