Searched refs:counters (Results 1 – 11 of 11) sorted by relevance
| /net/netfilter/ |
| A D | xt_connbytes.c | 30 const struct nf_conn_counter *counters; in connbytes_mt() local 40 counters = acct->counter; in connbytes_mt() 48 what = atomic64_read(&counters[IP_CT_DIR_REPLY].packets); in connbytes_mt() 52 what += atomic64_read(&counters[IP_CT_DIR_REPLY].packets); in connbytes_mt() 59 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt() 62 what = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt() 65 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt() 66 what += atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt() 77 bytes = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt() 82 atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt() [all …]
|
| A D | x_tables.c | 1370 struct xt_counters *xt_counters_alloc(unsigned int counters) in xt_counters_alloc() argument 1374 if (counters == 0 || counters > INT_MAX / sizeof(*mem)) in xt_counters_alloc() 1377 counters *= sizeof(*mem); in xt_counters_alloc() 1378 if (counters > XT_MAX_TABLE_SIZE) in xt_counters_alloc() 1381 return vzalloc(counters); in xt_counters_alloc() 1949 void xt_percpu_counter_free(struct xt_counters *counters) in xt_percpu_counter_free() argument 1951 unsigned long pcnt = counters->pcnt; in xt_percpu_counter_free()
|
| /net/ipv4/netfilter/ |
| A D | arp_tables.c | 662 if (counters == NULL) in alloc_counters() 667 return counters; in alloc_counters() 682 if (IS_ERR(counters)) in copy_entries_to_user() 699 &counters[num], in copy_entries_to_user() 713 vfree(counters); in copy_entries_to_user() 895 if (!counters) { in __do_replace() 939 vfree(counters); in __do_replace() 946 vfree(counters); in __do_replace() 1141 memcpy(&de->counters, &e->counters, sizeof(e->counters)); in compat_copy_entry_from_user() 1319 copy_to_user(&ce->counters, &counters[i], in compat_copy_entry_to_user() [all …]
|
| A D | ip_tables.c | 801 if (counters == NULL) in alloc_counters() 806 return counters; in alloc_counters() 822 if (IS_ERR(counters)) in copy_entries_to_user() 841 &counters[num], in copy_entries_to_user() 866 vfree(counters); in copy_entries_to_user() 1047 if (!counters) { in __do_replace() 1090 vfree(counters); in __do_replace() 1097 vfree(counters); in __do_replace() 1232 copy_to_user(&ce->counters, &counters[i], in compat_copy_entry_to_user() 1368 memcpy(&de->counters, &e->counters, sizeof(e->counters)); in compat_copy_entry_from_user() [all …]
|
| /net/ipv6/netfilter/ |
| A D | ip6_tables.c | 817 if (counters == NULL) in alloc_counters() 822 return counters; in alloc_counters() 838 if (IS_ERR(counters)) in copy_entries_to_user() 857 &counters[num], in copy_entries_to_user() 882 vfree(counters); in copy_entries_to_user() 1064 if (!counters) { in __do_replace() 1107 vfree(counters); in __do_replace() 1114 vfree(counters); in __do_replace() 1248 copy_to_user(&ce->counters, &counters[i], in compat_copy_entry_to_user() 1384 memcpy(&de->counters, &e->counters, sizeof(e->counters)); in compat_copy_entry_from_user() [all …]
|
| /net/bridge/netfilter/ |
| A D | ebtables.c | 994 memcpy(counters, oldcounters, in get_counters() 1076 copy_to_user(repl->counters, counterstmp, in do_replace_finish() 1140 memset(newinfo->counters, 0, countersize); in do_replace() 1222 memset(newinfo->counters, 0, countersize); in ebt_register_table() 1402 if (copy_from_user(tmp, counters, in do_update_counters() 1558 oldcounters = t->private->counters; in copy_everything_to_user() 1563 oldcounters = t->table->counters; in copy_everything_to_user() 1601 compat_uptr_t counters; member 1866 oldcounters = t->private->counters; in compat_copy_everything_to_user() 1871 oldcounters = t->table->counters; in compat_copy_everything_to_user() [all …]
|
| /net/ipv4/ |
| A D | tcp_ao.c | 101 atomic64_inc(&ao->counters.dropped_icmp); in tcp_ao_ignore_icmp() 912 atomic64_inc(&info->counters.pkt_bad); in tcp_ao_verify_hash() 928 atomic64_inc(&info->counters.pkt_bad); in tcp_ao_verify_hash() 936 atomic64_inc(&info->counters.pkt_good); in tcp_ao_verify_hash() 1070 atomic64_inc(&info->counters.key_not_found); in tcp_inbound_ao_hash() 2019 atomic64_set(&ao_info->counters.pkt_good, cmd.pkt_good); in tcp_ao_info_cmd() 2020 atomic64_set(&ao_info->counters.pkt_bad, cmd.pkt_bad); in tcp_ao_info_cmd() 2352 out.pkt_good = atomic64_read(&ao->counters.pkt_good); in tcp_ao_get_sock_info() 2353 out.pkt_bad = atomic64_read(&ao->counters.pkt_bad); in tcp_ao_get_sock_info() 2355 out.pkt_ao_required = atomic64_read(&ao->counters.ao_required); in tcp_ao_get_sock_info() [all …]
|
| /net/ipv6/ |
| A D | seg6_local.c | 2009 struct seg6_local_counters *counters) in seg6_local_fill_nla_counters() argument 2011 if (nla_put_u64_64bit(skb, SEG6_LOCAL_CNT_PACKETS, counters->packets, in seg6_local_fill_nla_counters() 2015 if (nla_put_u64_64bit(skb, SEG6_LOCAL_CNT_BYTES, counters->bytes, in seg6_local_fill_nla_counters() 2019 if (nla_put_u64_64bit(skb, SEG6_LOCAL_CNT_ERRORS, counters->errors, in seg6_local_fill_nla_counters() 2028 struct seg6_local_counters counters = { 0, 0, 0 }; in put_nla_counters() local 2051 counters.packets += packets; in put_nla_counters() 2052 counters.bytes += bytes; in put_nla_counters() 2053 counters.errors += errors; in put_nla_counters() 2056 rc = seg6_local_fill_nla_counters(skb, &counters); in put_nla_counters()
|
| /net/batman-adv/ |
| A D | mesh-interface.c | 88 u64 *counters, sum = 0; in batadv_sum_counter() local 92 counters = per_cpu_ptr(bat_priv->bat_counters, cpu); in batadv_sum_counter() 93 sum += counters[idx]; in batadv_sum_counter()
|
| /net/mac80211/ |
| A D | Kconfig | 300 as well as a few selected dot11 counters. These will be 303 Note that some of the counters are not concurrency safe
|
| /net/sched/ |
| A D | Kconfig | 527 bool "Performance counters support"
|
Completed in 44 milliseconds