/linux/tools/testing/selftests/bpf/progs/ |
H A D | cgrp_kfunc_failure.c | 20 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 …]
|
H A D | cgroup_read_xattr.c | 29 struct cgroup *cgrp; in BPF_PROG() local 45 struct cgroup *cgrp; in BPF_PROG() local 62 struct cgroup *cgrp; BPF_PROG() local 81 struct cgroup *cgrp; BPF_PROG() local 100 struct cgroup *cgrp; BPF_PROG() local 121 struct cgroup *cgrp, *ancestor; BPF_PROG() local 143 struct cgroup *cgrp, *ancestor; BPF_PROG() local [all...] |
H A D | cgrp_kfunc_success.c | 33 int BPF_PROG(test_cgrp_acquire_release_argument, struct cgroup *cgrp, const char *path) in BPF_PROG() argument 50 int BPF_PROG(test_cgrp_acquire_leave_in_map, struct cgroup *cgrp, const char *path) in BPF_PROG() argument 65 int BPF_PROG(test_cgrp_xchg_release, struct cgroup *cgrp, const char *path) in BPF_PROG() argument 108 BPF_PROG(test_cgrp_get_release,struct cgroup * cgrp,const char * path) BPF_PROG() argument 139 BPF_PROG(test_cgrp_get_ancestors,struct cgroup * cgrp,const char * path) BPF_PROG() argument 184 BPF_PROG(test_cgrp_from_id,struct cgroup * cgrp,const char * path) BPF_PROG() argument [all...] |
H A D | cgrp_ls_recursion.c | 30 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
|
H A D | iters_css_task.c | 28 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
|
H A D | cgrp_ls_tp_btf.c | 36 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
|
H A D | cgrp_kfunc_common.h | 13 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()
|
H A D | iters_task_failure.c | 34 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 [all...] |
H A D | cgroup_hierarchical_stats.c | 43 cgroup_id(struct cgroup * cgrp) cgroup_id() argument 83 BPF_PROG(flusher,struct cgroup * cgrp,struct cgroup * parent,int cpu) BPF_PROG() argument 133 BPF_PROG(dumper,struct bpf_iter_meta * meta,struct cgroup * cgrp) BPF_PROG() argument
|
H A D | test_task_under_cgroup.c | 23 struct cgroup *cgrp = NULL; in BPF_PROG() local 54 struct cgroup *cgrp = NULL; in BPF_PROG() local [all...] |
/linux/kernel/cgroup/ |
H A D | freezer.c | 15 static bool cgroup_update_frozen_flag(struct cgroup *cgrp, bool frozen) in cgroup_update_frozen_flag() 36 static void cgroup_propagate_frozen(struct cgroup *cgrp, bool frozen) in cgroup_propagate_frozen() 66 void cgroup_update_frozen(struct cgroup *cgrp) in cgroup_update_frozen() 86 static void cgroup_inc_frozen_cnt(struct cgroup *cgrp) in cgroup_inc_frozen_cnt() 94 static void cgroup_dec_frozen_cnt(struct cgroup *cgrp) in cgroup_dec_frozen_cnt() 106 struct cgroup *cgrp; in cgroup_enter_frozen() local 130 struct cgroup *cgrp; in cgroup_leave_frozen() local 174 static void cgroup_do_freeze(struct cgroup *cgrp, bool freeze, u64 ts_nsec) in cgroup_do_freeze() 263 void cgroup_freeze(struct cgroup *cgrp, bool freeze) in cgroup_freeze()
|
H A D | cgroup.c | 359 bool cgroup_on_dfl(const struct cgroup *cgrp) in cgroup_on_dfl() 395 static bool cgroup_has_tasks(struct cgroup *cgrp) in cgroup_has_tasks() 400 static bool cgroup_is_threaded(struct cgroup *cgrp) in cgroup_is_threaded() 406 static bool cgroup_is_mixable(struct cgroup *cgrp) in cgroup_is_mixable() 417 static bool cgroup_can_be_thread_root(struct cgroup *cgrp) in cgroup_can_be_thread_root() 439 static bool cgroup_is_thread_root(struct cgroup *cgrp) in cgroup_is_thread_root() 461 static bool cgroup_is_valid_domain(struct cgroup *cgrp) in cgroup_is_valid_domain() 479 static u16 cgroup_control(struct cgroup *cgrp) in cgroup_control() 500 static u16 cgroup_ss_mask(struct cgroup *cgrp) in cgroup_ss_mask() 527 static struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp, in cgroup_css() [all …]
|
H A D | rstat.c | 35 struct cgroup *cgrp, int cpu) in cgroup_rstat_base_cpu() 339 __weak noinline void bpf_rstat_flush(struct cgroup *cgrp, in bpf_rstat_flush() 359 struct cgroup *cgrp = css->cgroup; in __css_rstat_lock() local 376 struct cgroup *cgrp = css->cgroup; in __css_rstat_unlock() local 432 struct cgroup *cgrp = css->cgroup; in css_rstat_init() local 497 struct cgroup *cgrp = css->cgroup; in css_rstat_exit() local 560 static void cgroup_base_stat_flush(struct cgroup *cgrp, int cpu) in cgroup_base_stat_flush() 600 cgroup_base_stat_cputime_account_begin(struct cgroup *cgrp, unsigned long *flags) in cgroup_base_stat_cputime_account_begin() 609 static void cgroup_base_stat_cputime_account_end(struct cgroup *cgrp, in cgroup_base_stat_cputime_account_end() 618 void __cgroup_account_cputime(struct cgroup *cgrp, u64 delta_exec) in __cgroup_account_cputime() [all …]
|
H A D | cgroup-v1.c | 206 void cgroup1_pidlist_destroy_all(struct cgroup *cgrp) in cgroup1_pidlist_destroy_all() 287 static struct cgroup_pidlist *cgroup_pidlist_find(struct cgroup *cgrp, in cgroup_pidlist_find() 308 static struct cgroup_pidlist *cgroup_pidlist_find_create(struct cgroup *cgrp, in cgroup_pidlist_find_create() 336 static int pidlist_array_load(struct cgroup *cgrp, enum cgroup_filetype type, in pidlist_array_load() 407 struct cgroup *cgrp = seq_css(s)->cgroup; in cgroup_pidlist_start() local 502 struct cgroup *cgrp; in __cgroup1_procs_write() local 557 struct cgroup *cgrp; in cgroup_release_agent_write() local 584 struct cgroup *cgrp = seq_css(seq)->cgroup; in cgroup_release_agent_show() local 722 struct cgroup *cgrp; in cgroupstats_build() local 771 void cgroup1_check_for_release(struct cgroup *cgrp) in cgroup1_check_for_release() [all …]
|
H A D | cgroup-internal.h | 27 #define TRACE_CGROUP_PATH(type, cgrp, ...) \ argument 98 struct cgroup *cgrp; member 187 static inline bool cgroup_is_dead(const struct cgroup *cgrp) in cgroup_is_dead() 192 static inline bool notify_on_release(const struct cgroup *cgrp) in notify_on_release()
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | cgrp.c | 32 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
|
H A D | gk110.c | 38 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()
|
H A D | runl.c | 36 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
|
H A D | ucgrp.c | 33 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/tools/sched_ext/ |
H A D | scx_flatcg.bpf.c | 163 static struct fcg_cgrp_ctx *find_cgrp_ctx(struct cgroup *cgrp) in find_cgrp_ctx() 175 static struct fcg_cgrp_ctx *find_ancestor_cgrp_ctx(struct cgroup *cgrp, int level) in find_ancestor_cgrp_ctx() 192 static void cgrp_refresh_hweight(struct cgroup *cgrp, struct fcg_cgrp_ctx *cgc) in cgrp_refresh_hweight() 275 static void cgrp_enqueued(struct cgroup *cgrp, struct fcg_cgrp_ctx *cgc) in cgrp_enqueued() 348 struct cgroup *cgrp; in BPF_STRUCT_OPS() local 416 static void update_active_weight_sums(struct cgroup *cgrp, bool runnable) in update_active_weight_sums() 509 struct cgroup *cgrp; in BPF_STRUCT_OPS() local 518 struct cgroup *cgrp; in BPF_STRUCT_OPS() local 542 struct cgroup *cgrp; in BPF_STRUCT_OPS() local 579 struct cgroup *cgrp; in BPF_STRUCT_OPS() local [all …]
|
/linux/kernel/bpf/ |
H A D | cgroup.c | 61 bpf_prog_run_array_cg(const struct cgroup_bpf * cgrp,enum cgroup_bpf_attach_type atype,const void * ctx,bpf_prog_run_fn run_prog,int retval,u32 * ret_flags) bpf_prog_run_array_cg() argument 101 struct cgroup *cgrp; __cgroup_bpf_run_lsm_sock() local 123 struct cgroup *cgrp; __cgroup_bpf_run_lsm_socket() local 144 struct cgroup *cgrp; __cgroup_bpf_run_lsm_current() local 222 cgroup_bpf_offline(struct cgroup * cgrp) cgroup_bpf_offline() argument 240 bpf_cgroup_storages_alloc(struct bpf_cgroup_storage * storages[],struct bpf_cgroup_storage * new_storages[],enum bpf_attach_type type,struct bpf_prog * prog,struct cgroup * cgrp) bpf_cgroup_storages_alloc() argument 280 bpf_cgroup_storages_link(struct bpf_cgroup_storage * storages[],struct cgroup * cgrp,enum bpf_attach_type attach_type) bpf_cgroup_storages_link() argument 307 struct cgroup *p, *cgrp = container_of(work, struct cgroup, cgroup_bpf_release() local 364 struct cgroup *cgrp = container_of(ref, struct cgroup, bpf.refcnt); cgroup_bpf_release_fn() local 404 hierarchy_allows_attach(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype) hierarchy_allows_attach() argument 433 compute_effective_progs(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype,struct bpf_prog_array ** array) compute_effective_progs() argument 491 activate_effective_progs(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype,struct bpf_prog_array * old_array) activate_effective_progs() argument 507 cgroup_bpf_inherit(struct cgroup * cgrp) cgroup_bpf_inherit() argument 553 struct cgroup *cgrp = data; cgroup_bpf_lifetime_notify() local 571 update_effective_progs(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype) update_effective_progs() argument 786 __cgroup_bpf_attach(struct cgroup * cgrp,struct bpf_prog * prog,struct bpf_prog * replace_prog,struct bpf_cgroup_link * link,enum bpf_attach_type type,u32 flags,u32 id_or_fd,u64 revision) __cgroup_bpf_attach() argument 907 cgroup_bpf_attach(struct cgroup * cgrp,struct bpf_prog * prog,struct bpf_prog * replace_prog,struct bpf_cgroup_link * link,enum bpf_attach_type type,u32 flags,u32 id_or_fd,u64 revision) cgroup_bpf_attach() argument 925 replace_effective_prog(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype,struct bpf_cgroup_link * link) replace_effective_prog() argument 977 __cgroup_bpf_replace(struct cgroup * cgrp,struct bpf_cgroup_link * link,struct bpf_prog * new_prog) __cgroup_bpf_replace() argument 1078 purge_effective_progs(struct cgroup * cgrp,struct bpf_prog * prog,struct bpf_cgroup_link * link,enum cgroup_bpf_attach_type atype) purge_effective_progs() argument 1136 __cgroup_bpf_detach(struct cgroup * cgrp,struct bpf_prog * prog,struct bpf_cgroup_link * link,enum bpf_attach_type type,u64 revision) __cgroup_bpf_detach() argument 1199 cgroup_bpf_detach(struct cgroup * cgrp,struct bpf_prog * prog,enum bpf_attach_type type,u64 revision) cgroup_bpf_detach() argument 1211 __cgroup_bpf_query(struct cgroup * cgrp,const union bpf_attr * attr,union bpf_attr __user * uattr) __cgroup_bpf_query() argument 1315 cgroup_bpf_query(struct cgroup * cgrp,const union bpf_attr * attr,union bpf_attr __user * uattr) cgroup_bpf_query() argument 1330 struct cgroup *cgrp; cgroup_bpf_prog_attach() local 1359 struct cgroup *cgrp; cgroup_bpf_prog_detach() local 1482 struct cgroup *cgrp; cgroup_bpf_link_attach() local 1526 struct cgroup *cgrp; cgroup_bpf_prog_query() local 1569 struct cgroup *cgrp; __cgroup_bpf_run_filter_skb() local 1643 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); __cgroup_bpf_run_filter_sk() local 1681 struct cgroup *cgrp; __cgroup_bpf_run_filter_sock_addr() local 1730 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); __cgroup_bpf_run_filter_sock_ops() local 1740 struct cgroup *cgrp; __cgroup_bpf_check_dev_permission() local 1910 struct cgroup *cgrp; __cgroup_bpf_run_filter_sysctl() local 2004 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); __cgroup_bpf_run_filter_setsockopt() local 2096 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); __cgroup_bpf_run_filter_getsockopt() local 2180 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); __cgroup_bpf_run_filter_getsockopt_kern() local [all...] |
/linux/tools/testing/selftests/bpf/ |
H A D | test_sockmap.c | 1468 static int __test_exec(int cgrp, int test, struct sockmap_options *opt) in __test_exec() argument 1501 static void test_exec(int cgrp, struct sockmap_options *opt) in test_exec() argument 1519 static void test_send_one(struct sockmap_options *opt, int cgrp) in test_send_one() argument 1538 static void test_send_many(struct sockmap_options *opt, int cgrp) in test_send_many() argument 1551 test_send_large(struct sockmap_options * opt,int cgrp) test_send_large() argument 1559 test_send(struct sockmap_options * opt,int cgrp) test_send() argument 1567 test_txmsg_pass(int cgrp,struct sockmap_options * opt) test_txmsg_pass() argument 1574 test_txmsg_redir(int cgrp,struct sockmap_options * opt) test_txmsg_redir() argument 1580 test_txmsg_redir_wait_sndmem(int cgrp,struct sockmap_options * opt) test_txmsg_redir_wait_sndmem() argument 1592 test_txmsg_drop(int cgrp,struct sockmap_options * opt) test_txmsg_drop() argument 1598 test_txmsg_ingress_redir(int cgrp,struct sockmap_options * opt) test_txmsg_ingress_redir() argument 1605 test_txmsg_skb(int cgrp,struct sockmap_options * opt) test_txmsg_skb() argument 1663 test_txmsg_cork_hangs(int cgrp,struct sockmap_options * opt) test_txmsg_cork_hangs() argument 1684 test_txmsg_pull(int cgrp,struct sockmap_options * opt) test_txmsg_pull() argument 1719 test_txmsg_pop(int cgrp,struct sockmap_options * opt) test_txmsg_pop() argument 1763 test_txmsg_push(int cgrp,struct sockmap_options * opt) test_txmsg_push() argument 1800 test_txmsg_push_pop(int cgrp,struct sockmap_options * opt) test_txmsg_push_pop() argument 1847 test_txmsg_apply(int cgrp,struct sockmap_options * opt) test_txmsg_apply() argument 1892 test_txmsg_cork(int cgrp,struct sockmap_options * opt) test_txmsg_cork() argument 1907 test_txmsg_ingress_parser(int cgrp,struct sockmap_options * opt) test_txmsg_ingress_parser() argument 1919 test_txmsg_ingress_parser2(int cgrp,struct sockmap_options * opt) test_txmsg_ingress_parser2() argument [all...] |
/linux/tools/perf/util/ |
H A D | cgroup.c | 66 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 421 struct cgroup *cgrp = NULL; in evlist__expand_cgroup() local 519 struct cgroup *cgrp; in __cgroup__findnew() local 560 struct cgroup *cgrp; in cgroup__findnew() local 575 struct cgroup *cgrp; in cgroup__find() local 586 struct cgroup *cgrp; in perf_env__purge_cgroups() local
|
/linux/include/linux/ |
H A D | psi.h | 35 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/tools/perf/util/bpf_skel/ |
H A D | bperf_cgroup.bpf.c | 65 static inline __u64 get_cgroup_v1_ancestor_id(struct cgroup *cgrp, int level) in get_cgroup_v1_ancestor_id() 83 struct cgroup *cgrp; in get_cgroup_v1_idx() local 153 __u32 key, cgrp; in bperf_cgroup_count() local
|