Searched refs:counter (Results 76 - 100 of 674) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_netlink.c45 s->sk_rmem_alloc.counter,
46 s->sk_wmem_alloc.refs.counter - 1,
47 nlk->cb_running, s->sk_refcnt.refs.counter);
60 BPF_SEQ_PRINTF(seq, "%-8u %-8lu\n", s->sk_drops.counter, ino);
H A Dbpf_iter_udp6.c57 rqueue = inet->sk.sk_rmem_alloc.counter - udp_sk->forward_deficit;
70 inet->sk.sk_wmem_alloc.refs.counter - 1,
74 inet->sk.sk_refcnt.refs.counter, udp_sk,
75 inet->sk.sk_drops.counter);
H A Dbpf_iter_udp4.c55 rqueue = inet->sk.sk_rmem_alloc.counter - udp_sk->forward_deficit;
62 inet->sk.sk_wmem_alloc.refs.counter - 1,
66 inet->sk.sk_refcnt.refs.counter, udp_sk,
67 inet->sk.sk_drops.counter);
/linux-master/include/linux/
H A Datomic.h28 #define atomic_cond_read_acquire(v, c) smp_cond_load_acquire(&(v)->counter, (c))
29 #define atomic_cond_read_relaxed(v, c) smp_cond_load_relaxed(&(v)->counter, (c))
31 #define atomic64_cond_read_acquire(v, c) smp_cond_load_acquire(&(v)->counter, (c))
32 #define atomic64_cond_read_relaxed(v, c) smp_cond_load_relaxed(&(v)->counter, (c))
/linux-master/arch/alpha/include/asm/
H A Datomic.h29 #define arch_atomic_read(v) READ_ONCE((v)->counter)
30 #define arch_atomic64_read(v) READ_ONCE((v)->counter)
32 #define arch_atomic_set(v,i) WRITE_ONCE((v)->counter, (i))
33 #define arch_atomic64_set(v,i) WRITE_ONCE((v)->counter, (i))
53 :"=&r" (temp), "=m" (v->counter) \
54 :"Ir" (i), "m" (v->counter)); \
70 :"=&r" (temp), "=m" (v->counter), "=&r" (result) \
71 :"Ir" (i), "m" (v->counter) : "memory"); \
88 :"=&r" (temp), "=m" (v->counter), "=&r" (result) \
89 :"Ir" (i), "m" (v->counter)
[all...]
/linux-master/tools/testing/selftests/net/netfilter/
H A Dconntrack_vrf.sh96 iif { veth0, tvrf } counter meta nftrace set 1
97 iif veth0 counter ct zone set 1 counter return
98 iif tvrf counter ct zone set 2 counter return
99 ip protocol icmp counter
100 notrack counter
106 oif veth0 counter ct zone set 1 counter return
107 oif tvrf counter c
[all...]
H A Dconntrack_icmp_related.sh52 if ! ip netns exec "$ns" nft list counter inet filter "$name" | grep -q "$expect"; then
53 echo "ERROR: counter $name in $ns has unexpected value (expected $expect)" 1>&2
54 ip netns exec "$ns" nft list counter inet filter "$name" 1>&2
116 counter unknown { }
117 counter related { }
120 meta l4proto icmpv6 icmpv6 type "packet-too-big" ct state "related" counter name "related" accept
121 meta l4proto icmp icmp type "destination-unreachable" ct state "related" counter name "related" accept
123 counter name "unknown" drop
131 counter unknown { }
132 counter relate
[all...]
H A Dnft_nat.sh64 local counter=$2
68 echo "ERROR: $counter counter in $ns has unexpected value (expected $expect) at $tag" 1>&2
69 ip netns exec "$ns" nft list counter inet filter "$counter" 1>&2
77 if ! ip netns exec "$ns" nft list counter inet filter ns0in | grep -q "packets 1 bytes 84";then
82 if ! ip netns exec "$ns" nft list counter inet filter ns0out | grep -q "packets 1 bytes 84";then
88 if ! ip netns exec "$ns" nft list counter inet filter ns0in6 | grep -q "$expect";then
92 if ! ip netns exec "$ns" nft list counter inet filter ns0out6 | grep -q "$expect";then
105 if ! ip netns exec "$ns0" nft list counter ine
[all...]
/linux-master/tools/perf/util/
H A Dsideband_evlist.c99 struct evsel *counter; local
110 evlist__for_each_entry(evlist, counter)
111 evsel__set_sample_id(counter, can_sample_identifier);
116 evlist__for_each_entry(evlist, counter) {
117 if (evsel__open(counter, evlist->core.user_requested_cpus,
125 evlist__for_each_entry(evlist, counter) {
126 if (evsel__enable(counter))
H A Dbpf_counter.c40 struct bpf_counter *counter; local
42 counter = zalloc(sizeof(*counter));
43 if (counter)
44 INIT_LIST_HEAD(&counter->list);
45 return counter;
50 struct bpf_counter *counter, *tmp; local
52 list_for_each_entry_safe(counter, tmp,
54 list_del_init(&counter->list);
55 bpf_prog_profiler_bpf__destroy(counter
105 struct bpf_counter *counter; local
203 struct bpf_counter *counter; local
219 struct bpf_counter *counter; local
235 struct bpf_counter *counter; local
280 struct bpf_counter *counter; local
[all...]
/linux-master/tools/bpf/bpftool/skeleton/
H A Dprofiler.bpf.c8 __u64 counter; member in struct:bpf_perf_event_value___local
83 if (before && before->counter) {
86 diff.counter = after->counter - before->counter;
92 accum->counter += diff.counter;
/linux-master/arch/sparc/lib/
H A Datomic32.c38 ret = v->counter; \
39 v->counter c_op i; \
53 ret = (v->counter c_op i); \
76 ret = v->counter;
77 v->counter = new;
89 ret = v->counter;
91 v->counter = new;
104 ret = v->counter;
106 v->counter += a;
118 v->counter
[all...]
/linux-master/arch/hexagon/include/asm/
H A Datomic.h24 : "r" (&v->counter), "r" (new)
31 #define arch_atomic_read(v) READ_ONCE((v)->counter)
44 : "r" (&v->counter), "r" (i) \
60 : "r" (&v->counter), "r" (i) \
77 : "r" (&v->counter), "r" (i) \
/linux-master/drivers/misc/lkdtm/
H A Dcfi.c11 static noinline void lkdtm_increment_void(int *counter) argument
13 (*counter)++;
17 static noinline int lkdtm_increment_int(int *counter) argument
19 (*counter)++;
21 return *counter;
/linux-master/drivers/perf/
H A Dfsl_imx9_ddr_perf.c32 * 32bit counters monitor counter-specific events in addition to counting reference events
246 PMU_FORMAT_ATTR(counter, "config:8-15");
271 static void ddr_perf_clear_counter(struct ddr_pmu *pmu, int counter) argument
273 if (counter == CYCLES_COUNTER) {
274 writel(0, pmu->base + PMC(counter) + 0x4);
275 writel(0, pmu->base + PMC(counter));
277 writel(0, pmu->base + PMC(counter));
281 static u64 ddr_perf_read_counter(struct ddr_pmu *pmu, int counter) argument
286 if (counter != CYCLES_COUNTER) {
287 val = readl_relaxed(pmu->base + PMC(counter));
338 ddr_perf_counter_local_config(struct ddr_pmu *pmu, int config, int counter, bool enable) argument
367 int event, counter; local
403 int counter = hwc->idx; local
455 int counter = hwc->idx; local
470 int counter; local
492 int counter = hwc->idx; local
[all...]
/linux-master/lib/
H A Datomic64.c52 val = v->counter;
64 v->counter = i;
76 v->counter c_op a; \
89 val = (v->counter c_op a); \
103 val = v->counter; \
104 v->counter c_op a; \
138 val = v->counter - 1;
140 v->counter = val;
153 val = v->counter;
155 v->counter
[all...]
/linux-master/drivers/staging/media/atomisp/pci/
H A Datomisp_trace_event.h28 TP_PROTO(const char *name, int uptr_size, int counter, int sys_size,
32 TP_ARGS(name, uptr_size, counter, sys_size, sys_res_size, cam_sys_use,
38 __field(int, counter)
49 __entry->counter = counter;
59 __entry->name, __entry->uptr_size, __entry->counter,
/linux-master/include/linux/comedi/
H A Dcomedi_8254.h4 * Generic 8254 timer/counter support
59 /* counter maps zero to 0x10000 */
83 * @divisor: divisor for single counter
84 * @divisor1: divisor loaded into first cascaded counter
85 * @divisor2: divisor loaded into second cascaded counter
86 * #next_div: next divisor for single counter
87 * @next_div1: next divisor to use for first cascaded counter
88 * @next_div2: next divisor to use for second cascaded counter
89 * @clock_src; current clock source for each counter (driver specific)
90 * @gate_src; current gate source for each counter (drive
[all...]
/linux-master/arch/mips/include/asm/
H A Datomic.h29 return READ_ONCE(v->counter); \
34 WRITE_ONCE(v->counter, i); \
53 v->counter c_op i; \
67 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter) \
81 result = v->counter; \
83 v->counter = result; \
99 "+" GCC_OFF_SMALL_ASM() (v->counter) \
115 result = v->counter; \
116 v->counter c_op i; \
132 "+" GCC_OFF_SMALL_ASM() (v->counter) \
[all...]
/linux-master/drivers/comedi/drivers/
H A Dcomedi_8254.c4 * Generic 8254 timer/counter support
15 * Description: Generic 8254 timer/counter support
56 * Writes an initial value to a counter.
61 * NOTE: The counter does not stop when it reaches zero. In Mode 0, 1, 4,
62 * and 5 the counter "wraps around" to the highest count, either 0xffff
64 * Modes 2 and 3 are periodic; the counter reloads itself with the initial
68 * Reads the current value from a counter.
71 * Reads the status of a counter.
81 * Calculates the divisor value needed for a single counter to generate
102 * Internally flags a counter a
229 comedi_8254_status(struct comedi_8254 *i8254, unsigned int counter) argument
248 comedi_8254_read(struct comedi_8254 *i8254, unsigned int counter) argument
273 comedi_8254_write(struct comedi_8254 *i8254, unsigned int counter, unsigned int val) argument
297 comedi_8254_set_mode(struct comedi_8254 *i8254, unsigned int counter, unsigned int mode) argument
323 comedi_8254_load(struct comedi_8254 *i8254, unsigned int counter, unsigned int val, unsigned int mode) argument
514 comedi_8254_set_busy(struct comedi_8254 *i8254, unsigned int counter, bool busy) argument
[all...]
/linux-master/include/soc/amlogic/
H A Dmeson_ddr_pmu.h35 u64 channel_cnt[MAX_CHANNEL_NUM]; /* To save a DMC bandwidth-monitor channel counter */
44 struct dmc_counter *counter);
46 struct dmc_counter *counter);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dact_stats.c18 struct mlx5_fc *counter; member in struct:mlx5e_tc_act_stats
63 struct mlx5_fc *counter)
75 act_stats->counter = counter;
77 mlx5_fc_query_cached_raw(counter,
145 if (attr->counter)
146 curr_counter = attr->counter;
183 mlx5_fc_query_cached_raw(item->counter,
61 mlx5e_tc_act_stats_add(struct mlx5e_tc_act_stats_handle *handle, unsigned long act_cookie, struct mlx5_fc *counter) argument
/linux-master/arch/arc/include/asm/
H A Datomic64-arcv2.h12 s64 __aligned(8) counter; member in struct:__anon1
24 : "r"(&v->counter));
45 : "r"(a), "r"(&v->counter)
62 : "r"(&v->counter), "ir"(a) \
79 : "r"(&v->counter), "ir"(a) \
101 : "r"(&v->counter), "ir"(a) \
200 : "r"(&v->counter)
226 : "r"(&v->counter), "r"(a), "r"(u)
/linux-master/arch/arm64/kvm/
H A Dpmu.c146 u32 counter; local
148 for_each_set_bit(counter, &events, 32) {
149 typer = kvm_vcpu_pmu_read_evtype_direct(counter);
151 kvm_vcpu_pmu_write_evtype_direct(counter, typer);
161 u32 counter; local
163 for_each_set_bit(counter, &events, 32) {
164 typer = kvm_vcpu_pmu_read_evtype_direct(counter);
166 kvm_vcpu_pmu_write_evtype_direct(counter, typer);
/linux-master/arch/arm/include/asm/
H A Dmmu.h27 #define ASID(mm) ((unsigned int)((mm)->context.id.counter & ~ASID_MASK))

Completed in 222 milliseconds

1234567891011>>