Home
last modified time | relevance | path

Searched defs:cgrp (Results 1 – 25 of 73) sorted by relevance

123

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dcgrp_kfunc_failure.c20 static struct __cgrps_kfunc_map_value *insert_lookup_cgrp(struct cgroup *cgrp) in insert_lookup_cgrp()
33 int BPF_PROG(cgrp_kfunc_acquire_untrusted, struct cgroup *cgrp, const char *path) in BPF_PROG()
52 int BPF_PROG(cgrp_kfunc_acquire_no_null_check, struct cgroup *cgrp, const char *path) in BPF_PROG()
68 int BPF_PROG(cgrp_kfunc_acquire_fp, struct cgroup *cgrp, const char *path) in BPF_PROG()
82 int BPF_PROG(cgrp_kfunc_acquire_unsafe_kretprobe, struct cgroup *cgrp) in BPF_PROG()
96 int BPF_PROG(cgrp_kfunc_acquire_trusted_walked, struct cgroup *cgrp, const char *path) in BPF_PROG()
110 int BPF_PROG(cgrp_kfunc_acquire_null, struct cgroup *cgrp, const char *path) in BPF_PROG()
124 int BPF_PROG(cgrp_kfunc_acquire_unreleased, struct cgroup *cgrp, const char *path) in BPF_PROG()
138 int BPF_PROG(cgrp_kfunc_xchg_unreleased, struct cgroup *cgrp, const char *path) in BPF_PROG()
158 int BPF_PROG(cgrp_kfunc_rcu_get_release, struct cgroup *cgrp, const char *path) in BPF_PROG()
[all …]
Dcgrp_kfunc_success.c33 int BPF_PROG(test_cgrp_acquire_release_argument, struct cgroup *cgrp, const char *path) in BPF_PROG()
50 int BPF_PROG(test_cgrp_acquire_leave_in_map, struct cgroup *cgrp, const char *path) in BPF_PROG()
65 int BPF_PROG(test_cgrp_xchg_release, struct cgroup *cgrp, const char *path) in BPF_PROG()
108 int BPF_PROG(test_cgrp_get_release, struct cgroup *cgrp, const char *path) in BPF_PROG()
139 int BPF_PROG(test_cgrp_get_ancestors, struct cgroup *cgrp, const char *path) in BPF_PROG()
184 int BPF_PROG(test_cgrp_from_id, struct cgroup *cgrp, const char *path) in BPF_PROG()
Dcgrp_ls_recursion.c30 static void __on_update(struct cgroup *cgrp) in __on_update()
47 struct cgroup *cgrp; in BPF_PROG() local
63 static void __on_enter(struct pt_regs *regs, long id, struct cgroup *cgrp) in __on_enter()
80 struct cgroup *cgrp; in BPF_PROG() local
Dcgrp_ls_sleepable.c31 struct cgroup *cgrp = ctx->cgroup; in cgroup_iter() local
44 static void __no_rcu_lock(struct cgroup *cgrp) in __no_rcu_lock()
61 struct cgroup *cgrp; in cgrp1_no_rcu_lock() local
95 struct cgroup *cgrp; in yes_rcu_lock() local
Diters_css_task.c28 struct cgroup *cgrp; in BPF_PROG() local
50 static inline u64 cgroup_id(struct cgroup *cgrp) in cgroup_id()
59 struct cgroup *cgrp = ctx->cgroup; in cgroup_id_printer() local
89 struct cgroup *cgrp = bpf_cgroup_from_id(cgrp_id); in BPF_PROG() local
Dcgrp_ls_tp_btf.c36 static void __on_enter(struct pt_regs *regs, long id, struct cgroup *cgrp) in __on_enter()
70 struct cgroup *cgrp; in BPF_PROG() local
90 static void __on_exit(struct pt_regs *regs, long id, struct cgroup *cgrp) in __on_exit()
108 struct cgroup *cgrp; in BPF_PROG() local
Dcgrp_kfunc_common.h13 struct cgroup __kptr * cgrp; member
30 static inline struct __cgrps_kfunc_map_value *cgrps_kfunc_map_value_lookup(struct cgroup *cgrp) in cgrps_kfunc_map_value_lookup()
42 static inline int cgrps_kfunc_map_insert(struct cgroup *cgrp) in cgrps_kfunc_map_insert()
Diters_task_failure.c34 struct cgroup *cgrp = bpf_cgroup_from_id(cg_id); in BPF_PROG() local
69 struct cgroup *cgrp = bpf_cgroup_from_id(cg_id); in BPF_PROG() local
92 struct cgroup *cgrp = bpf_cgroup_from_id(cg_id); in BPF_PROG() local
Dcgroup_iter.c12 static inline u64 cgroup_id(struct cgroup *cgrp) in cgroup_id()
21 struct cgroup *cgrp = ctx->cgroup; in cgroup_id_printer() local
Dcgroup_hierarchical_stats.c43 static uint64_t cgroup_id(struct cgroup *cgrp) in cgroup_id()
83 int BPF_PROG(flusher, struct cgroup *cgrp, struct cgroup *parent, int cpu) in BPF_PROG()
133 int BPF_PROG(dumper, struct bpf_iter_meta *meta, struct cgroup *cgrp) in BPF_PROG()
/linux-6.12.1/kernel/cgroup/
Drstat.c17 static struct cgroup_rstat_cpu *cgroup_rstat_cpu(struct cgroup *cgrp, int cpu) in cgroup_rstat_cpu()
32 struct cgroup *cgrp, const bool fast_path) in _cgroup_rstat_cpu_lock()
65 struct cgroup *cgrp, unsigned long flags, in _cgroup_rstat_cpu_unlock()
85 __bpf_kfunc void cgroup_rstat_updated(struct cgroup *cgrp, int cpu) in cgroup_rstat_updated()
266 __weak noinline void bpf_rstat_flush(struct cgroup *cgrp, in bpf_rstat_flush()
282 static inline void __cgroup_rstat_lock(struct cgroup *cgrp, int cpu_in_loop) in __cgroup_rstat_lock()
295 static inline void __cgroup_rstat_unlock(struct cgroup *cgrp, int cpu_in_loop) in __cgroup_rstat_unlock()
303 static void cgroup_rstat_flush_locked(struct cgroup *cgrp) in cgroup_rstat_flush_locked()
349 __bpf_kfunc void cgroup_rstat_flush(struct cgroup *cgrp) in cgroup_rstat_flush()
367 void cgroup_rstat_flush_hold(struct cgroup *cgrp) in cgroup_rstat_flush_hold()
[all …]
Dfreezer.c14 static void cgroup_propagate_frozen(struct cgroup *cgrp, bool frozen) in cgroup_propagate_frozen()
52 void cgroup_update_frozen(struct cgroup *cgrp) in cgroup_update_frozen()
89 static void cgroup_inc_frozen_cnt(struct cgroup *cgrp) in cgroup_inc_frozen_cnt()
97 static void cgroup_dec_frozen_cnt(struct cgroup *cgrp) in cgroup_dec_frozen_cnt()
109 struct cgroup *cgrp; in cgroup_enter_frozen() local
133 struct cgroup *cgrp; in cgroup_leave_frozen() local
177 static void cgroup_do_freeze(struct cgroup *cgrp, bool freeze) in cgroup_do_freeze()
260 void cgroup_freeze(struct cgroup *cgrp, bool freeze) in cgroup_freeze()
Dcgroup.c319 bool cgroup_on_dfl(const struct cgroup *cgrp) in cgroup_on_dfl()
355 static bool cgroup_has_tasks(struct cgroup *cgrp) in cgroup_has_tasks()
360 static bool cgroup_is_threaded(struct cgroup *cgrp) in cgroup_is_threaded()
366 static bool cgroup_is_mixable(struct cgroup *cgrp) in cgroup_is_mixable()
377 static bool cgroup_can_be_thread_root(struct cgroup *cgrp) in cgroup_can_be_thread_root()
399 static bool cgroup_is_thread_root(struct cgroup *cgrp) in cgroup_is_thread_root()
421 static bool cgroup_is_valid_domain(struct cgroup *cgrp) in cgroup_is_valid_domain()
439 static u16 cgroup_control(struct cgroup *cgrp) in cgroup_control()
460 static u16 cgroup_ss_mask(struct cgroup *cgrp) in cgroup_ss_mask()
487 static struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp, in cgroup_css()
[all …]
Dcgroup-v1.c202 void cgroup1_pidlist_destroy_all(struct cgroup *cgrp) in cgroup1_pidlist_destroy_all()
283 static struct cgroup_pidlist *cgroup_pidlist_find(struct cgroup *cgrp, in cgroup_pidlist_find()
304 static struct cgroup_pidlist *cgroup_pidlist_find_create(struct cgroup *cgrp, in cgroup_pidlist_find_create()
332 static int pidlist_array_load(struct cgroup *cgrp, enum cgroup_filetype type, in pidlist_array_load()
403 struct cgroup *cgrp = seq_css(s)->cgroup; in cgroup_pidlist_start() local
498 struct cgroup *cgrp; in __cgroup1_procs_write() local
553 struct cgroup *cgrp; in cgroup_release_agent_write() local
580 struct cgroup *cgrp = seq_css(seq)->cgroup; in cgroup_release_agent_show() local
710 struct cgroup *cgrp; in cgroupstats_build() local
759 void cgroup1_check_for_release(struct cgroup *cgrp) in cgroup1_check_for_release()
[all …]
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dcgrp.c32 nvkm_cgrp_ectx_put(struct nvkm_cgrp *cgrp, struct nvkm_ectx **pectx) in nvkm_cgrp_ectx_put()
51 nvkm_cgrp_ectx_get(struct nvkm_cgrp *cgrp, struct nvkm_engn *engn, struct nvkm_ectx **pectx, in nvkm_cgrp_ectx_get()
93 nvkm_cgrp_vctx_put(struct nvkm_cgrp *cgrp, struct nvkm_vctx **pvctx) in nvkm_cgrp_vctx_put()
119 nvkm_cgrp_vctx_get(struct nvkm_cgrp *cgrp, struct nvkm_engn *engn, struct nvkm_chan *chan, in nvkm_cgrp_vctx_get()
177 struct nvkm_cgrp *cgrp = container_of(kref, typeof(*cgrp), kref); in nvkm_cgrp_del() local
191 struct nvkm_cgrp *cgrp = *pcgrp; in nvkm_cgrp_unref() local
201 nvkm_cgrp_ref(struct nvkm_cgrp *cgrp) in nvkm_cgrp_ref()
212 struct nvkm_cgrp *cgrp = *pcgrp; in nvkm_cgrp_put() local
225 struct nvkm_cgrp *cgrp; in nvkm_cgrp_new() local
Dgk110.c38 struct nvkm_cgrp *cgrp = chan->cgrp; in gk110_chan_preempt() local
61 gk110_cgrp_preempt(struct nvkm_cgrp *cgrp) in gk110_cgrp_preempt()
72 gk110_runl_insert_cgrp(struct nvkm_cgrp *cgrp, struct nvkm_memory *memory, u64 offset) in gk110_runl_insert_cgrp()
Dchan.c43 struct nvkm_cgrp *cgrp = chan->cgrp; in nvkm_chan_cctx_bind() local
95 struct nvkm_cgrp *cgrp = chan->cgrp; in nvkm_chan_cctx_get() local
165 struct nvkm_cgrp *cgrp = chan->cgrp; in nvkm_chan_remove_locked() local
197 struct nvkm_cgrp *cgrp = chan->cgrp; in nvkm_chan_insert() local
350 struct nvkm_cgrp *cgrp, const char *name, bool priv, u32 devm, struct nvkm_vmm *vmm, in nvkm_chan_new_()
Drunl.c36 struct nvkm_cgrp *cgrp = NULL; in nvkm_engn_cgrp_get() local
61 struct nvkm_cgrp *cgrp, *gtmp; in nvkm_runl_rc() local
145 nvkm_runl_rc_cgrp(struct nvkm_cgrp *cgrp) in nvkm_runl_rc_cgrp()
157 struct nvkm_cgrp *cgrp; in nvkm_runl_rc_engn() local
231 struct nvkm_cgrp *cgrp; in nvkm_runl_cgrp_get_cgid() local
Ducgrp.c33 struct nvkm_cgrp *cgrp; member
40 struct nvkm_cgrp *cgrp = nvkm_ucgrp(oclass->parent)->cgrp; in nvkm_ucgrp_chan_new() local
48 struct nvkm_cgrp *cgrp = nvkm_ucgrp(object)->cgrp; in nvkm_ucgrp_sclass() local
/linux-6.12.1/include/linux/
Dcgroup.h324 static inline u64 cgroup_id(const struct cgroup *cgrp) in cgroup_id()
349 static inline void cgroup_get(struct cgroup *cgrp) in cgroup_get()
354 static inline bool cgroup_tryget(struct cgroup *cgrp) in cgroup_tryget()
359 static inline void cgroup_put(struct cgroup *cgrp) in cgroup_put()
493 static inline struct cgroup *cgroup_parent(struct cgroup *cgrp) in cgroup_parent()
511 static inline bool cgroup_is_descendant(struct cgroup *cgrp, in cgroup_is_descendant()
530 static inline struct cgroup *cgroup_ancestor(struct cgroup *cgrp, in cgroup_ancestor()
556 static inline bool cgroup_is_populated(struct cgroup *cgrp) in cgroup_is_populated()
563 static inline ino_t cgroup_ino(struct cgroup *cgrp) in cgroup_ino()
592 static inline int cgroup_name(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_name()
[all …]
Dpsi.h35 static inline struct psi_group *cgroup_psi(struct cgroup *cgrp) in cgroup_psi()
54 static inline int psi_cgroup_alloc(struct cgroup *cgrp) in psi_cgroup_alloc()
58 static inline void psi_cgroup_free(struct cgroup *cgrp) in psi_cgroup_free()
/linux-6.12.1/tools/sched_ext/
Dscx_flatcg.bpf.c168 static struct fcg_cgrp_ctx *find_cgrp_ctx(struct cgroup *cgrp) in find_cgrp_ctx()
180 static struct fcg_cgrp_ctx *find_ancestor_cgrp_ctx(struct cgroup *cgrp, int level) in find_ancestor_cgrp_ctx()
197 static void cgrp_refresh_hweight(struct cgroup *cgrp, struct fcg_cgrp_ctx *cgc) in cgrp_refresh_hweight()
280 static void cgrp_enqueued(struct cgroup *cgrp, struct fcg_cgrp_ctx *cgc) in cgrp_enqueued()
353 struct cgroup *cgrp; in BPF_STRUCT_OPS() local
419 static void update_active_weight_sums(struct cgroup *cgrp, bool runnable) in update_active_weight_sums()
512 struct cgroup *cgrp; in BPF_STRUCT_OPS() local
521 struct cgroup *cgrp; in BPF_STRUCT_OPS() local
545 struct cgroup *cgrp; in BPF_STRUCT_OPS() local
582 struct cgroup *cgrp; in BPF_STRUCT_OPS() local
[all …]
/linux-6.12.1/kernel/bpf/
Dcgroup.c48 bpf_prog_run_array_cg(const struct cgroup_bpf *cgrp, in bpf_prog_run_array_cg()
88 struct cgroup *cgrp; in __cgroup_bpf_run_lsm_sock() local
110 struct cgroup *cgrp; in __cgroup_bpf_run_lsm_socket() local
131 struct cgroup *cgrp; in __cgroup_bpf_run_lsm_current() local
209 void cgroup_bpf_offline(struct cgroup *cgrp) in cgroup_bpf_offline()
227 struct cgroup *cgrp) in bpf_cgroup_storages_alloc()
267 struct cgroup *cgrp, in bpf_cgroup_storages_link()
294 struct cgroup *p, *cgrp = container_of(work, struct cgroup, in cgroup_bpf_release() local
351 struct cgroup *cgrp = container_of(ref, struct cgroup, bpf.refcnt); in cgroup_bpf_release_fn() local
389 static bool hierarchy_allows_attach(struct cgroup *cgrp, in hierarchy_allows_attach()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/
Dtest_sockmap.c1374 static int __test_exec(int cgrp, int test, struct sockmap_options *opt) in __test_exec()
1407 static void test_exec(int cgrp, struct sockmap_options *opt) in test_exec()
1425 static void test_send_one(struct sockmap_options *opt, int cgrp) in test_send_one()
1444 static void test_send_many(struct sockmap_options *opt, int cgrp) in test_send_many()
1457 static void test_send_large(struct sockmap_options *opt, int cgrp) in test_send_large()
1465 static void test_send(struct sockmap_options *opt, int cgrp) in test_send()
1473 static void test_txmsg_pass(int cgrp, struct sockmap_options *opt) in test_txmsg_pass()
1480 static void test_txmsg_redir(int cgrp, struct sockmap_options *opt) in test_txmsg_redir()
1486 static void test_txmsg_redir_wait_sndmem(int cgrp, struct sockmap_options *opt) in test_txmsg_redir_wait_sndmem()
1494 static void test_txmsg_drop(int cgrp, struct sockmap_options *opt) in test_txmsg_drop()
[all …]
/linux-6.12.1/tools/perf/util/
Dcgroup.c66 int read_cgroup_id(struct cgroup *cgrp) in read_cgroup_id()
156 struct cgroup *cgrp = evlist__findnew_cgroup(evlist, str); in add_cgroup() local
187 void cgroup__put(struct cgroup *cgrp) in cgroup__put()
364 struct cgroup *cgrp = NULL; in parse_cgroups() local
422 struct cgroup *cgrp = NULL; in evlist__expand_cgroup() local
526 struct cgroup *cgrp; in __cgroup__findnew() local
567 struct cgroup *cgrp; in cgroup__findnew() local
582 struct cgroup *cgrp; in cgroup__find() local
593 struct cgroup *cgrp; in perf_env__purge_cgroups() local

123