Searched refs:counter (Results 101 - 125 of 674) sorted by relevance

1234567891011>>

/linux-master/arch/x86/xen/
H A Dpmu.h20 unsigned long long xen_read_pmc(int counter);
/linux-master/arch/sparc/include/asm/
H A Datomic_64.h17 #define arch_atomic_read(v) READ_ONCE((v)->counter)
18 #define arch_atomic64_read(v) READ_ONCE((v)->counter)
20 #define arch_atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
21 #define arch_atomic64_set(v, i) WRITE_ONCE(((v)->counter), (i))
/linux-master/arch/arc/include/asm/
H A Datomic.h17 #define arch_atomic_read(v) READ_ONCE((v)->counter)
H A Datomic-llsc.h6 #define arch_atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
19 : [ctr] "r" (&v->counter), /* Not "m": llock only supports reg direct addr mode */ \
35 : [ctr] "r" (&v->counter), \
57 : [ctr] "r" (&v->counter), \
/linux-master/arch/loongarch/include/asm/
H A Datomic.h32 #define arch_atomic_read(v) READ_ONCE((v)->counter)
33 #define arch_atomic_set(v, i) WRITE_ONCE((v)->counter, (i))
40 : "+ZB" (v->counter) \
52 : "+ZB" (v->counter), "=&r" (result) \
66 : "+ZB" (v->counter), "=&r" (result) \
144 [c]"=ZB" (v->counter)
167 : "=&r" (result), "=&r" (temp), "+ZC" (v->counter)
179 : "=&r" (result), "=&r" (temp), "+ZC" (v->counter)
192 #define arch_atomic64_read(v) READ_ONCE((v)->counter)
193 #define arch_atomic64_set(v, i) WRITE_ONCE((v)->counter, (
[all...]
/linux-master/tools/perf/util/
H A Dstat-display.c709 fprintf(output, "\"counter-value\" : \"%f\", ", avg);
711 fprintf(output, "\"counter-value\" : \"%s\", ", bad_count);
739 static bool is_mixed_hw_group(struct evsel *counter) argument
741 struct evlist *evlist = counter->evlist;
742 u32 pmu_type = counter->core.attr.type;
745 if (counter->core.nr_members < 2)
786 struct evsel *counter = os->evsel; local
792 os->nfields = 4 + (counter->cgrp ? 1 : 0);
803 if (run == 0 || ena == 0 || counter->counts->scaled == -1) {
811 if (counter
869 uniquify_event_name(struct evsel *counter) argument
910 uniquify_counter(struct perf_stat_config *config, struct evsel *counter) argument
932 should_skip_zero_counter(struct perf_stat_config *config, struct evsel *counter, const struct aggr_cpu_id *id) argument
966 print_counter_aggrdata(struct perf_stat_config *config, struct evsel *counter, int aggr_idx, struct outstate *os) argument
1061 struct evsel *counter; local
1085 struct evsel *counter, *evsel; local
1111 print_counter(struct perf_stat_config *config, struct evsel *counter, struct outstate *os) argument
1133 struct evsel *counter; local
1200 struct evsel *counter; local
1476 print_percore(struct perf_stat_config *config, struct evsel *counter, struct outstate *os) argument
1527 struct evsel *counter; local
1550 struct evsel *counter; local
[all...]
H A Dstat.c304 static int check_per_pkg(struct evsel *counter, struct perf_counts_values *vals, argument
307 struct hashmap *mask = counter->per_pkg_mask;
308 struct perf_cpu_map *cpus = evsel__cpus(counter);
315 if (!counter->per_pkg)
326 counter->per_pkg_mask = mask;
395 pr_err("failed to read per-pkg counter\n");
462 struct evsel *counter)
464 int nthreads = perf_thread_map__nr(counter->core.threads);
465 int ncpus = evsel__nr_cpus(counter);
470 if (process_counter_values(config, counter, id
461 process_counter_maps(struct perf_stat_config *config, struct evsel *counter) argument
479 perf_stat_process_counter(struct perf_stat_config *config, struct evsel *counter) argument
678 struct evsel *counter; local
[all...]
/linux-master/tools/perf/util/bpf_skel/
H A Dbperf_leader.bpf.c48 diff_val->counter = val.counter - prev_val->counter;
H A Dbperf_cgroup.bpf.c170 val.counter = val.enabled = val.running = 0;
185 delta.counter = val.counter - prev_val->counter;
199 cgrp_val->counter += delta.counter;
/linux-master/arch/sh/include/asm/
H A Datomic-llsc.h30 : "r" (i), "r" (&v->counter) \
46 : "r" (i), "r" (&v->counter) \
65 : "r" (i), "r" (&v->counter) \
/linux-master/arch/parisc/include/asm/
H A Datomic.h64 v->counter = i;
73 return READ_ONCE((v)->counter);
82 v->counter c_op i; \
93 ret = (v->counter c_op i); \
106 ret = v->counter; \
107 v->counter c_op i; \
154 v->counter c_op i; \
165 ret = (v->counter c_op i); \
178 ret = v->counter; \
179 v->counter c_o
[all...]
/linux-master/arch/arm/kernel/
H A Dperf_event_v6.c3 * ARMv6 Performance counter handling code.
7 * ARMv6 has 2 configurable performance counters and a single cycle counter.
16 * the event bus. The procedure for disabling a configurable counter is:
17 * - change the counter to count the ETMEXTOUT[0] signal (0x20). This
18 * effectively stops the counter from counting.
19 * - disable the counter's interrupt generation (each counter has it's
21 * Once stopped, the counter value can be written as 0 to reset.
23 * To enable a counter:
24 * - enable the counter'
156 armv6_pmcr_counter_has_overflowed(unsigned long pmcr, enum armv6_counters counter) argument
176 int counter = hwc->idx; local
194 int counter = hwc->idx; local
[all...]
/linux-master/arch/riscv/include/asm/
H A Datomic.h29 return READ_ONCE(v->counter);
33 WRITE_ONCE(v->counter, i);
40 return READ_ONCE(v->counter);
44 WRITE_ONCE(v->counter, i);
59 : "+A" (v->counter) \
95 : "+A" (v->counter), "=r" (ret) \
106 : "+A" (v->counter), "=r" (ret) \
211 : [p]"=&r" (prev), [rc]"=&r" (rc), [c]"+A" (v->counter)
232 : [p]"=&r" (prev), [rc]"=&r" (rc), [c]"+A" (v->counter)
252 : [p]"=&r" (prev), [rc]"=&r" (rc), [c]"+A" (v->counter)
[all...]
/linux-master/fs/crypto/
H A Dhkdf.c125 u8 counter = 1; local
156 BUILD_BUG_ON(sizeof(counter) != 1);
158 err = crypto_shash_finup(desc, &counter, 1, tmp);
164 err = crypto_shash_finup(desc, &counter, 1, &okm[i]);
168 counter++;
/linux-master/tools/counter/
H A DMakefile29 $(OUTPUT)include/linux/counter.h: ../../include/uapi/linux/counter.h
31 ln -sf $(CURDIR)/../../include/uapi/linux/counter.h $@
33 prepare: $(OUTPUT)include/linux/counter.h
49 rm -rf $(OUTPUT)include/linux/counter.h
/linux-master/drivers/clocksource/
H A Dtimer-ti-32k.c38 * higher resolution in free-running counter modes (e.g. 12 MHz xtal),
49 void __iomem *counter; member in struct:ti_32k
62 return (u64)readl_relaxed(ti->counter);
136 ti_32k_timer.counter = ti_32k_timer.base;
148 ti_32k_timer.counter += OMAP2_32KSYNCNT_CR_OFF_HIGH;
150 ti_32k_timer.counter += OMAP2_32KSYNCNT_CR_OFF_LOW;
/linux-master/crypto/
H A Dlrw.c104 * Returns the number of trailing '1' bits in the words of the counter, which is
106 * At the same time, increments the counter by one.
110 * u32 counter[4] = { 0xFFFFFFFF, 0x1, 0x0, 0x0 };
111 * int i = lrw_next_index(&counter);
112 * // i == 33, counter == { 0x0, 0x2, 0x0, 0x0 }
114 static int lrw_next_index(u32 *counter) argument
119 if (counter[i] + 1 != 0)
120 return res + ffz(counter[i]++);
122 counter[i] = 0;
127 * If we get here, then x == 128 and we are incrementing the counter
149 u32 counter[4]; local
[all...]
/linux-master/drivers/perf/
H A Dmarvell_cn10k_ddr_pmu.c36 /* 8 Generic event counter + 2 fixed event counters */
44 /* Generic event counter registers */
104 /* Event counter value registers */
108 /* Fixed event counter enable/disable register */
113 /* Fixed event counter control register */
118 /* Fixed event counter value register */
258 * 48 bit counter incremented max at 5.6 GT/s, which may take many
295 /* DDR read free-run counter index */
301 /* DDR write free-run counter index */
318 static void cn10k_ddr_perf_free_counter(struct cn10k_ddr_pmu *pmu, int counter) argument
354 cn10k_ddr_perf_counter_enable(struct cn10k_ddr_pmu *pmu, int counter, bool enable) argument
392 cn10k_ddr_perf_read_counter(struct cn10k_ddr_pmu *pmu, int counter) argument
426 int counter = hwc->idx; local
440 int counter, ret; local
485 int counter = hwc->idx; local
499 int counter = hwc->idx; local
[all...]
/linux-master/tools/perf/
H A Dbuiltin-stat.c14 Performance counter stats for './hackbench 10':
268 static int evsel__write_stat_event(struct evsel *counter, int cpu_map_idx, u32 thread, argument
271 struct perf_sample_id *sid = SID(counter, cpu_map_idx, thread);
272 struct perf_cpu cpu = perf_cpu_map__cpu(evsel__cpus(counter), cpu_map_idx);
278 static int read_single_counter(struct evsel *counter, int cpu_map_idx, argument
281 switch(counter->tool_event) {
285 perf_counts(counter->counts, cpu_map_idx, thread);
294 perf_counts(counter->counts, cpu_map_idx, thread);
295 if (counter->tool_event == PERF_TOOL_USER_TIME)
305 return evsel__read_counter(counter, cpu_map_id
316 read_counter_cpu(struct evsel *counter, struct timespec *rs, int cpu_map_idx) argument
379 struct evsel *counter = evlist_cpu_itr.evsel; local
397 struct evsel *counter; local
423 struct evsel *counter; local
492 struct evsel *counter; local
520 evsel__should_store_id(struct evsel *counter) argument
633 stat_handle_error(struct evsel *counter) argument
696 struct evsel *counter; local
2508 struct evsel *counter; local
[all...]
/linux-master/drivers/comedi/drivers/
H A Dni_660x.c8 * Description: National Instruments 660x counter/timer boards
293 static void ni_660x_gpct_write(struct ni_gpct *counter, unsigned int bits, argument
296 struct comedi_device *dev = counter->counter_dev->dev;
298 ni_660x_write(dev, counter->chip_index, bits, reg);
301 static unsigned int ni_660x_gpct_read(struct ni_gpct *counter, argument
304 struct comedi_device *dev = counter->counter_dev->dev;
306 return ni_660x_read(dev, counter->chip_index, reg);
311 struct ni_gpct *counter)
314 unsigned int chip = counter->chip_index;
318 counter
309 ni_660x_set_dma_channel(struct comedi_device *dev, unsigned int mite_channel, struct ni_gpct *counter) argument
324 ni_660x_unset_dma_channel(struct comedi_device *dev, unsigned int mite_channel, struct ni_gpct *counter) argument
336 ni_660x_request_mite_channel(struct comedi_device *dev, struct ni_gpct *counter, enum comedi_io_direction direction) argument
361 ni_660x_release_mite_channel(struct comedi_device *dev, struct ni_gpct *counter) argument
380 struct ni_gpct *counter = s->private; local
396 struct ni_gpct *counter = s->private; local
423 struct ni_gpct *counter = s->private; local
457 struct ni_gpct *counter = s->private; local
471 struct ni_gpct *counter = s->private; local
1153 struct ni_gpct *counter = &gpct_dev->counters[i]; local
[all...]
H A Dni_labpc.h25 struct comedi_8254 *counter; member in struct:labpc_private
/linux-master/lib/
H A Datomic64_test.c159 BUG_ON(v.counter != r);
163 BUG_ON(v.counter != r);
193 BUG_ON(v.counter != r);
198 BUG_ON(v.counter != r);
208 BUG_ON(v.counter != r);
213 BUG_ON(v.counter != r);
218 BUG_ON(v.counter != r);
222 BUG_ON(v.counter != r);
226 BUG_ON(v.counter != r);
231 BUG_ON(v.counter !
[all...]
/linux-master/arch/m68k/include/asm/
H A Dintersil.h40 struct intersil_dt counter; member in struct:intersil_7170
/linux-master/tools/testing/selftests/sync/
H A Dsync_stress_consumer.c57 int counter; member in struct:__anon15381
90 * Every producer increments the counter, the consumer
94 test_data_mpsc.counter++;
140 ASSERT(test_data_mpsc.counter == n * it,
170 test_data_mpsc.counter = 0;
/linux-master/net/netfilter/
H A Dnft_numgen.c20 atomic_t *counter; member in struct:nft_ng_inc
29 oval = atomic_read(priv->counter);
31 } while (atomic_cmpxchg(priv->counter, oval, nval) != oval);
69 priv->counter = kmalloc(sizeof(*priv->counter), GFP_KERNEL);
70 if (!priv->counter)
73 atomic_set(priv->counter, priv->modulus - 1);
82 kfree(priv->counter);
129 kfree(priv->counter);

Completed in 297 milliseconds

1234567891011>>