Re: [PATCH] tools/runqslower: Change state to __state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 6, 2021 at 1:40 PM Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
>
> The task_struct state got renamed to __state, causing
> compile fail:
>
>   runqslower.bpf.c:77:12: error: no member named 'state' in 'struct task_struct'
>         if (prev->state == TASK_RUNNING)
>
> As this is tracing prog, I think we don't need to use
> READ_ONCE to access __state.
>
> Fixes: 2f064a59a11f ("sched: Change task_struct::state")
> Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>

Acked-by: Song Liu <songliubraving@xxxxxx>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux