/linux-master/arch/x86/xen/ |
H A D | pmu.h | 20 unsigned long long xen_read_pmc(int counter);
|
/linux-master/arch/sparc/include/asm/ |
H A D | atomic_64.h | 17 #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 D | atomic.h | 17 #define arch_atomic_read(v) READ_ONCE((v)->counter)
|
H A D | atomic-llsc.h | 6 #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 D | atomic.h | 32 #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 D | stat-display.c | 709 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 D | stat.c | 304 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 D | bperf_leader.bpf.c | 48 diff_val->counter = val.counter - prev_val->counter;
|
H A D | bperf_cgroup.bpf.c | 170 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 D | atomic-llsc.h | 30 : "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 D | atomic.h | 64 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 D | perf_event_v6.c | 3 * 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 D | atomic.h | 29 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 D | hkdf.c | 125 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 D | Makefile | 29 $(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 D | timer-ti-32k.c | 38 * 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 D | lrw.c | 104 * 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 D | marvell_cn10k_ddr_pmu.c | 36 /* 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 D | builtin-stat.c | 14 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 D | ni_660x.c | 8 * 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 D | ni_labpc.h | 25 struct comedi_8254 *counter; member in struct:labpc_private
|
/linux-master/lib/ |
H A D | atomic64_test.c | 159 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 D | intersil.h | 40 struct intersil_dt counter; member in struct:intersil_7170
|
/linux-master/tools/testing/selftests/sync/ |
H A D | sync_stress_consumer.c | 57 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 D | nft_numgen.c | 20 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);
|