Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 176) sorted by relevance

12345678

/tools/testing/selftests/net/forwarding/
A Dbridge_mdb_max.sh564 local max
567 ((max == 0))
573 ((max == 100))
655 local max
663 ((max == 0))
667 ((max == 0))
674 ((max == 0))
678 ((max == 100))
711 ((max == 0))
718 ((max == 0))
[all …]
/tools/perf/util/
A Dspark.c15 unsigned long min = ULONG_MAX, max = 0, f; in print_spark() local
20 if (val[i] > max) in print_spark()
21 max = val[i]; in print_spark()
23 f = ((max - min) << SPARK_SHIFT) / (NUM_SPARKS - 1); in print_spark()
A Dcpumap.c412 static int get_max_num(char *path, int *max) in get_max_num() argument
430 if (sscanf(&buf[num], "%d", max) < 1) { in get_max_num()
436 (*max)++; in get_max_num()
448 int max, ret = -1; in set_max_cpu_num() local
465 ret = get_max_num(path, &max); in set_max_cpu_num()
469 max_cpu_num.cpu = max; in set_max_cpu_num()
478 ret = get_max_num(path, &max); in set_max_cpu_num()
480 if (!ret && max > INT16_MAX) { in set_max_cpu_num()
481 pr_err("Read out of bounds max cpus of %d\n", max); in set_max_cpu_num()
485 max_present_cpu_num.cpu = (int16_t)max; in set_max_cpu_num()
/tools/testing/selftests/net/
A Dxfrm_policy_add_speed.sh21 local max="$2"
39 [ "$policies" -gt "$max" ] && return
44 [ "$policies" -gt "$max" ] && return
55 local max="$1"
58 do_dummies4 "out" "$max" > "$tmp"
/tools/power/cpupower/utils/
A Dcpufreq-set.c157 if (!new_pol->max) in do_new_policy()
158 new_pol->max = cur_pol->max; in do_new_policy()
184 else if (new_pol->max) in do_one_cpu()
185 return cpufreq_modify_policy_max(cpu, new_pol->max); in do_one_cpu()
208 .max = 0, in cmd_freq_set()
238 if (new_pol.max) in cmd_freq_set()
241 new_pol.max = string_to_frequency(optarg); in cmd_freq_set()
242 if (new_pol.max == 0) { in cmd_freq_set()
A Dcpufreq-info.c62 unsigned long min, max; in proc_cpufreq_output() local
72 if (cpufreq_get_hardware_limits(cpu, &min, &max)) { in proc_cpufreq_output()
73 max = 0; in proc_cpufreq_output()
75 min_pctg = (policy->min * 100) / max; in proc_cpufreq_output()
76 max_pctg = (policy->max * 100) / max; in proc_cpufreq_output()
79 cpu , policy->min, max ? min_pctg : 0, policy->max, in proc_cpufreq_output()
80 max ? max_pctg : 0, policy->governor); in proc_cpufreq_output()
280 unsigned long min, max; in get_hardware_limits() local
291 print_speed(max, no_rounding); in get_hardware_limits()
294 printf("%lu %lu\n", min, max); in get_hardware_limits()
[all …]
/tools/perf/Documentation/
A Dperf-sched.txt30 … | 2.804 ms | 66 | avg: 0.524 ms | max: 1.069 ms | max start: 254752.314960 s |
31 …3 | 0.372 ms | 13 | avg: 0.008 ms | max: 0.013 ms | max start: 254751.551153 s |
32 …49 | 0.012 ms | 1 | avg: 0.008 ms | max: 0.008 ms | max start: 254751.519807 s |
33 …8 | 0.011 ms | 1 | avg: 0.006 ms | max: 0.006 ms | max start: 254751.519809 s |
34 … | 0.938 ms | 3 | avg: 0.006 ms | max: 0.007 ms | max start: 254751.313817 s |
114 sort by key(s): runtime, switch, avg, max
115 by default it's sorted by "avg ,max ,switch ,runtime".
156 --max-stack::
173 Show only a summary of scheduling by thread with min, max, and average
179 max, and average run times (in sec) and relative stddev.
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
A DUtil.py40 min, max, avg, count = dict[key]
43 if value > max:
44 max = value
46 dict[key] = (min, max, avg, count + 1)
/tools/testing/selftests/cgroup/
A Dmemcg_protection.m55 unclaimed = max(0, E - siblings);
58 overuse = max(0, c - protected);
66 sz = max(e, c);
73 if max(r) < epsilon
78 r = max(r, (r > epsilon) .* cluster);
81 c = max(c - r, 0);
/tools/net/ynl/samples/
A Dpage-pool.c25 unsigned int i, max; member
39 if (a->i == a->max) { in find_ifc()
40 a->max *= 2; in find_ifc()
41 a->s = reallocarray(a->s, a->max, sizeof(*a->s)); in find_ifc()
71 a.max = 128; in main()
72 a.s = calloc(a.max, sizeof(*a.s)); in main()
/tools/include/linux/
A Dkernel.h29 #ifndef max
30 #define max(x, y) ({ \ macro
45 #define max_t(type, x, y) max((type)x, (type)y)
47 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi)
A Drbtree_augmented.h127 RBTYPE max = RBCOMPUTE(node); \
130 if (child->RBAUGMENTED > max) \
131 max = child->RBAUGMENTED; \
135 if (child->RBAUGMENTED > max) \
136 max = child->RBAUGMENTED; \
138 if (exit && node->RBAUGMENTED == max) \
140 node->RBAUGMENTED = max; \
/tools/testing/selftests/timers/
A Dadjtick.c167 long tick, max, interval, err; in main() local
182 max = systick/10; /* +/- 10% */ in main()
183 interval = max/4; /* in 4 steps each side */ in main()
185 for (tick = (systick - max); tick < (systick + max); tick += interval) { in main()
/tools/power/cpupower/lib/
A Dcpufreq.c226 unsigned long *max) in cpufreq_get_hardware_limits() argument
228 if ((!min) || (!max)) in cpufreq_get_hardware_limits()
235 *max = sysfs_cpufreq_get_one_value(cpu, CPUINFO_MAX_FREQ); in cpufreq_get_hardware_limits()
236 if (!*max) in cpufreq_get_hardware_limits()
269 if ((!policy->min) || (!policy->max)) { in cpufreq_get_policy()
619 char max[SYSFS_PATH_MAX]; in cpufreq_set_policy() local
628 if (policy->max < policy->min) in cpufreq_set_policy()
635 snprintf(max, SYSFS_PATH_MAX, "%lu", policy->max); in cpufreq_set_policy()
638 write_max_first = (old_min && (policy->max < old_min) ? 0 : 1); in cpufreq_set_policy()
642 max, strlen(max)); in cpufreq_set_policy()
[all …]
A Dcpufreq.h13 unsigned long max; member
87 unsigned long *max);
/tools/testing/selftests/pcie_bwctrl/
A Dset_pcie_cooling_state.sh45 local max
57 max=`cat $port/max_state`
59 delta=$((max-cur))
/tools/workqueue/
A Dwq_dump.py154 max_pool_id_len = max(max_pool_id_len, len(f'{pi}'))
155 max_ref_len = max(max_ref_len, len(f'{pool.refcnt.value_()}'))
186 field_len = max(len(str(cpu)), max_pool_id_len)
197 ucpus_len = max(cpumask_str_len, len("unbound_cpus"))
198 rcpus_len = max(cpumask_str_len, len("rescuer_cpus"))
/tools/testing/selftests/powerpc/copyloops/
A Dmemmove_validate.c13 size_t max(size_t a, size_t b) in max() function
40 for (len = 1; len < MAX_OFFSET - max(src_off, dst_off); len++) { in testcase_run()
/tools/perf/scripts/python/
A Dfutex-contention.py55 min, max, avg, count = lock_waits[tid, lock]
57 (process_names[tid], tid, lock, count, avg, max, min))
/tools/testing/selftests/mm/
A Dhugetlb_madv_vs_map.c87 int max = 10; in main() local
98 while (max--) { in main()
A Dhugetlb_fault_after_madv.c62 int max = 10000; in main() local
86 while (max--) { in main()
/tools/testing/selftests/bpf/progs/
A Dbpf_cc_cubic.c26 #define max(a, b) ((a) > (b) ? (a) : (b)) macro
68 rate *= max(tp->snd_cwnd, tp->packets_out); in tcp_update_pacing_rate()
94 sndcnt = max(prr_delivered - tp->prr_out, newly_acked_sacked); in tcp_cwnd_reduction()
100 sndcnt = max(sndcnt, (tp->prr_out ? 0 : 1)); in tcp_cwnd_reduction()
A Dbpf_dctcp.c17 #define max(a, b) ((a) > (b) ? (a) : (b)) macro
121 return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->dctcp_alpha) >> 11U), 2U); in BPF_PROG()
145 delivered_ce /= max(1U, delivered); in BPF_PROG()
160 tp->snd_ssthresh = max(tp->snd_cwnd >> 1U, 2U); in dctcp_react_to_loss()
234 return max(tcp_sk(sk)->snd_cwnd, ca->loss_cwnd); in BPF_PROG()
/tools/perf/util/bpf_skel/
A Dfunc_latency.bpf.c44 __s64 max; variable
123 if (delta > max) in update_latency()
124 max = delta; in update_latency()
/tools/power/cpupower/utils/helpers/
A Dbitmask.c17 #define max(a, b) ((a) > (b) ? (a) : (b)) macro
252 len += snprintf(buf + len, max(buflen - len, 0), ","); in emit()
254 len += snprintf(buf + len, max(buflen - len, 0), "%d", rbot); in emit()
256 len += snprintf(buf + len, max(buflen - len, 0), "%d-%d", in emit()

Completed in 39 milliseconds

12345678