| /tools/sched_ext/ |
| A D | scx_qmap.bpf.c | 179 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 D | scx_flatcg.bpf.c | 237 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 D | scx_flatcg.h | 43 u32 weight; member
|
| A D | scx_simple.bpf.c | 124 p->scx.dsq_vtime += (SCX_SLICE_DFL - p->scx.slice) * 100 / p->scx.weight; in BPF_STRUCT_OPS()
|
| /tools/perf/util/bpf_skel/ |
| A D | sample_filter.bpf.c | 129 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 D | maximal.bpf.c | 60 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 D | select_cpu_vtime.bpf.c | 69 p->scx.dsq_vtime += (SCX_SLICE_DFL - p->scx.slice) * 100 / p->scx.weight; in BPF_STRUCT_OPS()
|
| /tools/testing/selftests/net/forwarding/ |
| A D | router_multipath.sh | 175 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 D | gre_inner_v4_multipath.sh | 262 nexthop via 192.0.2.146 weight $weight1 \ 263 nexthop via 192.0.2.162 weight $weight2
|
| A D | gre_multipath.sh | 215 nexthop dev g1a weight $weight1 \ 216 nexthop dev g1b weight $weight2
|
| A D | gre_inner_v6_multipath.sh | 262 nexthop via 192.0.2.146 weight $weight1 \ 263 nexthop via 192.0.2.162 weight $weight2
|
| A D | ip6gre_inner_v4_multipath.sh | 261 nexthop via 2001:db8:81::2 weight $weight1 \ 262 nexthop via 2001:db8:82::2 weight $weight2
|
| A D | ip6gre_inner_v6_multipath.sh | 261 nexthop via 2001:db8:81::2 weight $weight1 \ 262 nexthop via 2001:db8:82::2 weight $weight2
|
| /tools/testing/selftests/damon/ |
| A D | sysfs.py | 81 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.py | 324 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 D | iocost_monitor.py | 149 self.weight = iocg.weight.value_() / WEIGHT_ONE 179 'weight' : self.weight,
|
| /tools/perf/tests/ |
| A D | sample-parsing.c | 153 COMP(weight); in samples_same() 156 COMP(weight); in samples_same() 255 .weight = 109, in do_test()
|
| /tools/testing/selftests/cgroup/ |
| A D | test_cpu.c | 519 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 D | perf-mem.txt | 159 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 D | perf-report.txt | 90 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 D | sample.h | 89 u64 weight; member
|
| A D | cpumap.c | 96 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 D | perf_dlfilter.h | 50 __u64 weight; /* Refer PERF_SAMPLE_WEIGHT_TYPE in <linux/perf_event.h> */ member
|
| /tools/perf/util/bpf_skel/vmlinux/ |
| A D | vmlinux.h | 160 union perf_sample_weight weight; member
|
| /tools/testing/selftests/net/ |
| A D | lib.sh | 39 local weight=0 43 weights[$i]=$((weight++))
|