Home
last modified time | relevance | path

Searched refs:pcnt (Results 1 – 18 of 18) sorted by relevance

/external/iptables/iptables/
Dip6tables-restore.c81 unsigned long long pcnt, bcnt; in parse_counters() local
84 ret = sscanf(string, "[%llu:%llu]", &pcnt, &bcnt); in parse_counters()
85 ctr->pcnt = pcnt; in parse_counters()
324 char *pcnt = NULL; in ip6tables_restore_main() local
344 pcnt = strtok(buffer+1, ":"); in ip6tables_restore_main()
345 if (!pcnt) in ip6tables_restore_main()
367 if (counters && pcnt && bcnt) { in ip6tables_restore_main()
369 add_argv((char *) pcnt); in ip6tables_restore_main()
Diptables-restore.c81 unsigned long long pcnt, bcnt; in parse_counters() local
84 ret = sscanf(string, "[%llu:%llu]", &pcnt, &bcnt); in parse_counters()
85 ctr->pcnt = pcnt; in parse_counters()
329 char *pcnt = NULL; in iptables_restore_main() local
349 pcnt = strtok(buffer+1, ":"); in iptables_restore_main()
350 if (!pcnt) in iptables_restore_main()
372 if (counters && pcnt && bcnt) { in iptables_restore_main()
374 add_argv((char *) pcnt); in iptables_restore_main()
Diptables-xml.c65 __u64 *pcnt, *bcnt; in parse_counters() local
68 pcnt = &ctr->pcnt; in parse_counters()
72 (unsigned long long *)pcnt, in parse_counters()
251 xmlAttrI("packet-count", (unsigned long long) ctr->pcnt); in openChain()
573 do_rule(char *pcnt, char *bcnt, int argc, char *argv[], int argvattr[]) in do_rule() argument
593 if (pcnt) in do_rule()
594 xmlAttrS("packet-count", pcnt); in do_rule()
737 char *pcnt = NULL; in iptables_xml_main() local
757 pcnt = strtok(buffer + 1, ":"); in iptables_xml_main()
758 if (!pcnt) in iptables_xml_main()
[all …]
Diptables.c486 print_num(counters.pcnt, (format|FMT_NOTABLE)); in print_header()
573 print_num(fw->counters.pcnt, format); in print_firewall()
1110 …printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule4()
1141 …printf(" -c %llu %llu", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt… in print_rule4()
1204 printf(" -c %llu %llu", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in list_rules()
1375 const char *pcnt = NULL, *bcnt = NULL; in do_command4() local
1696 pcnt = optarg; in do_command4()
1697 bcnt = strchr(pcnt + 1, ','); in do_command4()
1708 if (sscanf(pcnt, "%llu", &cnt) != 1) in do_command4()
1712 cs.fw.counters.pcnt = cnt; in do_command4()
Dip6tables.c481 print_num(counters.pcnt, (format|FMT_NOTABLE)); in print_header()
566 print_num(fw->counters.pcnt, format); in print_firewall()
1090 …printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in print_rule6()
1130 …printf(" -c %llu %llu", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt… in print_rule6()
1193 printf(" -c %llu %llu", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in list_rules()
1346 const char *pcnt = NULL, *bcnt = NULL; in do_command6() local
1669 pcnt = optarg; in do_command6()
1670 bcnt = strchr(pcnt + 1, ','); in do_command6()
1681 if (sscanf(pcnt, "%llu", &cnt) != 1) in do_command6()
1685 cs.fw6.counters.pcnt = cnt; in do_command6()
Diptables-save.c95 printf("[%llu:%llu]\n", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in do_output()
Dip6tables-save.c97 printf("[%llu:%llu]\n", (unsigned long long)count.pcnt, (unsigned long long)count.bcnt); in do_output()
/external/iptables/include/linux/netfilter/
Dx_tables.h101 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
102 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
105 __u64 pcnt, bcnt; /* Packet and byte counters */ member
/external/iproute2/include/linux/netfilter/
Dx_tables.h101 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
102 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
105 __u64 pcnt, bcnt; /* Packet and byte counters */ member
/external/linux-tools-perf/util/ui/browsers/
Dtop.c38 double pcnt; in perf_top_browser__write() local
40 pcnt = 100.0 - (100.0 * ((top_browser->sum_ksamples - syme->snap_count) / in perf_top_browser__write()
42 ui_browser__set_percent_color(browser, pcnt, current_entry); in perf_top_browser__write()
52 slsmg_printf("%4.1f%%", pcnt); in perf_top_browser__write()
/external/kernel-headers/original/linux/netfilter/
Dx_tables.h115 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
116 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
120 u_int64_t pcnt, bcnt; /* Packet and byte counters */ member
/external/tcpdump/
Dprint-smb.c93 trans2_findfirst(const u_char *param, const u_char *data, int pcnt, int dcnt) in trans2_findfirst() argument
102 smb_fdata(param, fmt, param + pcnt, unicodestr); in trans2_findfirst()
110 trans2_qfsinfo(const u_char *param, const u_char *data, int pcnt, int dcnt) in trans2_qfsinfo() argument
119 smb_fdata(param, fmt, param + pcnt, unicodestr); in trans2_qfsinfo()
180 int pcnt, dcnt; in print_trans2() local
185 pcnt = EXTRACT_LE_16BITS(w + 9 * 2); in print_trans2()
197 pcnt = EXTRACT_LE_16BITS(w + 3 * 2); in print_trans2()
203 printf("%s param_length=%d data_length=%d\n", fn->name, pcnt, dcnt); in print_trans2()
230 (*fn->descript.fn)(param, data, pcnt, dcnt); in print_trans2()
232 smb_fdata(param, f1 ? f1 : "Parameters=\n", param + pcnt, unicodestr); in print_trans2()
/external/elfutils/src/
Delflint.c799 int pcnt; in check_symtab() local
801 for (pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_symtab()
803 phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); in check_symtab()
808 if (pcnt == ehdr->e_phnum) in check_symtab()
956 for (int pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_symtab() local
959 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); in check_symtab()
3666 int pcnt; in check_sections() local
3670 for (pcnt = 0; pcnt < ehdr->e_phnum; ++pcnt) in check_sections()
3671 if ((phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem)) != NULL in check_sections()
3686 cnt, section_name (ebl, cnt), pcnt); in check_sections()
[all …]
/external/linux-tools-perf/
Dbuiltin-top.c335 double pcnt; in print_sym_table() local
343 pcnt = 100.0 - (100.0 * ((sum_ksamples - syme->snap_count) / in print_sym_table()
351 percent_color_fprintf(stdout, "%4.1f%%", pcnt); in print_sym_table()
/external/iptables/libiptc/
Dlibip6tc.c181 (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in dump_entry()
Dlibip4tc.c150 (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt); in dump_entry()
Dlibiptc.c2462 answer->pcnt = a->pcnt - b->pcnt; in subtract_counters()
/external/kernel-headers/original/linux/
Dsched.h549 pcnt; /* # of timeslices run on this cpu */ member