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)
commit50e7b416d2ab10b9771bd00a4d85df90ad2e4b37
tree89df8108c62ee5ee6eb7eed96bfb46cf4858dc89
parent4e3c7d338a2260406ae22eaf6d77b639d59bdc7e
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