Home
last modified time | relevance | path

Searched refs:counters (Results 1 – 13 of 13) sorted by relevance

/net/netfilter/
Dxt_connbytes.c30 const struct nf_conn_counter *counters; in connbytes_mt() local
40 counters = acct->counter; in connbytes_mt()
45 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets); in connbytes_mt()
48 what = atomic64_read(&counters[IP_CT_DIR_REPLY].packets); in connbytes_mt()
51 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].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()
[all …]
Dxt_qtaguid_internal.h182 static inline uint64_t dc_sum_bytes(struct data_counters *counters, in dc_sum_bytes() argument
186 return counters->bpc[set][direction][IFS_TCP].bytes in dc_sum_bytes()
187 + counters->bpc[set][direction][IFS_UDP].bytes in dc_sum_bytes()
188 + counters->bpc[set][direction][IFS_PROTO_OTHER].bytes; in dc_sum_bytes()
191 static inline uint64_t dc_sum_packets(struct data_counters *counters, in dc_sum_packets() argument
195 return counters->bpc[set][direction][IFS_TCP].packets in dc_sum_packets()
196 + counters->bpc[set][direction][IFS_UDP].packets in dc_sum_packets()
197 + counters->bpc[set][direction][IFS_PROTO_OTHER].packets; in dc_sum_packets()
209 struct data_counters counters; member
Dxt_qtaguid.c167 static inline void dc_add_byte_packets(struct data_counters *counters, int set, in dc_add_byte_packets() argument
173 counters->bpc[set][direction][ifs_proto].bytes += bytes; in dc_add_byte_packets()
174 counters->bpc[set][direction][ifs_proto].packets += packets; in dc_add_byte_packets()
1255 data_counters_update(&tag_entry->counters, active_set, direction, in tag_stat_update()
1356 uid_tag_counters = &new_tag_stat->counters; in if_tag_stat_update()
1358 uid_tag_counters = &tag_stat_entry->counters; in if_tag_stat_update()
2554 cnts = &ts_entry->counters; in pp_stats_line()
Dxt_qtaguid_print.c165 counters_str = pp_data_counters(&ts->counters, true); in pp_tag_stat()
Dx_tables.c1700 void xt_percpu_counter_free(struct xt_counters *counters) in xt_percpu_counter_free() argument
1702 unsigned long pcnt = counters->pcnt; in xt_percpu_counter_free()
DKconfig506 include packet and byte counters in a rule.
/net/ipv4/netfilter/
Darp_tables.c237 counter = xt_get_this_cpu_counter(&e->counters); in arpt_do_table()
327 e->counters.pcnt = pos; in mark_source_chains()
358 pos = e->counters.pcnt; in mark_source_chains()
359 e->counters.pcnt = 0; in mark_source_chains()
375 e->counters.pcnt = pos; in mark_source_chains()
397 e->counters.pcnt = pos; in mark_source_chains()
429 if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) in find_check_entry()
448 xt_percpu_counter_free(&e->counters); in find_check_entry()
511 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks()
528 xt_percpu_counter_free(&e->counters); in cleanup_entry()
[all …]
Dip_tables.c315 counter = xt_get_this_cpu_counter(&e->counters); in ipt_do_table()
400 e->counters.pcnt = pos; in mark_source_chains()
429 pos = e->counters.pcnt; in mark_source_chains()
430 e->counters.pcnt = 0; in mark_source_chains()
446 e->counters.pcnt = pos; in mark_source_chains()
468 e->counters.pcnt = pos; in mark_source_chains()
553 if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) in find_check_entry()
592 xt_percpu_counter_free(&e->counters); in find_check_entry()
656 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks()
680 xt_percpu_counter_free(&e->counters); in cleanup_entry()
[all …]
/net/ipv6/netfilter/
Dip6_tables.c347 counter = xt_get_this_cpu_counter(&e->counters); in ip6t_do_table()
428 e->counters.pcnt = pos; in mark_source_chains()
457 pos = e->counters.pcnt; in mark_source_chains()
458 e->counters.pcnt = 0; in mark_source_chains()
474 e->counters.pcnt = pos; in mark_source_chains()
496 e->counters.pcnt = pos; in mark_source_chains()
583 if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) in find_check_entry()
621 xt_percpu_counter_free(&e->counters); in find_check_entry()
685 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks()
708 xt_percpu_counter_free(&e->counters); in cleanup_entry()
[all …]
/net/bridge/netfilter/
Debtables.c206 cb_base = COUNTER_BASE(private->counters, private->nentries, in ebt_do_table()
965 struct ebt_counter *counters, unsigned int nentries) in get_counters() argument
971 memcpy(counters, oldcounters, in get_counters()
980 counters[i].pcnt += counter_base[i].pcnt; in get_counters()
981 counters[i].bcnt += counter_base[i].bcnt; in get_counters()
1042 get_counters(t->private->counters, counterstmp, in do_replace_finish()
1054 copy_to_user(repl->counters, counterstmp, in do_replace_finish()
1140 memset(newinfo->counters, 0, countersize); in do_replace()
1175 repl->counters != NULL || input_table->private != NULL) { in ebt_register_table()
1204 memset(newinfo->counters, 0, countersize); in ebt_register_table()
[all …]
/net/batman-adv/
Dmain.h296 u64 *counters, sum = 0; in batadv_sum_counter() local
300 counters = per_cpu_ptr(bat_priv->bat_counters, cpu); in batadv_sum_counter()
301 sum += counters[idx]; in batadv_sum_counter()
/net/mac80211/
DKconfig304 as well as a few selected dot11 counters. These will be
307 Note that some of the counters are not concurrency safe
/net/sched/
DKconfig414 bool "Performance counters support"