Home
last modified time | relevance | path

Searched refs:task_group (Results 1 – 14 of 14) sorted by relevance

/linux/kernel/sched/
H A Dautogroup.h16 struct task_group *tg;
23 extern void autogroup_free(struct task_group *tg);
25 static inline bool task_group_is_autogroup(struct task_group *tg) in task_group_is_autogroup()
30 extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg);
32 static inline struct task_group *
33 autogroup_task_group(struct task_struct *p, struct task_group *tg) in autogroup_task_group()
44 extern int autogroup_path(struct task_group *tg, char *buf, int buflen);
49 static inline void autogroup_free(struct task_group *tg) { } in autogroup_free()
50 static inline bool task_group_is_autogroup(struct task_group *tg) in task_group_is_autogroup()
55 static inline struct task_group *
[all …]
H A Dsched.h478 struct task_group { struct
512 struct task_group *parent; argument
535 typedef int (*tg_visitor)(struct task_group *, void *); argument
537 extern int walk_tg_tree_from(struct task_group *from,
551 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg()
553 return css ? container_of(css, struct task_group, css) : NULL; in css_tg()
556 extern int tg_nop(struct task_group *tg, void *data);
559 extern void free_fair_sched_group(struct task_group *tg);
560 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
561 extern void online_fair_sched_group(struct task_group *tg);
[all …]
H A Drt.c199 void unregister_rt_sched_group(struct task_group *tg) in unregister_rt_sched_group()
208 void free_rt_sched_group(struct task_group *tg) in free_rt_sched_group()
226 void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, in init_tg_rt_entry()
253 int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent) in alloc_rt_sched_group()
323 void unregister_rt_sched_group(struct task_group *tg) { } in unregister_rt_sched_group()
325 void free_rt_sched_group(struct task_group *tg) { } in free_rt_sched_group()
327 int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent) in alloc_rt_sched_group()
491 typedef struct task_group *rt_rq_iter_t;
493 static inline struct task_group *next_task_group(struct task_group *tg) in next_task_group()
502 typeof(struct task_group), list); in next_task_group()
[all …]
H A Dautogroup.c44 void autogroup_free(struct task_group *tg) in autogroup_free()
90 struct task_group *tg; in autogroup_create()
131 bool task_wants_autogroup(struct task_struct *p, struct task_group *tg) in task_wants_autogroup()
287 int autogroup_path(struct task_group *tg, char *buf, int buflen) in autogroup_path()
H A Dcore.c1500 int walk_tg_tree_from(struct task_group *from, in walk_tg_tree_from()
1503 struct task_group *parent, *child; in walk_tg_tree_from()
1531 int tg_nop(struct task_group *tg, void *data) in tg_nop()
1706 if (task_group_is_autogroup(task_group(p))) in uclamp_tg_restrict()
1708 if (task_group(p) == &root_task_group) in uclamp_tg_restrict()
1711 tg_min = task_group(p)->uclamp[UCLAMP_MIN].value; in uclamp_tg_restrict()
1712 tg_max = task_group(p)->uclamp[UCLAMP_MAX].value; in uclamp_tg_restrict()
1986 struct task_group *tg = &root_task_group; in uclamp_update_root_tg()
4958 struct task_group *tg; in sched_cgroup_fork()
4960 struct task_group, css); in sched_cgroup_fork()
[all …]
H A Dfair.c437 static int tg_is_idle(struct task_group *tg) in tg_is_idle()
480 static inline int tg_is_idle(struct task_group *tg) in tg_is_idle()
5049 struct task_group *tg = cfs_rq->tg; in __calc_smp_shares()
5079 static int tg_cpus(struct task_group *tg) in tg_cpus()
5097 static inline int tg_tasks(struct task_group *tg) in tg_tasks()
5109 struct task_group *tg = cfs_rq->tg; in calc_tasks_shares()
5124 struct task_group *tg = cfs_rq->tg; in calc_max_shares()
5139 struct task_group *tg = cfs_rq->tg; in calc_concur_shares()
5152 struct task_group *tg = cfs_rq->tg; in calc_smp_shares()
5162 struct task_group *tg = cfs_rq->tg; in calc_up_shares()
[all …]
H A Ddebug.c883 static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group *tg) in print_cfs_group_stats()
933 static void task_group_path(struct task_group *tg, char *path, int plen) in task_group_path()
993 SEQ_printf_task_group_path(m, task_group(p), " %s") in print_task()
H A Dsyscalls.c616 task_group(p)->rt_bandwidth.rt_runtime == 0 && in __sched_setscheduler()
617 !task_group_is_autogroup(task_group(p))) { in __sched_setscheduler()
/linux/kernel/sched/ext/
H A Dext.h82 void scx_tg_init(struct task_group *tg);
83 int scx_tg_online(struct task_group *tg);
84 void scx_tg_offline(struct task_group *tg);
88 void scx_group_set_weight(struct task_group *tg, unsigned long cgrp_weight);
89 void scx_group_set_idle(struct task_group *tg, bool idle);
90 void scx_group_set_bandwidth(struct task_group *tg, u64 period_us, u64 quota_us, u64 burst_us);
92 static inline void scx_tg_init(struct task_group *tg) {} in scx_tg_init()
93 static inline int scx_tg_online(struct task_group *tg) { return 0; } in scx_tg_online()
94 static inline void scx_tg_offline(struct task_group *tg) {} in scx_tg_offline()
98 static inline void scx_group_set_weight(struct task_group *tg, unsigned long cgrp_weight) {} in scx_group_set_weight()
[all …]
H A Dsub.c1355 struct task_group *tg = css_tg(css); in scx_cgroup_claim_subtree()
1379 struct task_group *tg = css_tg(css); in scx_cgroup_claim_subtree()
1400 struct task_group *tg = css_tg(css); in scx_cgroup_claim_subtree()
1445 struct task_group *tg = css_tg(css); in scx_cgroup_return_subtree()
1459 struct task_group *tg = css_tg(css); in scx_cgroup_return_subtree()
H A Dext.c3912 static struct cgroup *tg_cgrp(struct task_group *tg) in tg_cgrp()
3954 SCX_INIT_TASK_ARGS_CGROUP(cgrp ?: tg_cgrp(task_group(p))) in __scx_init_task()
4816 void scx_tg_init(struct task_group *tg) in scx_tg_init()
4841 static struct scx_sched *scx_tg_sched(struct task_group *tg) in scx_tg_sched()
4868 static struct scx_sched *scx_tg_knob_sched(struct task_group *tg) in scx_tg_knob_sched()
4878 int scx_tg_online(struct task_group *tg) in scx_tg_online()
4922 void scx_tg_offline(struct task_group *tg) in scx_tg_offline()
4957 struct cgroup *from = tg_cgrp(task_group(p)); in scx_cgroup_can_attach()
5024 tg_cgrp(task_group(p))); in scx_cgroup_move_task()
5047 void scx_group_set_weight(struct task_group *tg, unsigned long weight) in scx_group_set_weight()
[all …]
/linux/include/linux/sched/
H A Dautogroup.h7 struct task_group;
29 extern struct task_group root_task_group;
/linux/include/linux/
H A Dsched.h88 struct task_group;
906 struct task_group *sched_task_group;
/linux/tools/sched_ext/
H A Dscx_qmap.bpf.c1992 struct task_group *tg = container_of(css, struct task_group, css); in cgrp_cur_weight()