History

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

Dietmar Eggemann committed 4 years ago

Commit 50e7b411 parent 4e3c7d32 files · +0 −112Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/sched.h+0−14
@@ -2378,20 +2378,6 @@ static inline void rseq_syscall(struct pt_regs *regs) · 2377 unmodified lines
2378 2378
2379#endif2379#endif
2380 2380
2381const struct sched_avg *sched_trace_cfs_rq_avg(struct cfs_rq *cfs_rq);
2382char *sched_trace_cfs_rq_path(struct cfs_rq *cfs_rq, char *str, int len);
2383int sched_trace_cfs_rq_cpu(struct cfs_rq *cfs_rq);
2384
2385const struct sched_avg *sched_trace_rq_avg_rt(struct rq *rq);
2386const struct sched_avg *sched_trace_rq_avg_dl(struct rq *rq);
2387const struct sched_avg *sched_trace_rq_avg_irq(struct rq *rq);
2388
2389int sched_trace_rq_cpu(struct rq *rq);
2390int sched_trace_rq_cpu_capacity(struct rq *rq);
2391int sched_trace_rq_nr_running(struct rq *rq);
2392
2393const struct cpumask *sched_trace_rd_span(struct root_domain *rd);
2394
2395#ifdef CONFIG_SCHED_CORE2381#ifdef CONFIG_SCHED_CORE
2396extern void sched_core_free(struct task_struct *tsk);2382extern void sched_core_free(struct task_struct *tsk);
2397extern void sched_core_fork(struct task_struct *p);2383extern void sched_core_fork(struct task_struct *p);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t