Symbol: task_group
include/linux/sched.h
88
struct task_group;
include/linux/sched.h
896
struct task_group *sched_task_group;
include/linux/sched/autogroup.h
29
extern struct task_group root_task_group;
include/linux/sched/autogroup.h
7
struct task_group;
kernel/sched/autogroup.c
131
bool task_wants_autogroup(struct task_struct *p, struct task_group *tg)
kernel/sched/autogroup.c
287
int autogroup_path(struct task_group *tg, char *buf, int buflen)
kernel/sched/autogroup.c
44
void autogroup_free(struct task_group *tg)
kernel/sched/autogroup.c
90
struct task_group *tg;
kernel/sched/autogroup.h
16
struct task_group *tg;
kernel/sched/autogroup.h
23
extern void autogroup_free(struct task_group *tg);
kernel/sched/autogroup.h
25
static inline bool task_group_is_autogroup(struct task_group *tg)
kernel/sched/autogroup.h
30
extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg);
kernel/sched/autogroup.h
32
static inline struct task_group *
kernel/sched/autogroup.h
33
autogroup_task_group(struct task_struct *p, struct task_group *tg)
kernel/sched/autogroup.h
44
extern int autogroup_path(struct task_group *tg, char *buf, int buflen);
kernel/sched/autogroup.h
49
static inline void autogroup_free(struct task_group *tg) { }
kernel/sched/autogroup.h
50
static inline bool task_group_is_autogroup(struct task_group *tg)
kernel/sched/autogroup.h
55
static inline struct task_group *
kernel/sched/autogroup.h
56
autogroup_task_group(struct task_struct *p, struct task_group *tg)
kernel/sched/autogroup.h
61
static inline int autogroup_path(struct task_group *tg, char *buf, int buflen)
kernel/sched/core.c
10004
struct task_group *tg = css_tg(seq_css(sf));
kernel/sched/core.c
10030
static u64 throttled_time_self(struct task_group *tg)
kernel/sched/core.c
10044
struct task_group *tg = css_tg(seq_css(sf));
kernel/sched/core.c
10058
static void tg_bandwidth(struct task_group *tg,
kernel/sched/core.c
10087
static int tg_set_bandwidth(struct task_group *tg,
kernel/sched/core.c
10158
struct task_group *tg = css_tg(css);
kernel/sched/core.c
10168
struct task_group *tg = css_tg(css);
kernel/sched/core.c
10181
struct task_group *tg = css_tg(css);
kernel/sched/core.c
10345
struct task_group *tg = css_tg(css);
kernel/sched/core.c
10371
struct task_group *tg = css_tg(css);
kernel/sched/core.c
10481
struct task_group *tg = css_tg(seq_css(sf));
kernel/sched/core.c
10492
struct task_group *tg = css_tg(of_css(of));
kernel/sched/core.c
1487
int walk_tg_tree_from(struct task_group *from,
kernel/sched/core.c
1490
struct task_group *parent, *child;
kernel/sched/core.c
1518
int tg_nop(struct task_group *tg, void *data)
kernel/sched/core.c
1693
if (task_group_is_autogroup(task_group(p)))
kernel/sched/core.c
1695
if (task_group(p) == &root_task_group)
kernel/sched/core.c
1698
tg_min = task_group(p)->uclamp[UCLAMP_MIN].value;
kernel/sched/core.c
1699
tg_max = task_group(p)->uclamp[UCLAMP_MAX].value;
kernel/sched/core.c
1973
struct task_group *tg = &root_task_group;
kernel/sched/core.c
4885
struct task_group *tg;
kernel/sched/core.c
4887
struct task_group, css);
kernel/sched/core.c
8908
struct task_group root_task_group;
kernel/sched/core.c
8960
task_group_cache = KMEM_CACHE(task_group, 0);
kernel/sched/core.c
9332
static inline void alloc_uclamp_sched_group(struct task_group *tg,
kernel/sched/core.c
9333
struct task_group *parent)
kernel/sched/core.c
9346
static void sched_free_group(struct task_group *tg)
kernel/sched/core.c
9356
sched_free_group(container_of(rcu, struct task_group, rcu));
kernel/sched/core.c
9359
static void sched_unregister_group(struct task_group *tg)
kernel/sched/core.c
9371
struct task_group *sched_create_group(struct task_group *parent)
kernel/sched/core.c
9373
struct task_group *tg;
kernel/sched/core.c
9395
void sched_online_group(struct task_group *tg, struct task_group *parent)
kernel/sched/core.c
9417
sched_unregister_group(container_of(rhp, struct task_group, rcu));
kernel/sched/core.c
9420
void sched_destroy_group(struct task_group *tg)
kernel/sched/core.c
9426
void sched_release_group(struct task_group *tg)
kernel/sched/core.c
9451
struct task_group *tg;
kernel/sched/core.c
9459
struct task_group, css);
kernel/sched/core.c
9508
struct task_group *parent = css_tg(parent_css);
kernel/sched/core.c
9509
struct task_group *tg;
kernel/sched/core.c
9526
struct task_group *tg = css_tg(css);
kernel/sched/core.c
9527
struct task_group *parent = css_tg(css->parent);
kernel/sched/core.c
9549
struct task_group *tg = css_tg(css);
kernel/sched/core.c
9556
struct task_group *tg = css_tg(css);
kernel/sched/core.c
9563
struct task_group *tg = css_tg(css);
kernel/sched/core.c
9700
struct task_group *tg;
kernel/sched/core.c
9744
struct task_group *tg;
kernel/sched/core.c
9778
static unsigned long tg_weight(struct task_group *tg)
kernel/sched/core.c
9811
static int __cfs_schedulable(struct task_group *tg, u64 period, u64 runtime);
kernel/sched/core.c
9813
static int tg_set_cfs_bandwidth(struct task_group *tg,
kernel/sched/core.c
9885
static u64 tg_get_cfs_period(struct task_group *tg)
kernel/sched/core.c
9895
static u64 tg_get_cfs_quota(struct task_group *tg)
kernel/sched/core.c
9908
static u64 tg_get_cfs_burst(struct task_group *tg)
kernel/sched/core.c
9919
struct task_group *tg;
kernel/sched/core.c
9927
static u64 normalize_cfs_quota(struct task_group *tg,
kernel/sched/core.c
9947
static int tg_cfs_schedulable_down(struct task_group *tg, void *data)
kernel/sched/core.c
9985
static int __cfs_schedulable(struct task_group *tg, u64 period, u64 quota)
kernel/sched/debug.c
809
static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group *tg)
kernel/sched/debug.c
859
static void task_group_path(struct task_group *tg, char *path, int plen)
kernel/sched/debug.c
918
SEQ_printf_task_group_path(m, task_group(p), " %s")
kernel/sched/ext/ext.c
10438
struct task_group *tg = p->sched_task_group;
kernel/sched/ext/ext.c
3562
static struct cgroup *tg_cgrp(struct task_group *tg)
kernel/sched/ext/ext.c
3591
SCX_INIT_TASK_ARGS_CGROUP(task_group(p))
kernel/sched/ext/ext.c
4383
void scx_tg_init(struct task_group *tg)
kernel/sched/ext/ext.c
4391
int scx_tg_online(struct task_group *tg)
kernel/sched/ext/ext.c
4420
void scx_tg_offline(struct task_group *tg)
kernel/sched/ext/ext.c
4443
struct cgroup *from = tg_cgrp(task_group(p));
kernel/sched/ext/ext.c
4497
tg_cgrp(task_group(p)));
kernel/sched/ext/ext.c
4519
void scx_group_set_weight(struct task_group *tg, unsigned long weight)
kernel/sched/ext/ext.c
4535
void scx_group_set_idle(struct task_group *tg, bool idle)
kernel/sched/ext/ext.c
4551
void scx_group_set_bandwidth(struct task_group *tg,
kernel/sched/ext/ext.c
4782
struct task_group *tg = css_tg(css);
kernel/sched/ext/ext.c
4805
struct task_group *tg = css_tg(css);
kernel/sched/ext/ext.h
75
void scx_tg_init(struct task_group *tg);
kernel/sched/ext/ext.h
76
int scx_tg_online(struct task_group *tg);
kernel/sched/ext/ext.h
77
void scx_tg_offline(struct task_group *tg);
kernel/sched/ext/ext.h
81
void scx_group_set_weight(struct task_group *tg, unsigned long cgrp_weight);
kernel/sched/ext/ext.h
82
void scx_group_set_idle(struct task_group *tg, bool idle);
kernel/sched/ext/ext.h
83
void scx_group_set_bandwidth(struct task_group *tg, u64 period_us, u64 quota_us, u64 burst_us);
kernel/sched/ext/ext.h
85
static inline void scx_tg_init(struct task_group *tg) {}
kernel/sched/ext/ext.h
86
static inline int scx_tg_online(struct task_group *tg) { return 0; }
kernel/sched/ext/ext.h
87
static inline void scx_tg_offline(struct task_group *tg) {}
kernel/sched/ext/ext.h
91
static inline void scx_group_set_weight(struct task_group *tg, unsigned long cgrp_weight) {}
kernel/sched/ext/ext.h
92
static inline void scx_group_set_idle(struct task_group *tg, bool idle) {}
kernel/sched/ext/ext.h
93
static inline void scx_group_set_bandwidth(struct task_group *tg, u64 period_us, u64 quota_us, u64 burst_us) {}
kernel/sched/fair.c
10403
dst_cfs_rq = tg_cfs_rq(task_group(p), dest_cpu);
kernel/sched/fair.c
14833
cfs_rq = tg_cfs_rq(task_group(p), cpu);
kernel/sched/fair.c
15099
void free_fair_sched_group(struct task_group *tg)
kernel/sched/fair.c
15104
int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
kernel/sched/fair.c
15137
void online_fair_sched_group(struct task_group *tg)
kernel/sched/fair.c
15155
void unregister_fair_sched_group(struct task_group *tg)
kernel/sched/fair.c
15189
void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,
kernel/sched/fair.c
15219
static int __sched_group_set_shares(struct task_group *tg, unsigned long shares)
kernel/sched/fair.c
15255
int sched_group_set_shares(struct task_group *tg, unsigned long shares)
kernel/sched/fair.c
15269
int sched_group_set_idle(struct task_group *tg, long idle)
kernel/sched/fair.c
462
static int tg_is_idle(struct task_group *tg)
kernel/sched/fair.c
4806
struct task_group *tg = cfs_rq->tg;
kernel/sched/fair.c
5027
struct task_group *tg;
kernel/sched/fair.c
510
static inline int tg_is_idle(struct task_group *tg)
kernel/sched/fair.c
6501
static inline struct cfs_bandwidth *tg_cfs_bandwidth(struct task_group *tg)
kernel/sched/fair.c
6580
return throttled_hierarchy(tg_cfs_rq(task_group(p), dst_cpu));
kernel/sched/fair.c
6723
static int tg_unthrottle_up(struct task_group *tg, void *data)
kernel/sched/fair.c
6822
static int tg_throttle_down(struct task_group *tg, void *data)
kernel/sched/fair.c
7309
static void sync_throttle(struct task_group *tg, int cpu)
kernel/sched/fair.c
7486
struct task_group *tg;
kernel/sched/fair.c
7504
struct task_group *tg;
kernel/sched/fair.c
7591
static inline void sync_throttle(struct task_group *tg, int cpu) {}
kernel/sched/fair.c
7624
static inline struct cfs_bandwidth *tg_cfs_bandwidth(struct task_group *tg)
kernel/sched/rt.c
199
void unregister_rt_sched_group(struct task_group *tg)
kernel/sched/rt.c
208
void free_rt_sched_group(struct task_group *tg)
kernel/sched/rt.c
226
void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq,
kernel/sched/rt.c
253
int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
kernel/sched/rt.c
2591
rt_rq = task_group(p)->rt_rq[cpu];
kernel/sched/rt.c
2645
static inline int tg_has_rt_tasks(struct task_group *tg)
kernel/sched/rt.c
2666
struct task_group *tg;
kernel/sched/rt.c
2671
static int tg_rt_schedulable(struct task_group *tg, void *data)
kernel/sched/rt.c
2674
struct task_group *child;
kernel/sched/rt.c
2728
static int __rt_schedulable(struct task_group *tg, u64 period, u64 runtime)
kernel/sched/rt.c
2745
static int tg_set_rt_bandwidth(struct task_group *tg,
kernel/sched/rt.c
2790
int sched_group_set_rt_runtime(struct task_group *tg, long rt_runtime_us)
kernel/sched/rt.c
2804
long sched_group_rt_runtime(struct task_group *tg)
kernel/sched/rt.c
2816
int sched_group_set_rt_period(struct task_group *tg, u64 rt_period_us)
kernel/sched/rt.c
2829
long sched_group_rt_period(struct task_group *tg)
kernel/sched/rt.c
2838
int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk)
kernel/sched/rt.c
323
void unregister_rt_sched_group(struct task_group *tg) { }
kernel/sched/rt.c
325
void free_rt_sched_group(struct task_group *tg) { }
kernel/sched/rt.c
327
int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
kernel/sched/rt.c
491
typedef struct task_group *rt_rq_iter_t;
kernel/sched/rt.c
493
static inline struct task_group *next_task_group(struct task_group *tg)
kernel/sched/rt.c
502
typeof(struct task_group), list);
kernel/sched/rt.c
589
return container_of(rt_b, struct task_group, rt_bandwidth)->rt_rq[cpu];
kernel/sched/sched.h
2291
static inline struct task_group *task_group(struct task_struct *p)
kernel/sched/sched.h
2308
static inline struct cfs_rq *tg_cfs_rq(struct task_group *tg, int cpu)
kernel/sched/sched.h
2313
static inline struct sched_entity *tg_se(struct task_group *tg, int cpu)
kernel/sched/sched.h
2340
struct task_group *tg = task_group(p);
kernel/sched/sched.h
2367
static inline struct task_group *task_group(struct task_struct *p)
kernel/sched/sched.h
510
struct task_group *parent;
kernel/sched/sched.h
546
typedef int (*tg_visitor)(struct task_group *, void *);
kernel/sched/sched.h
548
extern int walk_tg_tree_from(struct task_group *from,
kernel/sched/sched.h
562
static inline struct task_group *css_tg(struct cgroup_subsys_state *css)
kernel/sched/sched.h
564
return css ? container_of(css, struct task_group, css) : NULL;
kernel/sched/sched.h
567
extern int tg_nop(struct task_group *tg, void *data);
kernel/sched/sched.h
570
extern void free_fair_sched_group(struct task_group *tg);
kernel/sched/sched.h
571
extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
kernel/sched/sched.h
572
extern void online_fair_sched_group(struct task_group *tg);
kernel/sched/sched.h
573
extern void unregister_fair_sched_group(struct task_group *tg);
kernel/sched/sched.h
575
static inline void free_fair_sched_group(struct task_group *tg) { }
kernel/sched/sched.h
576
static inline int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
kernel/sched/sched.h
580
static inline void online_fair_sched_group(struct task_group *tg) { }
kernel/sched/sched.h
581
static inline void unregister_fair_sched_group(struct task_group *tg) { }
kernel/sched/sched.h
584
extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,
kernel/sched/sched.h
594
extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq,
kernel/sched/sched.h
597
extern int sched_group_set_rt_runtime(struct task_group *tg, long rt_runtime_us);
kernel/sched/sched.h
598
extern int sched_group_set_rt_period(struct task_group *tg, u64 rt_period_us);
kernel/sched/sched.h
599
extern long sched_group_rt_runtime(struct task_group *tg);
kernel/sched/sched.h
600
extern long sched_group_rt_period(struct task_group *tg);
kernel/sched/sched.h
601
extern int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk);
kernel/sched/sched.h
603
extern struct task_group *sched_create_group(struct task_group *parent);
kernel/sched/sched.h
604
extern void sched_online_group(struct task_group *tg,
kernel/sched/sched.h
605
struct task_group *parent);
kernel/sched/sched.h
606
extern void sched_destroy_group(struct task_group *tg);
kernel/sched/sched.h
607
extern void sched_release_group(struct task_group *tg);
kernel/sched/sched.h
612
extern int sched_group_set_shares(struct task_group *tg, unsigned long shares);
kernel/sched/sched.h
614
extern int sched_group_set_idle(struct task_group *tg, long idle);
kernel/sched/sched.h
619
static inline int sched_group_set_shares(struct task_group *tg, unsigned long shares) { return 0; }
kernel/sched/sched.h
620
static inline int sched_group_set_idle(struct task_group *tg, long idle) { return 0; }
kernel/sched/sched.h
631
extern void unregister_rt_sched_group(struct task_group *tg);
kernel/sched/sched.h
632
extern void free_rt_sched_group(struct task_group *tg);
kernel/sched/sched.h
633
extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent);
kernel/sched/sched.h
749
struct task_group *tg; /* Group that "owns" this runqueue */
kernel/sched/sched.h
865
struct task_group *tg; /* this tg has "this" rt_rq on given CPU for runnable entities */
kernel/sched/syscalls.c
616
task_group(p)->rt_bandwidth.rt_runtime == 0 &&
kernel/sched/syscalls.c
617
!task_group_is_autogroup(task_group(p))) {