Home
last modified time | relevance | path

Searched refs:pct (Results 1 – 25 of 43) sorted by relevance

12

/linux/tools/testing/selftests/net/forwarding/
H A Dsch_red.sh230 local pct=$((100 * nmarked_d / npackets_d))
232 echo $pct
233 ((pct $cond))
248 local pct=$((100 * nmirrored_d / npackets_d))
250 echo $pct
251 ((pct $cond))
259 local pct
268 pct=$(check_marking "== 0")
269 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected == 0."
278 pct=$(check_marking ">= 95")
[all …]
H A Dcustom_multipath_hash.sh269 local pct=$(echo "$diff / $sum * 100" | bc -l)
270 local is_balanced=$(echo "-20 <= $pct && $pct <= 20" | bc)
/linux/include/linux/
H A Dposix-timers.h88 static inline void posix_cputimers_init(struct posix_cputimers *pct) in posix_cputimers_init() argument
90 memset(pct, 0, sizeof(*pct)); in posix_cputimers_init()
91 pct->bases[0].nextevt = U64_MAX; in posix_cputimers_init()
92 pct->bases[1].nextevt = U64_MAX; in posix_cputimers_init()
93 pct->bases[2].nextevt = U64_MAX; in posix_cputimers_init()
96 void posix_cputimers_group_init(struct posix_cputimers *pct, u64 cpu_limit);
98 static inline void posix_cputimers_rt_watchdog(struct posix_cputimers *pct, in posix_cputimers_rt_watchdog() argument
101 pct->bases[CPUCLOCK_SCHED].nextevt = runtime; in posix_cputimers_rt_watchdog()
122 static inline void posix_cputimers_init(struct posix_cputimers *pct) { } in posix_cputimers_init() argument
123 posix_cputimers_group_init(struct posix_cputimers * pct,u64 cpu_limit) posix_cputimers_group_init() argument
[all...]
/linux/kernel/time/
H A Dposix-cpu-timers.c24 void posix_cputimers_group_init(struct posix_cputimers *pct, u64 cpu_limit) in posix_cputimers_group_init() argument
26 posix_cputimers_init(pct); in posix_cputimers_group_init()
28 pct->bases[CPUCLOCK_PROF].nextevt = cpu_limit * NSEC_PER_SEC; in posix_cputimers_group_init()
29 pct->timers_active = true; in posix_cputimers_group_init()
152 static inline bool expiry_cache_is_inactive(const struct posix_cputimers *pct) in expiry_cache_is_inactive() argument
154 return !(~pct->bases[CPUCLOCK_PROF].nextevt | in expiry_cache_is_inactive()
155 ~pct->bases[CPUCLOCK_VIRT].nextevt | in expiry_cache_is_inactive()
156 ~pct->bases[CPUCLOCK_SCHED].nextevt); in expiry_cache_is_inactive()
276 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; in thread_group_sample_cputime() local
278 WARN_ON_ONCE(!pct in thread_group_sample_cputime()
298 struct posix_cputimers *pct = &tsk->signal->posix_cputimers; thread_group_start_cputime() local
343 struct posix_cputimers *pct = &p->signal->posix_cputimers; cpu_clock_sample_group() local
531 cleanup_timers(struct posix_cputimers * pct) cleanup_timers() argument
858 collect_posix_cputimers(struct posix_cputimers * pct,u64 * samples,struct list_head * firing) collect_posix_cputimers() argument
900 struct posix_cputimers *pct = &tsk->posix_cputimers; check_thread_timers() local
940 struct posix_cputimers *pct = &sig->posix_cputimers; stop_process_timers() local
978 struct posix_cputimers *pct = &sig->posix_cputimers; check_process_timers() local
1094 task_cputimers_expired(const u64 * samples,struct posix_cputimers * pct) task_cputimers_expired() argument
1117 struct posix_cputimers *pct = &tsk->posix_cputimers; fastpath_timer_check() local
[all...]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dsch_red_core.sh406 local pct=$((100 * nmarked_d / npackets_d))
408 echo $pct
409 ((pct $cond))
419 local pct
428 pct=$(check_marking "$get_nmarked" $vlan "== 0")
429 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected == 0."
438 pct=$(check_marking "$get_nmarked" $vlan ">= 95")
439 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected >= 95."
514 local pct
525 pct=$(check_marking get_nmarked $vlan "== 0")
[all …]
H A Dtc_sample.sh228 local pkts pct
244 pct=$((100 * (pkts - 10000) / 10000))
245 (( -25 <= pct && pct <= 25))
246 …check_err $? "Expected 10000 packets, got $pkts packets, which is $pct% off. Required accuracy is …
476 local backlog pct occ
510 pct=$((100 * (occ - backlog) / backlog))
511 (( -1 <= pct && pct <= 1))
512 …gestion of $backlog bytes, but sampled congestion is $occ bytes, which is $pct% off. Required accu…
578 local pkts pct
597 pct=$((100 * (pkts - 10000) / 10000))
[all …]
H A Ddevlink_trap_policer.sh205 local rate pct drop_rate
222 pct=$((100 * (rate - 1000) / 1000))
223 ((-10 <= pct && pct <= 10))
224 …check_err $? "Expected rate 1000 pps, got $rate pps, which is $pct% off. Required accuracy is +-10…
/linux/drivers/powercap/
H A Ddtpm.c37 static struct powercap_control_type *pct; variable
338 powercap_unregister_zone(pct, &dtpm->zone); in dtpm_unregister()
369 if (!pct) in dtpm_register()
390 pcz = powercap_register_zone(&dtpm->zone, pct, name, in dtpm_register()
558 if (pct) { in dtpm_create_hierarchy()
563 pct = powercap_register_control_type(NULL, "dtpm", NULL); in dtpm_create_hierarchy()
564 if (IS_ERR(pct)) { in dtpm_create_hierarchy()
566 ret = PTR_ERR(pct); in dtpm_create_hierarchy()
608 powercap_unregister_control_type(pct); in dtpm_create_hierarchy()
610 pct = NULL; in dtpm_create_hierarchy()
[all …]
/linux/tools/testing/selftests/ptp/
H A Dtestptp.c162 struct ptp_clock_time *pct; in main() local
539 pct = &sysoff->ts[0]; in main()
541 t1 = pctns(pct+2*i); in main()
542 tp = pctns(pct+2*i+1); in main()
543 t2 = pctns(pct+2*i+2); in main()
548 (pct+2*i)->sec, (pct+2*i)->nsec); in main()
550 (pct+2*i+1)->sec, (pct+2*i+1)->nsec); in main()
552 (pct+2*i+2)->sec, (pct+2*i+2)->nsec); in main()
/linux/tools/perf/util/
H A Dstream.c230 double pct; in print_callchain_pair() local
234 pct = (double)base_cnode->hit / (double)es_base->streams_hits; in print_callchain_pair()
236 callchain_avg_cycles(base_cnode), pct * 100.0); in print_callchain_pair()
238 pct = (double)pair_cnode->hit / (double)es_pair->streams_hits; in print_callchain_pair()
240 callchain_avg_cycles(pair_cnode), pct * 100.0); in print_callchain_pair()
273 double pct; in print_stream_callchain() local
277 pct = (double)cnode->hit / (double)es->streams_hits; in print_stream_callchain()
279 callchain_avg_cycles(cnode), pct * 100.0); in print_stream_callchain()
H A Dstat-display.c116 double pct) in print_noise_pct_std() argument
118 if (pct) in print_noise_pct_std()
119 fprintf(config->output, " ( +-%6.2f%% )", pct); in print_noise_pct_std()
123 double pct) in print_noise_pct_csv() argument
125 fprintf(config->output, "%s%.2f%%", config->csv_sep, pct); in print_noise_pct_csv()
129 double pct) in print_noise_pct_json() argument
131 fprintf(config->output, "\"variance\" : %.2f, ", pct); in print_noise_pct_json()
137 double pct = rel_stddev_stats(total, avg); in print_noise_pct() local
141 print_noise_pct_json(config, pct); in print_noise_pct()
144 print_noise_pct_csv(config, pct); in print_noise_pct()
[all...]
/linux/drivers/ptp/
H A Dptp_chardev.c173 struct ptp_clock_time *pct; in ptp_ioctl() local
398 pct = &sysoff->ts[0]; in ptp_ioctl()
401 pct->sec = ts.tv_sec; in ptp_ioctl()
402 pct->nsec = ts.tv_nsec; in ptp_ioctl()
403 pct++; in ptp_ioctl()
410 pct->sec = ts.tv_sec; in ptp_ioctl()
411 pct->nsec = ts.tv_nsec; in ptp_ioctl()
412 pct++; in ptp_ioctl()
415 pct->sec = ts.tv_sec; in ptp_ioctl()
416 pct->nsec = ts.tv_nsec; in ptp_ioctl()
/linux/arch/powerpc/include/asm/
H A Dnmi.h7 void watchdog_hardlockup_set_timeout_pct(u64 pct);
9 static inline void watchdog_hardlockup_set_timeout_pct(u64 pct) {} in watchdog_hardlockup_set_timeout_pct() argument
/linux/drivers/xen/
H A Dxen-acpi-processor.c188 static int xen_copy_pct_data(struct acpi_pct_register *pct, in xen_copy_pct_data() argument
195 dst_pct->descriptor = pct->descriptor; in xen_copy_pct_data()
196 dst_pct->length = pct->length; in xen_copy_pct_data()
197 dst_pct->space_id = pct->space_id; in xen_copy_pct_data()
198 dst_pct->bit_width = pct->bit_width; in xen_copy_pct_data()
199 dst_pct->bit_offset = pct->bit_offset; in xen_copy_pct_data()
200 dst_pct->reserved = pct->reserved; in xen_copy_pct_data()
201 dst_pct->address = pct->address; in xen_copy_pct_data()
/linux/Documentation/devicetree/bindings/arc/
H A Dpct.txt14 "snps,arc700-pct"
19 compatible = "snps,arc700-pct";
/linux/drivers/acpi/
H A Dprocessor_perflib.c217 union acpi_object *pct = NULL; in acpi_processor_get_performance_control() local
226 pct = (union acpi_object *)buffer.pointer; in acpi_processor_get_performance_control()
227 if (!pct || pct->type != ACPI_TYPE_PACKAGE || pct->package.count != 2) { in acpi_processor_get_performance_control()
237 obj = pct->package.elements[0]; in acpi_processor_get_performance_control()
252 obj = pct->package.elements[1]; in acpi_processor_get_performance_control()
/linux/arch/arc/boot/dts/
H A Dnsim_700.dts55 arcpct0: pct {
56 compatible = "snps,arc700-pct";
H A Dhaps_hs_idu.dts68 arcpct0: pct {
69 compatible = "snps,archs-pct";
H A Dnsimosci.dts84 arcpct0: pct {
85 compatible = "snps,arc700-pct";
H A Dnsimosci_hs.dts84 arcpct0: pct {
85 compatible = "snps,archs-pct";
H A Dhaps_hs.dts63 arcpct0: pct {
64 compatible = "snps,archs-pct";
H A Dnsimosci_hs_idu.dts92 arcpct0: pct {
93 compatible = "snps,archs-pct";
H A Daxc001.dtsi77 arcpct0: pct {
78 compatible = "snps,arc700-pct";
/linux/arch/powerpc/kernel/
H A Dwatchdog.c585 void watchdog_hardlockup_set_timeout_pct(u64 pct) in watchdog_hardlockup_set_timeout_pct() argument
587 pr_info("Set the NMI watchdog timeout factor to %llu%%\n", pct); in watchdog_hardlockup_set_timeout_pct()
588 WRITE_ONCE(wd_timeout_pct, pct); in watchdog_hardlockup_set_timeout_pct()
/linux/tools/perf/bench/
H A Depoll-ctl.c204 static void init_fdmaps(struct worker *w, int pct) in init_fdmaps() argument
210 if (!pct) in init_fdmaps()
213 inc = 100/pct; in init_fdmaps()

12