Home
last modified time | relevance | path

Searched full:counters (Results 1 – 25 of 3336) sorted by relevance

12345678910>>...134

/kernel/linux/linux-5.10/arch/mips/oprofile/
Dop_model_mipsxx.c28 * XLR has only one set of counters per core. Designate the
45 * The number of bits to shift to convert between counters per core and
46 * counters per VPE. There is no reasonable interface atm to obtain the
72 static inline unsigned int counters_total_to_per_cpu(unsigned int counters) in counters_total_to_per_cpu() argument
74 return counters >> vpe_shift(); in counters_total_to_per_cpu()
77 static inline unsigned int counters_per_cpu_to_total(unsigned int counters) in counters_per_cpu_to_total() argument
79 return counters << vpe_shift(); in counters_per_cpu_to_total()
137 unsigned int counters = op_model_mipsxx_ops.num_counters; in mipsxx_reg_setup() local
141 for (i = 0; i < counters; i++) { in mipsxx_reg_setup()
166 unsigned int counters = op_model_mipsxx_ops.num_counters; in mipsxx_cpu_setup() local
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_std_types_counters.c42 struct ib_counters *counters = uobject->object; in uverbs_free_counters() local
45 ret = ib_destroy_usecnt(&counters->usecnt, why, uobject); in uverbs_free_counters()
49 ret = counters->device->ops.destroy_counters(counters); in uverbs_free_counters()
52 kfree(counters); in uverbs_free_counters()
62 struct ib_counters *counters; in UVERBS_HANDLER() local
73 counters = rdma_zalloc_drv_obj(ib_dev, ib_counters); in UVERBS_HANDLER()
74 if (!counters) in UVERBS_HANDLER()
77 counters->device = ib_dev; in UVERBS_HANDLER()
78 counters->uobject = uobj; in UVERBS_HANDLER()
79 uobj->object = counters; in UVERBS_HANDLER()
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/core/
Duverbs_std_types_counters.c42 struct ib_counters *counters = uobject->object; in uverbs_free_counters() local
45 if (atomic_read(&counters->usecnt)) in uverbs_free_counters()
48 ret = counters->device->ops.destroy_counters(counters); in uverbs_free_counters()
51 kfree(counters); in uverbs_free_counters()
61 struct ib_counters *counters; in UVERBS_HANDLER() local
72 counters = rdma_zalloc_drv_obj(ib_dev, ib_counters); in UVERBS_HANDLER()
73 if (!counters) in UVERBS_HANDLER()
76 counters->device = ib_dev; in UVERBS_HANDLER()
77 counters->uobject = uobj; in UVERBS_HANDLER()
78 uobj->object = counters; in UVERBS_HANDLER()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/lib/
Dpercpu_counter.c3 * Fast batching percpu counters.
67 s32 *pcount = per_cpu_ptr(fbc->counters, cpu); in percpu_counter_set()
83 * the this_cpu_add(), and the interrupt updates this_cpu(*fbc->counters),
93 count = __this_cpu_read(*fbc->counters) + amount; in percpu_counter_add_batch()
97 __this_cpu_sub(*fbc->counters, count - amount); in percpu_counter_add_batch()
100 this_cpu_add(*fbc->counters, amount); in percpu_counter_add_batch()
118 count = __this_cpu_read(*fbc->counters); in percpu_counter_sync()
120 __this_cpu_sub(*fbc->counters, count); in percpu_counter_sync()
146 s32 *pcount = per_cpu_ptr(fbc->counters, cpu); in __percpu_counter_sum()
160 s32 __percpu *counters; in __percpu_counter_init_many() local
[all …]
/kernel/linux/linux-6.6/tools/perf/
Ddesign.txt2 Performance Counters for Linux
5 Performance counters are special hardware registers available on most modern
13 hardware capabilities. It provides per task and per CPU counters, counter
15 provides "virtual" 64-bit counters, regardless of the width of the
16 underlying hardware counters.
18 Performance counters are accessed via special file descriptors.
32 Multiple counters can be kept open at a time, and the counters
115 on all CPUs that implement Performance Counters support under Linux,
130 * Special "software" counters provided by the kernel, even if the hardware
131 * does not support performance counters. These counters measure various
[all …]
/kernel/linux/linux-5.10/tools/perf/
Ddesign.txt2 Performance Counters for Linux
5 Performance counters are special hardware registers available on most modern
13 hardware capabilities. It provides per task and per CPU counters, counter
15 provides "virtual" 64-bit counters, regardless of the width of the
16 underlying hardware counters.
18 Performance counters are accessed via special file descriptors.
32 Multiple counters can be kept open at a time, and the counters
112 on all CPUs that implement Performance Counters support under Linux,
127 * Special "software" counters provided by the kernel, even if the hardware
128 * does not support performance counters. These counters measure various
[all …]
/kernel/linux/linux-5.10/Documentation/arm64/
Damu.rst22 counters intended for system management use. The AMU extension provides a
27 of four fixed and architecturally defined 64-bit event counters.
37 When in WFI or WFE these counters do not increment.
40 event counters. Future versions of the architecture may use this space to
41 implement additional architected event counters.
44 64-bit event counters.
46 On cold reset all counters reset to 0.
59 counters, only the presence of the extension.
66 - Enable the counters. If not enabled these will read as 0.
67 - Save/restore the counters before/after the CPU is being put/brought up
[all …]
/kernel/linux/linux-6.6/Documentation/arch/arm64/
Damu.rst22 counters intended for system management use. The AMU extension provides a
27 of four fixed and architecturally defined 64-bit event counters.
37 When in WFI or WFE these counters do not increment.
40 event counters. Future versions of the architecture may use this space to
41 implement additional architected event counters.
44 64-bit event counters.
46 On cold reset all counters reset to 0.
59 counters, only the presence of the extension.
66 - Enable the counters. If not enabled these will read as 0.
67 - Save/restore the counters before/after the CPU is being put/brought up
[all …]
/kernel/linux/linux-5.10/Documentation/core-api/
Dlocal_ops.rst30 counters. They minimize the performance cost of standard atomic operations by
34 Having fast per CPU atomic counters is interesting in many cases: it does not
36 coherent counters in NMI handlers. It is especially useful for tracing purposes
37 and for various performance monitoring counters.
95 static DEFINE_PER_CPU(local_t, counters) = LOCAL_INIT(0);
107 local_inc(&get_cpu_var(counters));
108 put_cpu_var(counters);
113 local_inc(this_cpu_ptr(&counters));
117 Reading the counters
120 Those local counters can be read from foreign CPUs to sum the count. Note that
[all …]
/kernel/linux/linux-6.6/Documentation/core-api/
Dlocal_ops.rst30 counters. They minimize the performance cost of standard atomic operations by
34 Having fast per CPU atomic counters is interesting in many cases: it does not
36 coherent counters in NMI handlers. It is especially useful for tracing purposes
37 and for various performance monitoring counters.
95 static DEFINE_PER_CPU(local_t, counters) = LOCAL_INIT(0);
107 local_inc(&get_cpu_var(counters));
108 put_cpu_var(counters);
113 local_inc(this_cpu_ptr(&counters));
117 Reading the counters
120 Those local counters can be read from foreign CPUs to sum the count. Note that
[all …]
/kernel/linux/linux-6.6/Documentation/translations/zh_CN/core-api/
Dlocal_ops.rst93 static DEFINE_PER_CPU(local_t, counters) = LOCAL_INIT(0);
105 local_inc(&get_cpu_var(counters));
106 put_cpu_var(counters);
110 local_inc(this_cpu_ptr(&counters));
123 sum += local_read(&per_cpu(counters, cpu));
143 static DEFINE_PER_CPU(local_t, counters) = LOCAL_INIT(0);
152 local_inc(this_cpu_ptr(&counters));
157 * local_inc(&get_cpu_var(counters));
158 * put_cpu_var(counters);
166 /* Increment the counters */
[all …]
/kernel/linux/linux-6.6/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
Dcounters.rst5 Ethtool counters
22 addition, each group of counters may have different counter types.
53 | Uplink (no counters) |
58 | MPFS (no counters) |
68 Software counters populated by the driver stack.
71 An aggregation of software ring counters.
73 vPort counters
74 Traffic counters and drops due to steering or no buffers. May indicate issues
75 with NIC. These counters include Ethernet traffic counters (including Raw
76 Ethernet) and RDMA/RoCE traffic counters.
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/macsec/
Dmacsec_api.h265 /*! Read the counters for the specified SC, and unpack them into the
266 * fields of counters.
267 * counters - [OUT] The raw table row data will be unpacked here.
271 struct aq_mss_egress_sc_counters *counters,
274 /*! Read the counters for the specified SA, and unpack them into the
275 * fields of counters.
276 * counters - [OUT] The raw table row data will be unpacked here.
280 struct aq_mss_egress_sa_counters *counters,
283 /*! Read the counters for the common egress counters, and unpack them
284 * into the fields of counters.
[all …]
Dmacsec_api.c1825 struct aq_mss_egress_sc_counters *counters, in get_egress_sc_counters() argument
1837 counters->sc_protected_pkts[0] = in get_egress_sc_counters()
1839 counters->sc_protected_pkts[1] = in get_egress_sc_counters()
1845 counters->sc_encrypted_pkts[0] = in get_egress_sc_counters()
1847 counters->sc_encrypted_pkts[1] = in get_egress_sc_counters()
1853 counters->sc_protected_octets[0] = in get_egress_sc_counters()
1855 counters->sc_protected_octets[1] = in get_egress_sc_counters()
1861 counters->sc_encrypted_octets[0] = in get_egress_sc_counters()
1863 counters->sc_encrypted_octets[1] = in get_egress_sc_counters()
1870 struct aq_mss_egress_sc_counters *counters, in aq_mss_get_egress_sc_counters() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/macsec/
Dmacsec_api.h265 /*! Read the counters for the specified SC, and unpack them into the
266 * fields of counters.
267 * counters - [OUT] The raw table row data will be unpacked here.
271 struct aq_mss_egress_sc_counters *counters,
274 /*! Read the counters for the specified SA, and unpack them into the
275 * fields of counters.
276 * counters - [OUT] The raw table row data will be unpacked here.
280 struct aq_mss_egress_sa_counters *counters,
283 /*! Read the counters for the common egress counters, and unpack them
284 * into the fields of counters.
[all …]
Dmacsec_api.c1825 struct aq_mss_egress_sc_counters *counters, in get_egress_sc_counters() argument
1837 counters->sc_protected_pkts[0] = in get_egress_sc_counters()
1839 counters->sc_protected_pkts[1] = in get_egress_sc_counters()
1845 counters->sc_encrypted_pkts[0] = in get_egress_sc_counters()
1847 counters->sc_encrypted_pkts[1] = in get_egress_sc_counters()
1853 counters->sc_protected_octets[0] = in get_egress_sc_counters()
1855 counters->sc_protected_octets[1] = in get_egress_sc_counters()
1861 counters->sc_encrypted_octets[0] = in get_egress_sc_counters()
1863 counters->sc_encrypted_octets[1] = in get_egress_sc_counters()
1870 struct aq_mss_egress_sc_counters *counters, in aq_mss_get_egress_sc_counters() argument
[all …]
/kernel/linux/linux-5.10/arch/powerpc/oprofile/
Dop_model_7450.c51 /* Unfreezes the counters on this CPU, enables the interrupt,
52 * enables the counters to trigger the interrupt, and sets the
53 * counters to only count when the mark bit is not set.
65 /* Disables the counters on this CPU, and freezes them */
76 /* Configures the counters on this CPU based on the global
80 /* freeze all counters */ in fsl7450_cpu_setup()
99 /* Our counters count up, and "count" refers to in fsl7450_reg_setup()
103 * Then we set the events on the enabled counters */ in fsl7450_reg_setup()
107 /* Set events for Counters 1 & 2 */ in fsl7450_reg_setup()
118 /* Set events for Counters 3-6 */ in fsl7450_reg_setup()
[all …]
/kernel/linux/linux-5.10/fs/xfs/scrub/
Dfscounters.c21 * FS Summary Counters
27 * Then we compare what we computed against the in-core counters.
29 * However, the reality is that summary counters are a tricky beast to check.
40 * structures as quickly as it can. We snapshot the percpu counters before and
47 * values, the percpu counters should be fairly close to each other. However,
54 * contents and trust that the incore counters match the ondisk counters. (The
56 * summary counters after checking all AG headers). Do this from the setup
132 /* We must get the incore counters set up before we can proceed. */ in xchk_setup_fscounters()
139 * likelihood of background perturbations to the counters throwing off in xchk_setup_fscounters()
148 * Calculate what the global in-core counters ought to be from the incore
[all …]
/kernel/linux/linux-5.10/include/linux/
Dnfs_iostat.h13 * These counters are not meant to be human-readable, but are meant
15 * "iostat". As such, the counters are sampled by the tools over
28 * NFS byte counters
40 * These counters give a view of the data throughput into and out
46 * These counters can also help characterize which access methods
53 * NFS page counters
58 * NB: When adding new byte counters, please include the measured
75 * NFS event counters
77 * These counters provide a low-overhead way of monitoring client
78 * activity without enabling NFS trace debugging. The counters
[all …]
/kernel/linux/linux-6.6/include/linux/
Dnfs_iostat.h13 * These counters are not meant to be human-readable, but are meant
15 * "iostat". As such, the counters are sampled by the tools over
28 * NFS byte counters
40 * These counters give a view of the data throughput into and out
46 * These counters can also help characterize which access methods
53 * NFS page counters
58 * NB: When adding new byte counters, please include the measured
75 * NFS event counters
77 * These counters provide a low-overhead way of monitoring client
78 * activity without enabling NFS trace debugging. The counters
/kernel/linux/linux-5.10/lib/
Dpercpu_counter.c3 * Fast batching percpu counters.
67 s32 *pcount = per_cpu_ptr(fbc->counters, cpu); in percpu_counter_set()
87 count = __this_cpu_read(*fbc->counters) + amount; in percpu_counter_add_batch()
92 __this_cpu_sub(*fbc->counters, count - amount); in percpu_counter_add_batch()
95 this_cpu_add(*fbc->counters, amount); in percpu_counter_add_batch()
113 count = __this_cpu_read(*fbc->counters); in percpu_counter_sync()
115 __this_cpu_sub(*fbc->counters, count); in percpu_counter_sync()
133 s32 *pcount = per_cpu_ptr(fbc->counters, cpu); in __percpu_counter_sum()
149 fbc->counters = alloc_percpu_gfp(s32, gfp); in __percpu_counter_init()
150 if (!fbc->counters) in __percpu_counter_init()
[all …]
/kernel/linux/linux-6.6/drivers/perf/amlogic/
Dmeson_ddr_pmu_core.c23 struct dmc_counter counters; /* save counters from hw */ member
93 /* get the remain counters in register. */ in meson_ddr_perf_event_update()
96 ddr_cnt_addition(&sum_dc, &pmu->counters, &dc, chann_nr); in meson_ddr_perf_event_update()
147 memset(&pmu->counters, 0, sizeof(pmu->counters)); in meson_ddr_perf_event_start()
351 struct dmc_counter counters, *sum_cnter; in dmc_irq_handler() local
356 if (info->hw_info->irq_handler(info, &counters) != 0) in dmc_irq_handler()
359 sum_cnter = &pmu->counters; in dmc_irq_handler()
360 sum_cnter->all_cnt += counters.all_cnt; in dmc_irq_handler()
361 sum_cnter->all_req += counters.all_req; in dmc_irq_handler()
364 sum_cnter->channel_cnt[i] += counters.channel_cnt[i]; in dmc_irq_handler()
[all …]
/kernel/linux/linux-6.6/fs/xfs/scrub/
Dfscounters.c27 * FS Summary Counters
33 * Then we compare what we computed against the in-core counters.
35 * However, the reality is that summary counters are a tricky beast to check.
46 * structures as quickly as it can. We snapshot the percpu counters before and
64 * values, the percpu counters should be fairly close to each other. However,
71 * contents and trust that the incore counters match the ondisk counters. (The
73 * summary counters after checking all AG headers). Do this from the setup
155 * that comprise the summary counters and compare them to the percpu counters.
229 /* We must get the incore counters set up before we can proceed. */ in xchk_setup_fscounters()
236 * reduce the likelihood of background perturbations to the counters in xchk_setup_fscounters()
[all …]

12345678910>>...134