| /Linux-v6.1/drivers/infiniband/core/ |
| D | uverbs_std_types_counters.c | 42 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 …]
|
| /Linux-v6.1/net/netfilter/ |
| D | xt_connbytes.c | 30 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 …]
|
| /Linux-v6.1/tools/perf/ |
| D | design.txt | 2 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 …]
|
| /Linux-v6.1/Documentation/arm64/ |
| D | amu.rst | 22 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 …]
|
| /Linux-v6.1/Documentation/core-api/ |
| D | local_ops.rst | 30 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 …]
|
| /Linux-v6.1/Documentation/translations/zh_CN/core-api/ |
| D | local_ops.rst | 93 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 …]
|
| /Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/macsec/ |
| D | macsec_api.h | 265 /*! 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 …]
|
| D | macsec_api.c | 1825 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 …]
|
| /Linux-v6.1/fs/xfs/scrub/ |
| D | fscounters.c | 22 * FS Summary Counters 28 * Then we compare what we computed against the in-core counters. 30 * However, the reality is that summary counters are a tricky beast to check. 41 * structures as quickly as it can. We snapshot the percpu counters before and 48 * values, the percpu counters should be fairly close to each other. However, 55 * contents and trust that the incore counters match the ondisk counters. (The 57 * summary counters after checking all AG headers). Do this from the setup 126 /* We must get the incore counters set up before we can proceed. */ in xchk_setup_fscounters() 133 * likelihood of background perturbations to the counters throwing off in xchk_setup_fscounters() 171 * Calculate what the global in-core counters ought to be from the incore [all …]
|
| /Linux-v6.1/include/linux/ |
| D | nfs_iostat.h | 13 * 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 …]
|
| /Linux-v6.1/lib/ |
| D | percpu_counter.c | 3 * 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 …]
|
| /Linux-v6.1/net/ipv4/netfilter/ |
| D | arp_tables.c | 230 counter = xt_get_this_cpu_counter(&e->counters); in arpt_do_table() 319 e->counters.pcnt = pos; in mark_source_chains() 345 pos = e->counters.pcnt; in mark_source_chains() 346 e->counters.pcnt = 0; in mark_source_chains() 360 e->counters.pcnt = pos; in mark_source_chains() 379 e->counters.pcnt = pos; in mark_source_chains() 413 if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) in find_check_entry() 432 xt_percpu_counter_free(&e->counters); in find_check_entry() 494 /* Clear counters and comefrom */ in check_entry_size_and_hooks() 495 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks() [all …]
|
| D | ip_tables.c | 299 counter = xt_get_this_cpu_counter(&e->counters); in ipt_do_table() 385 e->counters.pcnt = pos; in mark_source_chains() 409 pos = e->counters.pcnt; in mark_source_chains() 410 e->counters.pcnt = 0; in mark_source_chains() 424 e->counters.pcnt = pos; in mark_source_chains() 443 e->counters.pcnt = pos; in mark_source_chains() 528 if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) in find_check_entry() 568 xt_percpu_counter_free(&e->counters); in find_check_entry() 631 /* Clear counters and comefrom */ in check_entry_size_and_hooks() 632 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks() [all …]
|
| /Linux-v6.1/tools/perf/tests/shell/ |
| D | stat_bpf_counters.sh | 2 # perf stat --bpf-counters test 24 # skip if --bpf-counters is not supported 25 if ! perf stat --bpf-counters true > /dev/null 2>&1; then 27 echo "Skipping: --bpf-counters not supported" 28 perf --no-pager stat --bpf-counters true || true 38 bpf_cycles=$(perf stat --no-big-num --bpf-counters -e cycles -- perf bench sched messaging -g 1 -l … 40 echo "Failed: cycles not counted with --bpf-counters"
|
| D | stat_bpf_counters_cgrp.sh | 2 # perf stat --bpf-counters --for-each-cgroup test 12 # skip if --bpf-counters --for-each-cgroup is not supported 15 if ! perf stat -a --bpf-counters --for-each-cgroup / true > /dev/null 2>&1; then 17 echo "Skipping: --bpf-counters --for-each-cgroup not supported" 18 perf --no-pager stat -a --bpf-counters --for-each-cgroup / true || true 53 …output=$(perf stat -a --bpf-counters --for-each-cgroup ${test_cgroups} -e cpu-clock -x, sleep 1 2… 67 …output=$(perf stat -C 1 --bpf-counters --for-each-cgroup ${test_cgroups} -e cpu-clock -x, taskset …
|
| /Linux-v6.1/Documentation/admin-guide/perf/ |
| D | alibaba_pmu.rst | 23 Each sub-channel has 36 PMU counters in total, which is classified into 26 - Group 0: PMU Cycle Counter. This group has one pair of counters 30 - Group 1: PMU Bandwidth Counters. This group has 8 counters that are used 32 selected rank, or four ranks separately in the first 4 counters. The base 35 - Group 2: PMU Retry Counters. This group has 10 counters, that intend to 38 - Group 3: PMU Common Counters. This group has 16 counters, that are used 41 For now, the Driveway PMU driver only uses counters in group 0 and group 3.
|
| D | thunderx2-pmu.rst | 13 The DMC and L3C support up to 4 counters, while the CCPI2 supports up to 8 14 counters. Counters are independently programmable to different events and 15 can be started and stopped individually. None of the counters support an 16 overflow interrupt. DMC and L3C counters are 32-bit and read every 2 seconds. 17 The CCPI2 counters are 64-bit and assumed not to overflow in normal operation.
|
| /Linux-v6.1/tools/perf/util/ |
| D | values.c | 30 pr_debug("failed to allocate read_values counters arrays"); in perf_read_values_init() 33 values->counters = 0; in perf_read_values_init() 60 for (i = 0; i < values->counters; i++) in perf_read_values_destroy() 107 pr_debug("failed to allocate read_values counters array"); in perf_read_values__findnew_thread() 167 for (i = 0; i < values->counters; i++) in perf_read_values__findnew_counter() 171 if (values->counters == values->counters_max) { in perf_read_values__findnew_counter() 177 i = values->counters++; in perf_read_values__findnew_counter() 208 counterwidth = malloc(values->counters * sizeof(*counterwidth)); in perf_read_values__display_pretty() 215 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty() 226 for (j = 0; j < values->counters; j++) { in perf_read_values__display_pretty() [all …]
|
| /Linux-v6.1/net/ipv6/netfilter/ |
| D | ip6_tables.c | 322 counter = xt_get_this_cpu_counter(&e->counters); in ip6t_do_table() 403 e->counters.pcnt = pos; in mark_source_chains() 427 pos = e->counters.pcnt; in mark_source_chains() 428 e->counters.pcnt = 0; in mark_source_chains() 442 e->counters.pcnt = pos; in mark_source_chains() 461 e->counters.pcnt = pos; in mark_source_chains() 547 if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) in find_check_entry() 586 xt_percpu_counter_free(&e->counters); in find_check_entry() 649 /* Clear counters and comefrom */ in check_entry_size_and_hooks() 650 e->counters = ((struct xt_counters) { 0, 0 }); in check_entry_size_and_hooks() [all …]
|
| /Linux-v6.1/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
| D | tc_flower_scale.sh | 11 # counters. 12 max_cnts=$(devlink_resource_size_get counters flow) 14 # Remove already allocated counters. 15 ((max_cnts -= $(devlink_resource_occ_get counters flow))) 17 # Each rule uses two counters, for packets and bytes.
|
| /Linux-v6.1/drivers/md/ |
| D | md-faulty.c | 78 atomic_t counters[Modes]; member 88 atomic_read(&conf->counters[mode]) <= 0) in check_mode() 92 if (atomic_dec_and_test(&conf->counters[mode])) { in check_mode() 94 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode() 171 if (atomic_read(&conf->counters[WriteAll])) { in faulty_make_request() 226 if ((n=atomic_read(&conf->counters[WriteTransient])) != 0) in faulty_status() 230 if ((n=atomic_read(&conf->counters[ReadTransient])) != 0) in faulty_status() 234 if ((n=atomic_read(&conf->counters[WritePersistent])) != 0) in faulty_status() 238 if ((n=atomic_read(&conf->counters[ReadPersistent])) != 0) in faulty_status() 243 if ((n=atomic_read(&conf->counters[ReadFixable])) != 0) in faulty_status() [all …]
|
| /Linux-v6.1/Documentation/admin-guide/device-mapper/ |
| D | statistics.rst | 14 The I/O statistics counters for each step-sized area of a region are 16 Documentation/admin-guide/iostats.rst). But two extra counters (12 and 13) are 19 histogram of latencies. All these counters may be accessed by sending 111 Clear all the counters except the in-flight i/o counters. 133 Print counters for each step-sized area of a region. 149 counters 151 The first 11 counters have the same meaning as 168 Additional counters: 174 Atomically print and then clear all the counters except the 175 in-flight i/o counters. Useful when the client consuming the
|
| /Linux-v6.1/kernel/gcov/ |
| D | clang.c | 75 u64 *counters; member 128 void llvm_gcda_emit_arcs(u32 num_counters, u64 *counters) in llvm_gcda_emit_arcs() argument 134 info->counters = counters; in llvm_gcda_emit_arcs() 230 memset(fn->counters, 0, in gcov_info_reset() 231 sizeof(fn->counters[0]) * fn->num_counters); in gcov_info_reset() 282 dfn_ptr->counters[i] += sfn_ptr->counters[i]; in gcov_info_add() 297 cv_size = fn->num_counters * sizeof(fn->counters[0]); in gcov_fn_info_dup() 298 fn_dup->counters = kvmalloc(cv_size, GFP_KERNEL); in gcov_fn_info_dup() 299 if (!fn_dup->counters) { in gcov_fn_info_dup() 304 memcpy(fn_dup->counters, fn->counters, cv_size); in gcov_fn_info_dup() [all …]
|
| D | gcc_base.c | 46 void __gcov_merge_add(gcov_type *counters, unsigned int n_counters) in __gcov_merge_add() argument 52 void __gcov_merge_single(gcov_type *counters, unsigned int n_counters) in __gcov_merge_single() argument 58 void __gcov_merge_delta(gcov_type *counters, unsigned int n_counters) in __gcov_merge_delta() argument 64 void __gcov_merge_ior(gcov_type *counters, unsigned int n_counters) in __gcov_merge_ior() argument 70 void __gcov_merge_time_profile(gcov_type *counters, unsigned int n_counters) in __gcov_merge_time_profile() argument 76 void __gcov_merge_icall_topn(gcov_type *counters, unsigned int n_counters) in __gcov_merge_icall_topn() argument
|
| /Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/ |
| D | aq_macsec.h | 27 /* Ingress Common Counters */ 47 /* Egress Common Counters */ 58 /* Ingress SA Counters */ 74 /* Egress SA Counters */ 82 /* Egress SC Counters */ 116 /* Statistics / counters */
|