Home
last modified time | relevance | path

Searched refs:cgrp (Results 1 – 16 of 16) sorted by relevance

/tools/perf/util/
Dcgroup.c51 int read_cgroup_id(struct cgroup *cgrp) in read_cgroup_id() argument
64 scnprintf(path, PATH_MAX, "%s/%s", mnt, cgrp->name); in read_cgroup_id()
70 cgrp->id = handle.cgroup_id; in read_cgroup_id()
100 if (!counter->cgrp) in evlist__find_cgroup()
102 if (!strcmp(counter->cgrp->name, str)) in evlist__find_cgroup()
103 return cgroup__get(counter->cgrp); in evlist__find_cgroup()
148 struct cgroup *cgrp = evlist__findnew_cgroup(evlist, str); in add_cgroup() local
151 if (!cgrp) in add_cgroup()
164 cgroup__put(cgrp); in add_cgroup()
167 counter->cgrp = cgrp; in add_cgroup()
[all …]
Dbpf_counter_cgroup.c48 struct cgroup *cgrp, *leader_cgrp; in bperf_load_program() local
109 cgrp = NULL; in bperf_load_program()
113 if (cgrp == NULL || evsel->cgrp == leader_cgrp) { in bperf_load_program()
114 leader_cgrp = evsel->cgrp; in bperf_load_program()
115 evsel->cgrp = NULL; in bperf_load_program()
138 evsel->cgrp = leader_cgrp; in bperf_load_program()
142 if (evsel->cgrp == cgrp) in bperf_load_program()
145 cgrp = evsel->cgrp; in bperf_load_program()
147 if (read_cgroup_id(cgrp) < 0) { in bperf_load_program()
154 err = bpf_map_update_elem(map_fd, &cgrp->id, &i, BPF_ANY); in bperf_load_program()
[all …]
Dcgroup.h44 int read_cgroup_id(struct cgroup *cgrp);
46 static inline int read_cgroup_id(struct cgroup *cgrp __maybe_unused) in read_cgroup_id()
Dstat-shadow.c34 struct cgroup *cgrp; member
64 if (a->cgrp != b->cgrp) in saved_value_cmp()
65 return (char *)a->cgrp < (char *)b->cgrp ? -1 : +1; in saved_value_cmp()
111 struct cgroup *cgrp) in saved_value_lookup() argument
121 .cgrp = cgrp, in saved_value_lookup()
209 struct cgroup *cgrp; member
218 rsd->ctx, st, rsd->cgrp); in update_runtime_stat()
236 .cgrp = counter->cgrp, in perf_stat__update_shadow_stats()
317 rsd.cgrp); in perf_stat__update_shadow_stats()
323 cpu, true, STAT_NONE, 0, st, rsd.cgrp); in perf_stat__update_shadow_stats()
[all …]
Dmetricgroup.h61 int metricgroup__copy_metric_events(struct evlist *evlist, struct cgroup *cgrp,
Dstat-display.c67 const char *cgrp_name = evsel->cgrp ? evsel->cgrp->name : ""; in print_cgroup()
447 if (counter->cgrp) in printout()
590 alias->cgrp == counter->cgrp && in collect_all_aliases()
Devsel.c413 evsel->cgrp = cgroup__get(orig->cgrp); in evsel__clone()
1428 cgroup__put(evsel->cgrp); in evsel__exit()
1797 if (evsel->cgrp) in __evsel__prepare_open()
1990 if (evsel->cgrp) in evsel__open_cpu()
1991 pid = evsel->cgrp->fd; in evsel__open_cpu()
2006 if (!evsel->cgrp && !evsel->core.system_wide) in evsel__open_cpu()
Dmetricgroup.c1298 int metricgroup__copy_metric_events(struct evlist *evlist, struct cgroup *cgrp, in metricgroup__copy_metric_events() argument
1323 cgrp ? cgrp->name : "root", evsel->name, evsel->core.idx); in metricgroup__copy_metric_events()
Devsel.h70 struct cgroup *cgrp; member
Dhist.c238 struct cgroup *cgrp = cgroup__find(h->ms.maps->machine->env, in hists__calc_col_len() local
240 if (cgrp != NULL) in hists__calc_col_len()
241 cgrp_name = cgrp->name; in hists__calc_col_len()
Dmachine.c690 struct cgroup *cgrp; in machine__process_cgroup_event() local
695 cgrp = cgroup__findnew(machine->env, event->cgroup.id, event->cgroup.path); in machine__process_cgroup_event()
696 if (cgrp == NULL) in machine__process_cgroup_event()
Dsort.c664 struct cgroup *cgrp = cgroup__find(he->ms.maps->machine->env, in hist_entry__cgroup_snprintf() local
666 if (cgrp != NULL) in hist_entry__cgroup_snprintf()
667 cgrp_name = cgrp->name; in hist_entry__cgroup_snprintf()
Dpython.c75 int metricgroup__copy_metric_events(struct evlist *evlist, struct cgroup *cgrp, in metricgroup__copy_metric_events() argument
/tools/testing/selftests/bpf/
Dtest_sockmap.c1332 static int __test_exec(int cgrp, int test, struct sockmap_options *opt) in __test_exec() argument
1356 err = run_options(opt, cgrp, test); in __test_exec()
1365 static void test_exec(int cgrp, struct sockmap_options *opt) in test_exec() argument
1372 err = __test_exec(cgrp, SENDMSG, opt); in test_exec()
1377 err = __test_exec(cgrp, SENDPAGE, opt); in test_exec()
1383 static void test_send_one(struct sockmap_options *opt, int cgrp) in test_send_one() argument
1388 test_exec(cgrp, opt); in test_send_one()
1393 test_exec(cgrp, opt); in test_send_one()
1398 test_exec(cgrp, opt); in test_send_one()
1402 static void test_send_many(struct sockmap_options *opt, int cgrp) in test_send_many() argument
[all …]
/tools/perf/util/bpf_skel/
Dbperf_cgroup.bpf.c55 struct cgroup *cgrp; in get_cgroup_v1_idx() local
61 cgrp = BPF_CORE_READ(p, cgroups, subsys[perf_event_cgrp_id], cgroup); in get_cgroup_v1_idx()
62 level = BPF_CORE_READ(cgrp, level); in get_cgroup_v1_idx()
71 cgrp_id = BPF_CORE_READ(cgrp, ancestor_ids[i]); in get_cgroup_v1_idx()
117 __u32 key, cgrp; in bperf_cgroup_count() local
157 cgrp = cgrp_idx[c]; in bperf_cgroup_count()
160 key = cgrp * num_events + idx; in bperf_cgroup_count()
/tools/perf/tests/
Dexpand-cgroup.c70 if (strcmp(evsel->cgrp->name, cgrp_name[i / nr_events])) { in test_expand_events()
73 i, evsel->cgrp->name, cgrp_name[i / nr_events]); in test_expand_events()