Home
last modified time | relevance | path

Searched refs:weight (Results 1 – 25 of 61) sorted by relevance

123

/tools/sched_ext/
A Dscx_qmap.bpf.c179 static int weight_to_idx(u32 weight) in weight_to_idx() argument
182 if (weight <= 25) in weight_to_idx()
184 else if (weight <= 50) in weight_to_idx()
186 else if (weight < 200) in weight_to_idx()
188 else if (weight < 400) in weight_to_idx()
199 int idx = weight_to_idx(p->scx.weight); in BPF_STRUCT_OPS()
269 if (highpri_boosting && p->scx.weight >= HIGHPRI_WEIGHT) { in BPF_STRUCT_OPS()
289 int idx = weight_to_idx(p->scx.weight); in update_core_sched_head_seq()
464 core_sched_tail_seqs[weight_to_idx(prev->scx.weight)]++; in BPF_STRUCT_OPS()
497 int idx = weight_to_idx(p->scx.weight); in task_qdist()
[all …]
A Dscx_flatcg.bpf.c237 div_round_up(pcgc->hweight * cgc->weight, in cgrp_refresh_hweight()
481 pcgc->child_weight_sum += cgc->weight; in update_active_weight_sums()
489 pcgc->child_weight_sum -= cgc->weight; in update_active_weight_sums()
556 (SCX_SLICE_DFL - p->scx.slice) * 100 / p->scx.weight; in BPF_STRUCT_OPS()
586 void BPF_STRUCT_OPS(fcg_cgroup_set_weight, struct cgroup *cgrp, u32 weight) in BPF_STRUCT_OPS() argument
602 pcgc->child_weight_sum += (s64)weight - cgc->weight; in BPF_STRUCT_OPS()
603 cgc->weight = weight; in BPF_STRUCT_OPS()
855 cgc->weight = args->weight; in BPF_STRUCT_OPS_SLEEPABLE()
A Dscx_flatcg.h43 u32 weight; member
A Dscx_simple.bpf.c124 p->scx.dsq_vtime += (SCX_SLICE_DFL - p->scx.slice) * 100 / p->scx.weight; in BPF_STRUCT_OPS()
/tools/perf/util/bpf_skel/
A Dsample_filter.bpf.c129 return kctx->data->weight.var1_dw; in perf_get_sample()
131 return kctx->data->weight.var2_w; in perf_get_sample()
133 return kctx->data->weight.var3_w; in perf_get_sample()
136 return kctx->data->weight.full; in perf_get_sample()
/tools/testing/selftests/sched_ext/
A Dmaximal.bpf.c60 void BPF_STRUCT_OPS(maximal_set_weight, struct task_struct *p, u32 weight) in BPF_STRUCT_OPS() argument
123 void BPF_STRUCT_OPS(maximal_cgroup_set_weight, struct cgroup *cgrp, u32 weight) in BPF_STRUCT_OPS() argument
A Dselect_cpu_vtime.bpf.c69 p->scx.dsq_vtime += (SCX_SLICE_DFL - p->scx.slice) * 100 / p->scx.weight; in BPF_STRUCT_OPS()
/tools/testing/selftests/net/forwarding/
A Drouter_multipath.sh175 nexthop via 169.254.2.22 dev $rp12 weight $weight_rp12 \
176 nexthop via 169.254.3.23 dev $rp13 weight $weight_rp13
213 nexthop via fe80:2::22 dev $rp12 weight $weight_rp12 \
214 nexthop via fe80:3::23 dev $rp13 weight $weight_rp13
A Dgre_inner_v4_multipath.sh262 nexthop via 192.0.2.146 weight $weight1 \
263 nexthop via 192.0.2.162 weight $weight2
A Dgre_multipath.sh215 nexthop dev g1a weight $weight1 \
216 nexthop dev g1b weight $weight2
A Dgre_inner_v6_multipath.sh262 nexthop via 192.0.2.146 weight $weight1 \
263 nexthop via 192.0.2.162 weight $weight2
A Dip6gre_inner_v4_multipath.sh261 nexthop via 2001:db8:81::2 weight $weight1 \
262 nexthop via 2001:db8:82::2 weight $weight2
A Dip6gre_inner_v6_multipath.sh261 nexthop via 2001:db8:81::2 weight $weight1 \
262 nexthop via 2001:db8:82::2 weight $weight2
/tools/testing/selftests/damon/
A Dsysfs.py81 assert_true(dump['weight_arr'][idx] == dest.weight, 'weight', dump)
231 dests=[_damon_sysfs.DamosDest(id=1, weight=30),
232 _damon_sysfs.DamosDest(id=0, weight=70)]),
A D_damon_sysfs.py324 weight = None variable in DamosDest
328 def __init__(self, id=0, weight=0): argument
330 self.weight = weight
339 err = write_file(os.path.join(self.sysfs_dir(), 'weight'), self.weight)
/tools/cgroup/
A Diocost_monitor.py149 self.weight = iocg.weight.value_() / WEIGHT_ONE
179 'weight' : self.weight,
/tools/perf/tests/
A Dsample-parsing.c153 COMP(weight); in samples_same()
156 COMP(weight); in samples_same()
255 .weight = 109, in do_test()
/tools/testing/selftests/cgroup/
A Dtest_cpu.c519 long weight; in run_cpucg_nested_weight_test() local
523 weight = 1000; in run_cpucg_nested_weight_test()
526 weight = 5000; in run_cpucg_nested_weight_test()
535 if (cg_write_numeric(leaf[i].cgroup, "cpu.weight", weight)) in run_cpucg_nested_weight_test()
/tools/perf/Documentation/
A Dperf-mem.txt159 sample period, perf-mem overhead is calculated using sample weight. E.g.
161 but one sample with weight 180 and the other with weight 20:
163 $ perf script -F period,data_src,weight,ip,sym
A Dperf-report.txt90 pid, comm, dso, symbol, parent, cpu, socket, srcline, weight,
111 - weight: Event specific weight, e.g. memory latency or transaction
112 abort cost. This is the global weight.
113 - local_weight: Local weight version of the weight above.
143 - weight1: Average value of event specific weight (1st field of weight_struct).
144 - weight2: Average value of event specific weight (2nd field of weight_struct).
145 - weight3: Average value of event specific weight (3rd field of weight_struct).
225 The last 3 names are alias for the corresponding weights. When the weight
226 fields are used, they will show the average value of the weight.
/tools/perf/util/
A Dsample.h89 u64 weight; member
A Dcpumap.c96 int weight = 0, mask_nr = data->mask32_data.nr; in cpu_map__from_mask() local
101 weight += bitmap_weight(local_copy, 64); in cpu_map__from_mask()
104 map = perf_cpu_map__empty_new(weight); in cpu_map__from_mask()
/tools/perf/include/perf/
A Dperf_dlfilter.h50 __u64 weight; /* Refer PERF_SAMPLE_WEIGHT_TYPE in <linux/perf_event.h> */ member
/tools/perf/util/bpf_skel/vmlinux/
A Dvmlinux.h160 union perf_sample_weight weight; member
/tools/testing/selftests/net/
A Dlib.sh39 local weight=0
43 weights[$i]=$((weight++))

Completed in 38 milliseconds

123