]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Remove sched_trace_*() helper functions
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Thu, 28 Apr 2022 14:43:37 +0000 (15:43 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 29 Apr 2022 09:06:29 +0000 (11:06 +0200)
commit3649ab27c78470336d480bf709045869f19e24b4
tree89df8108c62ee5ee6eb7eed96bfb46cf4858dc89
parent3dd023842214359f4a4bbbedd6cb8594e6c6a517
sched/fair: Remove sched_trace_*() helper functions

We no longer need them as we can use DWARF debug info or BTF + pahole to
re-generate the required structs to compile against them for a given
kernel.

This moves the burden of maintaining these helper functions to the
module.

https://github.com/qais-yousef/sched_tp

Note that pahole v1.15 is required at least for using DWARF. And for BTF
v1.23 which is not yet released will be required. There's alignment
problem that will lead to crashes in earlier versions when used with
BTF.

We should have enough infrastructure to make these helper functions now
obsolete, so remove them.

[Rewrote commit message to reflect the new alternative]
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220428144338.479094-2-qais.yousef@arm.com
include/linux/sched.h
kernel/sched/fair.c