Home
last modified time | relevance | path

Searched refs:percent (Results 1 – 25 of 57) sorted by relevance

123

/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_scrub/
H A Dzpool_scrub_003_pos.ksh46 typeset -i percent
47 percent=$($ZPOOL status $TESTPOOL | $GREP "^ scrub" | \
50 percent=100
52 $ECHO $percent
59 typeset -i PERCENT=30 percent=0
60 while ((percent < PERCENT)) ; do
61 percent=$(get_scrub_percent)
65 percent=$(get_scrub_percent)
66 if ((percent > PERCENT)); then
/titanic_41/usr/src/cmd/make/bin/
H A Dimplicit.cc61 …ic void create_target_group_and_dependencies_list(Name target, Percent pat_rule, String percent);
62 static Boolean match_found_with_pattern(Name target, Percent pat_rule, String percent, wchar_t *pe…
63 static void construct_string_from_pattern(Percent pat_rule, String percent, String result);
446 line->body.line.percent = NULL; in find_suffix_rule()
803 String_rec percent; in find_percent_rule() local
857 if (!match_found_with_pattern(true_target, pat_rule, &percent, percent_buf)) { in find_percent_rule()
868 if (pat_depe->name->percent) { in find_percent_rule()
872 construct_string_from_pattern(pat_depe, &percent, &string); in find_percent_rule()
945 if (pat_depe->name->percent) { in find_percent_rule()
1003 if (pat_depe->name->percent) { in find_percent_rule()
[all …]
H A Dmisc.cc314 Percent percent, percent_depe; in dump_make_state() local
376 for (percent = percent_list; in dump_make_state()
377 percent != NULL; in dump_make_state()
378 percent = percent->next) { in dump_make_state()
380 percent->name->string_mb); in dump_make_state()
382 for (percent_depe = percent->dependencies; in dump_make_state()
390 for (rule = percent->command_template; in dump_make_state()
H A Ddoname.cc200 line->body.line.percent = NULL; in enter_explicit_rule_from_dynamic_rule()
387 line->body.line.percent = NULL; in doname()
580 line->body.line.percent = in doname()
694 line->body.line.percent = NULL; in doname()
2228 tmp_name = line->body.line.percent; in build_command_strings()
2794 line->body.line.percent = NULL; in sccs_get()
2883 wchar_t *percent; in add_pattern_conditionals() local
2895 percent = (wchar_t *) wcschr(pattern, (int) percent_char); in add_pattern_conditionals()
2896 if (!wcb.equaln(pattern, percent-pattern) || in add_pattern_conditionals()
2897 !IS_WEQUAL(wcb.get_string(wcb.length()-wcslen(percent+1)), percent+1)) { in add_pattern_conditionals()
/titanic_41/usr/src/cmd/stat/mpstat/
H A Dmpstat.c221 double etime, percent; in print_cpu() local
250 percent = 100.0 / etime / hz; in print_cpu()
269 kstat_delta(old_sys, &c2->cs_sys, "cpu_ticks_user") * percent, in print_cpu()
270 kstat_delta(old_sys, &c2->cs_sys, "cpu_ticks_kernel") * percent, in print_cpu()
271 kstat_delta(old_sys, &c2->cs_sys, "cpu_ticks_wait") * percent, in print_cpu()
272 kstat_delta(old_sys, &c2->cs_sys, "cpu_ticks_idle") * percent); in print_cpu()
399 double etime, percent; in print_pset() local
436 percent = 100.0 / p2->ps_nr_cpus / etime / hz; in print_pset()
455 kstat_delta(&old_sys, &new_sys, "cpu_ticks_user") * percent, in print_pset()
456 kstat_delta(&old_sys, &new_sys, "cpu_ticks_kernel") * percent, in print_pset()
[all …]
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/
H A Dthread.c681 size_t percent; in stk_compute_percent() local
692 percent = t_stk - sp + 1; in stk_compute_percent()
702 percent = sp - t_stk + 1; in stk_compute_percent()
705 percent = ((100 * percent) / s) + 1; in stk_compute_percent()
706 if (percent > 100) { in stk_compute_percent()
707 percent = 100; in stk_compute_percent()
709 return (percent); in stk_compute_percent()
727 size_t percent = 0; in stackinfo() local
805 (int)log[i].percent); in stackinfo()
875 percent = stk_compute_percent(t.t_stk, t.t_stkbase, in stackinfo()
[all …]
/titanic_41/usr/src/lib/libadm/common/
H A Dcktime.c312 int percent = 0; in fmtcheck() local
317 if (percent == 0) in fmtcheck()
318 percent = 1; in fmtcheck()
330 if (percent == 1) in fmtcheck()
331 percent = 0; in fmtcheck()
338 if (percent == 1) in fmtcheck()
345 return (percent); in fmtcheck()
H A Dckdate.c263 int percent = 0; in fmtcheck() local
268 if (percent == 0) in fmtcheck()
269 percent = 1; in fmtcheck()
282 if (percent == 1) in fmtcheck()
283 percent = 0; in fmtcheck()
291 if (percent == 1) in fmtcheck()
298 return (percent); in fmtcheck()
/titanic_41/usr/src/lib/libsqlite/tool/
H A Dspaceanal.tcl127 proc percent {num denom} { procedure
165 [percent [expr {$pri_pages+$ovfl_pages}] $::file_pgcnt]
169 statline "Bytes of payload" $payload [percent $payload $storage]
170 statline "Bytes of data" $data [percent $data $storage]
172 statline "Bytes of key" $key [percent $key $storage]
180 statline "Entries that use overflow" $n_ovfl [percent $n_ovfl $nentry]
185 [percent $pri_unused [expr {$pri_pages*1024}]]
187 [percent $ovfl_unused [expr {$ovfl_pages*1024}]]
190 [percent $allunused [expr {$allpgs*1024}]]
207 statline {Pages that store data} $usedcnt [percent $usedcnt $file_pgcnt]
[all …]
/titanic_41/usr/src/lib/fm/libfmd_msg/common/
H A Dfmd_msg_test.out28 code TEST-8000-08 item 3 = <<This entry tests the percent character escape sequence: %>>
37 AUTO-RESPONSE: This entry tests the percent character escape sequence: %
44 code TEST-8000-08 item 3 = <<This entry tests the percent character escape sequence: %>>
53 AUTO-RESPONSE: This entry tests the percent character escape sequence: %
62 AUTO-RESPONSE: This entry tests the percent character escape sequence: %
69 code TEST-8000-08 item 3 = <<This entry tests the percent character escape sequence: %>>
78 AUTO-RESPONSE: This entry tests the percent character escape sequence: %
85 code TEST-8000-08 item 3 = <<This entry tests the percent character escape sequence: %>>
94 AUTO-RESPONSE: This entry tests the percent character escape sequence: %
103 AUTO-RESPONSE: This entry tests the percent character escape sequence: %
/titanic_41/usr/src/cmd/make/lib/mksh/
H A Dmacro.cc274 wchar_t *percent = (wchar_t *)NULL; in expand_macro() local
478 ((percent = (wchar_t *) wcschr(colon + 1, in expand_macro()
520 if ((percent = (wchar_t *) wcschr(colon + 1, in expand_macro()
524 if (eq < percent) { in expand_macro()
528 if (percent > (colon + 1)) { in expand_macro()
529 tmp_len = percent - colon; in expand_macro()
536 percent - colon - 1); in expand_macro()
537 left_head[percent-colon-1] = (int) nul_char; in expand_macro()
538 left_head_len = percent-colon-1; in expand_macro()
544 if (eq > percent+1) { in expand_macro()
[all …]
/titanic_41/usr/src/test/zfs-tests/include/
H A Dmath.shlib17 # Return 0 if the percentage difference between $a and $b is $percent or
30 typeset percent=$3
39 log_note "Comparing $a and $b given $percent% (calculated: $p%)"
40 [[ '1' = $($ECHO "scale=2; if ($p >= $percent) 1" | $BC) ]] && return 0
/titanic_41/usr/src/uts/common/disp/
H A Dthread.c1947 size_t percent = 0; in stkinfo_end() local
2014 percent = stkinfo_percent(end, in stkinfo_end()
2026 percent = stkinfo_percent(start, in stkinfo_end()
2035 size_t, stksz, size_t, percent); in stkinfo_end()
2037 if (percent == 0) { in stkinfo_end()
2042 if (full == KMEM_STKINFO_LOG_SIZE && percent < smallest_percent) { in stkinfo_end()
2052 if (kmem_stkinfo_log[i].percent == 0) { in stkinfo_end()
2058 smallest = kmem_stkinfo_log[i].percent; in stkinfo_end()
2062 if (kmem_stkinfo_log[i].percent < smallest) { in stkinfo_end()
2063 smallest = kmem_stkinfo_log[i].percent; in stkinfo_end()
[all …]
/titanic_41/usr/src/uts/common/inet/ipd/
H A Dipd.c563 ipd_toggle_corrupt(ipd_netstack_t *ins, int percent) in ipd_toggle_corrupt() argument
569 if (percent < 0 || percent > 100) in ipd_toggle_corrupt()
576 if (percent == ins->ipdn_corrupt) in ipd_toggle_corrupt()
579 ins->ipdn_corrupt = percent; in ipd_toggle_corrupt()
580 rval = ipd_check_hooks(ins, IPD_CORRUPT, percent != 0); in ipd_toggle_corrupt()
624 ipd_toggle_drop(ipd_netstack_t *ins, int percent) in ipd_toggle_drop() argument
630 if (percent < 0 || percent > 100) in ipd_toggle_drop()
637 if (percent == ins->ipdn_drop) in ipd_toggle_drop()
640 ins->ipdn_drop = percent; in ipd_toggle_drop()
641 rval = ipd_check_hooks(ins, IPD_DROP, percent != 0); in ipd_toggle_drop()
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dprogressmeter.c128 int percent; in refresh_progress_meter() local
178 percent = (int)(((float)cur_pos / end_pos) * 100); in refresh_progress_meter()
180 percent = 100; in refresh_progress_meter()
182 " %3d%% ", percent); in refresh_progress_meter()
/titanic_41/usr/src/cmd/printf/
H A Dprintf.c445 escape(char *fmt, int percent, size_t *len) in escape() argument
472 if (!percent) { in escape()
497 c = (!percent && *fmt == '0') ? 4 : 3; in escape()
504 if (percent && value == '%') { in escape()
/titanic_41/usr/src/tools/cscope-fast/
H A Dmouse.h35 int percent; member
H A Dmouse.c214 m.percent = getpercent(); in getmouseevent()
/titanic_41/usr/src/cmd/sa/
H A Dsar.c94 static float tdiff, sec_diff, totsec_diff = 0.0, percent; variable
543 percent = 100.0 / tdiff; in prpass()
819 (float)xx->csi.cpu[1] * percent, in prt_u_opt()
820 (float)xx->csi.cpu[2] * percent, in prt_u_opt()
821 (float)xx->csi.cpu[3] * percent, in prt_u_opt()
822 (float)xx->csi.cpu[0] * percent); in prt_u_opt()
1114 percent = 100.0 / tdiff; in prtavg()
/titanic_41/usr/src/cmd/fdisk/
H A Dfdisk.c3071 int i, j, percent = -1; local
3141 if ((percent = atoi(s)) > 100) {
3148 if (percent < 1) {
3156 if (percent == 100)
3159 cylen = (Numcyl_usable * percent) / 100;
3661 unsigned int startcyl, endcyl, length, percent, remainder; local
3827 percent = length * 100 / Numcyl_usable;
3831 percent++;
3836 if (percent > 100)
3837 percent = 100;
[all …]
/titanic_41/usr/src/uts/common/io/lvm/mirror/
H A Dmirror_ioctl.c1522 u_longlong_t percent; in mirror_get_resync() local
1546 percent = un->un_rs_resync_done; in mirror_get_resync()
1549 percent *= 1000; in mirror_get_resync()
1550 percent /= d; in mirror_get_resync()
1551 if (percent > 1000) in mirror_get_resync()
1552 percent = 1000; in mirror_get_resync()
1554 percent *= 100; in mirror_get_resync()
1555 percent /= d; in mirror_get_resync()
1557 ri->ri_percent_done = (int)percent; in mirror_get_resync()
1572 percent = cnt; in mirror_get_resync()
[all …]
/titanic_41/usr/src/uts/common/io/lvm/raid/
H A Draid_ioctl.c1606 u_longlong_t percent; in raid_get_resync() local
1619 percent = d ? ((1000 * un->un_resync_line_index) / d) : 0; in raid_get_resync()
1620 if (percent > 1000) in raid_get_resync()
1621 percent = 1000; /* can't go over 100% */ in raid_get_resync()
1622 rip->ri_percent_done = (int)percent; in raid_get_resync()
1629 percent = in raid_get_resync()
1631 if (percent > 1000) in raid_get_resync()
1632 percent = 1000; /* can't go over 100% */ in raid_get_resync()
1633 rip->ri_percent_done = (int)percent; in raid_get_resync()
1637 percent = in raid_get_resync()
[all …]
/titanic_41/usr/src/cmd/stat/iostat/
H A Diostat.c164 static double percent; /* 100 / etime */ variable
291 percent = (getime > 0.0) ? 100.0 / getime : 0.0; in main()
1572 push_out(fstr, user * percent, kern * percent, in print_cpu_data()
1574 idle * percent); in print_cpu_data()
/titanic_41/usr/src/cmd/fm/dicts/
H A DTEST.po36 msgstr "This entry tests the percent character escape sequence: %%"
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_trans.c1262 int percent; in log_report() local
1287 percent = ((u_longlong_t)blksinuse * 100) / nblks; in log_report()
1290 percent, blksinuse, nblks) == EOF) { in log_report()
1295 percent = ((u_longlong_t)mt->un_l_resv * 100) / in log_report()
1299 percent, mt->un_l_resv, mt->un_l_maxresv) == EOF) { in log_report()

123