Searched refs:counters (Results 1 - 25 of 73) sorted by relevance

123

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/netfilter/
H A Dxt_connbytes.c34 const struct ip_conntrack_counter *counters; local
39 counters = ct->counters;
45 what = counters[IP_CT_DIR_ORIGINAL].packets;
48 what = counters[IP_CT_DIR_REPLY].packets;
51 what = counters[IP_CT_DIR_ORIGINAL].packets;
52 what += counters[IP_CT_DIR_REPLY].packets;
59 what = counters[IP_CT_DIR_ORIGINAL].bytes;
62 what = counters[IP_CT_DIR_REPLY].bytes;
65 what = counters[IP_CT_DIR_ORIGINA
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/mips/oprofile/
H A Dop_model_mipsxx.c96 unsigned int counters = op_model_mipsxx_ops.num_counters; local
100 for (i = 0; i < counters; i++) {
123 unsigned int counters = op_model_mipsxx_ops.num_counters; local
125 switch (counters) {
141 /* Start all counters on current CPU */
144 unsigned int counters = op_model_mipsxx_ops.num_counters; local
146 switch (counters) {
158 /* Stop all counters on current CPU */
161 unsigned int counters = op_model_mipsxx_ops.num_counters; local
163 switch (counters) {
177 unsigned int counters = op_model_mipsxx_ops.num_counters; local
223 int counters; local
242 reset_counters(int counters) argument
262 int counters; local
332 int counters = op_model_mipsxx_ops.num_counters; local
[all...]
H A Dop_model_rm9000.c73 /* Start all counters on current CPU */
79 /* Stop all counters on current CPU */
87 uint64_t counters; local
90 * RM9000 combines two 32-bit performance counters into a single
92 * registers we need to stop the counters while we're messing with
97 counters = read_c0_perfcount();
98 counter1 = counters;
99 counter2 = counters >> 32;
110 counters = ((uint64_t)counter2 << 32) | counter1;
111 write_c0_perfcount(counters);
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libxml2-2.7.2/xstc/
H A Dxstc.py471 self.counters = self.createCounters()
478 counters = {self.CNT_TOTAL:0, self.CNT_RAN:0, self.CNT_SUCCEEDED:0,
483 return counters
495 def updateCounters(self, test, counters):
497 counters[self.CNT_MEMLEAK] += 1
499 counters[self.CNT_SUCCEEDED] +=1
501 counters[self.CNT_FAILED] += 1
503 counters[self.CNT_BAD] += 1
505 counters[self.CNT_UNIMPLEMENTED] += 1
507 counters[sel
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/i386/oprofile/
H A Dnmi_int.c108 struct op_msr * counters = msrs->counters; local
113 if (counters[i].addr){
114 rdmsr(counters[i].addr,
115 counters[i].saved.low,
116 counters[i].saved.high);
142 kfree(cpu_msrs[i].counters);
143 cpu_msrs[i].counters = NULL;
158 cpu_msrs[i].counters = kmalloc(counters_size, GFP_KERNEL);
159 if (!cpu_msrs[i].counters) {
234 struct op_msr * counters = msrs->counters; local
[all...]
H A Dop_x86_model.h25 struct op_msr * counters; member in struct:op_msrs
H A Dop_model_athlon.c24 #define CTR_IS_RESERVED(msrs,c) (msrs->counters[(c)].addr ? 1 : 0)
25 #define CTR_READ(l,h,msrs,c) do {rdmsr(msrs->counters[(c)].addr, (l), (h));} while (0)
26 #define CTR_WRITE(l,msrs,c) do {wrmsr(msrs->counters[(c)].addr, -(unsigned int)(l), -1);} while (0)
49 msrs->counters[i].addr = MSR_K7_PERFCTR0 + i;
51 msrs->counters[i].addr = 0;
68 /* clear all counters */
84 /* enable active counters */
146 /* Subtle: stop on all counters to avoid race with
H A Dop_model_ppro.c25 #define CTR_IS_RESERVED(msrs,c) (msrs->counters[(c)].addr ? 1 : 0)
26 #define CTR_READ(l,h,msrs,c) do {rdmsr(msrs->counters[(c)].addr, (l), (h));} while (0)
28 do {wrmsr(msrs->counters[(c)].addr, -(u32)(l), 0);} while (0)
51 msrs->counters[i].addr = MSR_P6_PERFCTR0 + i;
53 msrs->counters[i].addr = 0;
70 /* clear all counters */
86 /* enable active counters */
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/lib/
H A Dpercpu_counter.c2 * Fast batching percpu counters.
14 pcount = per_cpu_ptr(fbc->counters, cpu);
40 s32 *pcount = per_cpu_ptr(fbc->counters, cpu);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/md/
H A Dfaulty.c84 atomic_t counters[Modes]; member in struct:faulty_conf
94 atomic_read(&conf->counters[mode]) <= 0)
98 if (atomic_dec_and_test(&conf->counters[mode])) {
100 atomic_set(&conf->counters[mode], conf->period[mode]);
178 if (atomic_read(&conf->counters[WriteAll])) {
229 if ((n=atomic_read(&conf->counters[WriteTransient])) != 0)
233 if ((n=atomic_read(&conf->counters[ReadTransient])) != 0)
237 if ((n=atomic_read(&conf->counters[WritePersistent])) != 0)
241 if ((n=atomic_read(&conf->counters[ReadPersistent])) != 0)
246 if ((n=atomic_read(&conf->counters[ReadFixabl
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/
H A Dpercpu_counter.h20 s32 *counters; member in struct:percpu_counter
33 fbc->counters = alloc_percpu(s32);
38 free_percpu(fbc->counters);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iptables-1.4.12.1/include/
H A Dip6tables.h16 void print_rule6(const struct ip6t_entry *e, struct ip6tc_handle *h, const char *chain, int counters);
H A Diptables.h19 struct iptc_handle *handle, const char *chain, int counters);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/netfilter/
H A Darp_tables.c256 ADD_COUNTER(e->counters, hdr_len, 1);
352 e->counters.pcnt = pos;
388 pos = e->counters.pcnt;
389 e->counters.pcnt = 0;
403 e->counters.pcnt = pos;
428 e->counters.pcnt = pos;
543 /* Clear counters and comefrom */
544 e->counters = ((struct xt_counters) { 0, 0 });
651 /* Gets counters. */
656 ADD_COUNTER(total[*i], e->counters
672 get_counters(const struct xt_table_info *t, struct xt_counters counters[]) argument
711 struct xt_counters *counters; local
800 struct xt_counters *counters; local
[all...]
H A Dip_tables.c69 them in the softirq when updating the counters and therefore
72 the counters or update the rules.
261 ADD_COUNTER(e->counters, ntohs(ip->tot_len), 1);
384 e->counters.pcnt = pos;
428 pos = e->counters.pcnt;
429 e->counters.pcnt = 0;
443 e->counters.pcnt = pos;
467 e->counters.pcnt = pos;
659 /* Clear counters and comefrom */
660 e->counters
790 get_counters(const struct xt_table_info *t, struct xt_counters counters[]) argument
826 struct xt_counters *counters; local
853 struct xt_counters *counters; local
1157 struct xt_counters *counters; local
1381 compat_uptr_t counters; /* struct ipt_counters * */ member in struct:compat_ipt_replace
1838 struct xt_counters *counters; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/iptables-1.x/
H A Dip6tables-save.c21 static int binary = 0, counters = 0; variable
25 { "counters", 0, 0, 'c' },
145 ip6tc_handle_t *h, const char *chain, int counters)
150 /* print counters */
151 if (counters)
152 printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt);
288 print_rule(e, &h, chain, counters);
333 counters = 1;
144 print_rule(const struct ip6t_entry *e, ip6tc_handle_t *h, const char *chain, int counters) argument
H A Diptables-save.c20 static int binary = 0, counters = 0; variable
24 { "counters", 0, 0, 'c' },
148 iptc_handle_t *h, const char *chain, int counters)
153 /* print counters */
154 if (counters)
155 printf("[%llu:%llu] ", (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt);
293 print_rule(e, &h, chain, counters);
344 counters = 1;
147 print_rule(const struct ipt_entry *e, iptc_handle_t *h, const char *chain, int counters) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/include/libiptc/
H A Dlibip6tc.h53 struct ip6t_counters *counters,
99 /* Zeroes the counters in a chain. */
119 struct ip6t_counters *counters,
126 /* read packet and byte counters for a specific rule */
131 /* zero packet and byte counters for a specific rule */
136 /* set packet and byte counters for a specific rule */
139 struct ip6t_counters *counters,
H A Dlibiptc.h108 /* Zeroes the counters in a chain. */
128 struct ipt_counters *counters,
136 /* read packet and byte counters for a specific rule */
141 /* zero packet and byte counters for a specific rule */
146 /* set packet and byte counters for a specific rule */
149 struct ipt_counters *counters,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iptables-1.4.12.1/include/libiptc/
H A Dlibip6tc.h53 struct ip6t_counters *counters,
105 /* Zeroes the counters in a chain. */
125 struct ip6t_counters *counters,
132 /* read packet and byte counters for a specific rule */
137 /* zero packet and byte counters for a specific rule */
142 /* set packet and byte counters for a specific rule */
145 struct ip6t_counters *counters,
H A Dlibiptc.h110 /* Zeroes the counters in a chain. */
130 struct ipt_counters *counters,
138 /* read packet and byte counters for a specific rule */
143 /* zero packet and byte counters for a specific rule */
148 /* set packet and byte counters for a specific rule */
151 struct ipt_counters *counters,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/iptables-1.x/include/libiptc/
H A Dlibip6tc.h53 struct ip6t_counters *counters,
99 /* Zeroes the counters in a chain. */
119 struct ip6t_counters *counters,
126 /* read packet and byte counters for a specific rule */
131 /* zero packet and byte counters for a specific rule */
136 /* set packet and byte counters for a specific rule */
139 struct ip6t_counters *counters,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv6/netfilter/
H A Dip6_tables.c67 them in the softirq when updating the counters and therefore
70 the counters or update the rules.
284 ADD_COUNTER(e->counters,
403 e->counters.pcnt = pos;
446 pos = e->counters.pcnt;
447 e->counters.pcnt = 0;
461 e->counters.pcnt = pos;
485 e->counters.pcnt = pos;
645 /* Clear counters and comefrom */
646 e->counters
776 get_counters(const struct xt_table_info *t, struct xt_counters counters[]) argument
816 struct xt_counters *counters; local
923 struct xt_counters *counters; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/iptables-1.x/libiptc/
H A Dlibiptc.c114 STRUCT_COUNTERS counters; /* per-chain counters */ member in struct:chain_head
378 memcpy(&h->chain_iterator_cur->counters, &pr->entry->counters,
379 sizeof(h->chain_iterator_cur->counters));
667 /* set policy-counters */
668 memcpy(&foot->e.counters, &c->counters, sizeof(STRUCT_COUNTERS));
1157 STRUCT_COUNTERS *counters,
1175 *counters
1156 TC_GET_POLICY(const char *chain, STRUCT_COUNTERS *counters, TC_HANDLE_T *handle) argument
1704 TC_SET_COUNTER(const IPT_CHAINLABEL chain, unsigned int rulenum, STRUCT_COUNTERS *counters, TC_HANDLE_T *handle) argument
1890 TC_SET_POLICY(const IPT_CHAINLABEL chain, const IPT_CHAINLABEL policy, STRUCT_COUNTERS *counters, TC_HANDLE_T *handle) argument
1972 counters_map_zeroed(STRUCT_COUNTERS_INFO *newcounters, STRUCT_REPLACE *repl, unsigned int index, unsigned int mappos, STRUCT_COUNTERS *counters) argument
1991 counters_map_set(STRUCT_COUNTERS_INFO *newcounters, unsigned int index, STRUCT_COUNTERS *counters) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/include/linux/netfilter_ipv4/
H A Dip_tables.h99 u_int64_t pcnt, bcnt; /* Packet and byte counters */
134 /* Packet and byte counters. */
135 struct ipt_counters counters; member in struct:ipt_entry
251 /* Number of counters (must be equal to current number of entries). */
254 /* The old entries' counters. */
255 struct ipt_counters *counters; member in struct:ipt_replace
269 /* The counters (actually `number' of these). */
270 struct ipt_counters counters[0]; member in struct:ipt_counters_info

Completed in 198 milliseconds

123