/linux-master/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
H A 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.
|
H A D | rif_counter_scale.sh | 12 max_cnts=$(devlink_resource_size_get counters rif) 17 # 10 KVD slots per counter, ingress+egress counters per RIF 21 # host all the counters.
|
/linux-master/drivers/infiniband/core/ |
H A D | uverbs_std_types_counters.c | 42 struct ib_counters *counters = uobject->object; local 45 if (atomic_read(&counters->usecnt)) 48 ret = counters->device->ops.destroy_counters(counters); 51 kfree(counters); 61 struct ib_counters *counters; local 72 counters = rdma_zalloc_drv_obj(ib_dev, ib_counters); 73 if (!counters) 76 counters->device = ib_dev; 77 counters 93 struct ib_counters *counters = local [all...] |
/linux-master/kernel/gcov/ |
H A D | gcc_base.c | 46 void __gcov_merge_add(gcov_type *counters, unsigned int n_counters) argument 52 void __gcov_merge_single(gcov_type *counters, unsigned int n_counters) argument 58 void __gcov_merge_delta(gcov_type *counters, unsigned int n_counters) argument 64 void __gcov_merge_ior(gcov_type *counters, unsigned int n_counters) argument 70 void __gcov_merge_time_profile(gcov_type *counters, unsigned int n_counters) argument 76 void __gcov_merge_icall_topn(gcov_type *counters, unsigned int n_counters) argument
|
H A D | clang.c | 75 u64 *counters; member in struct:gcov_fn_info 128 void llvm_gcda_emit_arcs(u32 num_counters, u64 *counters) argument 134 info->counters = counters; 230 memset(fn->counters, 0, 231 sizeof(fn->counters[0]) * fn->num_counters); 282 dfn_ptr->counters[i] += sfn_ptr->counters[i]; 297 cv_size = fn->num_counters * sizeof(fn->counters[0]); 298 fn_dup->counters [all...] |
/linux-master/net/netfilter/ |
H A D | xt_connbytes.c | 30 const struct nf_conn_counter *counters; local 40 counters = acct->counter; 45 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets); 48 what = atomic64_read(&counters[IP_CT_DIR_REPLY].packets); 51 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets); 52 what += atomic64_read(&counters[IP_CT_DIR_REPLY].packets); 59 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); 62 what = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); 65 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); 66 what += atomic64_read(&counters[IP_CT_DIR_REPL [all...] |
/linux-master/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | proc.c | 18 struct netstat_counter *counters; member in struct:netstat 52 ret->counters = NULL; 81 type->counters = reallocarray(type->counters, 84 if (!type->counters) 95 struct netstat_counter *nc = &type->counters[i]; 133 type->counters = reallocarray(type->counters, i + 1, 135 if (!type->counters) 137 nc = &type->counters[ [all...] |
/linux-master/fs/bcachefs/ |
H A D | sb-counters.c | 4 #include "sb-counters.h" 33 struct bch_sb_field_counters *ctrs = field_to_type(f, counters); 51 struct bch_sb_field_counters *ctrs = bch2_sb_field_get(c->disk_sb.sb, counters); 61 percpu_u64_set(&c->counters[i], val); 69 struct bch_sb_field_counters *ctrs = bch2_sb_field_get(c->disk_sb.sb, counters); 75 ret = bch2_sb_field_resize(&c->disk_sb, counters, 86 ctrs->d[i] = cpu_to_le64(percpu_u64_get(&c->counters[i])); 92 free_percpu(c->counters); 97 c->counters = __alloc_percpu(sizeof(u64) * BCH_COUNTER_NR, sizeof(u64)); 98 if (!c->counters) [all...] |
/linux-master/lib/ |
H A D | percpu_counter.c | 3 * Fast batching percpu counters. 67 s32 *pcount = per_cpu_ptr(fbc->counters, cpu); 83 * the this_cpu_add(), and the interrupt updates this_cpu(*fbc->counters), 93 count = __this_cpu_read(*fbc->counters) + amount; 97 __this_cpu_sub(*fbc->counters, count - amount); 100 this_cpu_add(*fbc->counters, amount); 118 count = __this_cpu_read(*fbc->counters); 120 __this_cpu_sub(*fbc->counters, count); 146 s32 *pcount = per_cpu_ptr(fbc->counters, cpu); 160 s32 __percpu *counters; local [all...] |
/linux-master/tools/perf/tests/shell/ |
H A D | stat_bpf_counters.sh | 2 # perf stat --bpf-counters test 24 # skip if --bpf-counters is not supported 25 if ! perf stat -e cycles --bpf-counters true > /dev/null 2>&1; then 27 echo "Skipping: --bpf-counters not supported" 28 perf --no-pager stat -e cycles --bpf-counters true || true 38 bpf_cycles=$(perf stat --no-big-num --bpf-counters -e cycles -- perf bench sched messaging -g 1 -l 100 -t 2>&1 | awk '/cycles/ {print $1}') 40 echo "Failed: cycles not counted with --bpf-counters"
|
H A 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 51 check_system_wide_counted_output=$(perf stat -a --bpf-counters --for-each-cgroup ${test_cgroups} -e cpu-clock -x, sleep 1 2>&1) 63 check_cpu_list_counted_output=$(perf stat -C 0,1 --bpf-counters --for-each-cgroup ${test_cgroups} -e cpu-clock -x, taskset -c 1 sleep 1 2>&1)
|
/linux-master/samples/cgroup/ |
H A D | memcg_event_listener.c | 45 struct memcg_counters counters; member in struct:memcg_events 51 static void print_memcg_counters(const struct memcg_counters *counters) argument 54 printf("\tlow: %ld\n", counters->low); 55 printf("\thigh: %ld\n", counters->high); 56 printf("\tmax: %ld\n", counters->max); 57 printf("\toom: %ld\n", counters->oom); 58 printf("\toom_kill: %ld\n", counters->oom_kill); 59 printf("\toom_group_kill: %ld\n", counters->oom_group_kill); 109 struct memcg_counters *counters = &events->counters; local [all...] |
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | counters.h | 13 void mlx5_ib_counters_clear_description(struct ib_counters *counters);
|
/linux-master/tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
H A D | rif_counter_scale.sh | 12 max_cnts=$(devlink_resource_size_get counters rif) 17 # 10 KVD slots per counter, ingress+egress counters per RIF 21 # host all the counters.
|
/linux-master/fs/nfsd/ |
H A D | stats.c | 76 int nfsd_percpu_counters_init(struct percpu_counter *counters, int num) argument 81 err = percpu_counter_init(&counters[i], 0, GFP_KERNEL); 87 percpu_counter_destroy(&counters[i-1]); 92 void nfsd_percpu_counters_reset(struct percpu_counter counters[], int num) argument 97 percpu_counter_set(&counters[i], 0); 100 void nfsd_percpu_counters_destroy(struct percpu_counter counters[], int num) argument 105 percpu_counter_destroy(&counters[i]);
|
H A D | stats.h | 13 int nfsd_percpu_counters_init(struct percpu_counter *counters, int num); 14 void nfsd_percpu_counters_reset(struct percpu_counter *counters, int num); 15 void nfsd_percpu_counters_destroy(struct percpu_counter *counters, int num);
|
/linux-master/samples/bpf/ |
H A D | tracex6.bpf.c | 12 } counters SEC(".maps"); 35 count = bpf_perf_event_read(&counters, key); 67 error = bpf_perf_event_read_value(&counters, key, &buf, sizeof(buf));
|
/linux-master/drivers/net/ethernet/aquantia/atlantic/macsec/ |
H A D | macsec_api.c | 1825 struct aq_mss_egress_sc_counters *counters, 1837 counters->sc_protected_pkts[0] = 1839 counters->sc_protected_pkts[1] = 1845 counters->sc_encrypted_pkts[0] = 1847 counters->sc_encrypted_pkts[1] = 1853 counters->sc_protected_octets[0] = 1855 counters->sc_protected_octets[1] = 1861 counters->sc_encrypted_octets[0] = 1863 counters->sc_encrypted_octets[1] = 1870 struct aq_mss_egress_sc_counters *counters, 1824 get_egress_sc_counters(struct aq_hw_s *hw, struct aq_mss_egress_sc_counters *counters, u16 sc_index) argument 1869 aq_mss_get_egress_sc_counters(struct aq_hw_s *hw, struct aq_mss_egress_sc_counters *counters, u16 sc_index) argument 1878 get_egress_sa_counters(struct aq_hw_s *hw, struct aq_mss_egress_sa_counters *counters, u16 sa_index) argument 1923 aq_mss_get_egress_sa_counters(struct aq_hw_s *hw, struct aq_mss_egress_sa_counters *counters, u16 sa_index) argument 1933 get_egress_common_counters(struct aq_hw_s *hw, struct aq_mss_egress_common_counters *counters) argument 1986 aq_mss_get_egress_common_counters(struct aq_hw_s *hw, struct aq_mss_egress_common_counters *counters) argument 2053 get_ingress_sa_counters(struct aq_hw_s *hw, struct aq_mss_ingress_sa_counters *counters, u16 sa_index) argument 2162 aq_mss_get_ingress_sa_counters(struct aq_hw_s *hw, struct aq_mss_ingress_sa_counters *counters, u16 sa_index) argument 2173 get_ingress_common_counters(struct aq_hw_s *hw, struct aq_mss_ingress_common_counters *counters) argument 2302 aq_mss_get_ingress_common_counters(struct aq_hw_s *hw, struct aq_mss_ingress_common_counters *counters) argument [all...] |
H A 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, an [all...] |
/linux-master/tools/perf/util/ |
H A D | values.c | 30 pr_debug("failed to allocate read_values counters arrays"); 33 values->counters = 0; 60 for (i = 0; i < values->counters; i++) 107 pr_debug("failed to allocate read_values counters array"); 167 for (i = 0; i < values->counters; i++) 171 if (values->counters == values->counters_max) { 177 i = values->counters++; 208 counterwidth = malloc(values->counters * sizeof(*counterwidth)); 215 for (j = 0; j < values->counters; j++) 226 for (j = 0; j < values->counters; [all...] |
H A D | values.h | 11 int counters; member in struct:perf_read_values
|
/linux-master/drivers/perf/amlogic/ |
H A D | meson_ddr_pmu_core.c | 23 struct dmc_counter counters; /* save counters from hw */ member in struct:ddr_pmu 93 /* get the remain counters in register. */ 96 ddr_cnt_addition(&sum_dc, &pmu->counters, &dc, chann_nr); 147 memset(&pmu->counters, 0, sizeof(pmu->counters)); 351 struct dmc_counter counters, *sum_cnter; local 356 if (info->hw_info->irq_handler(info, &counters) != 0) 359 sum_cnter = &pmu->counters; 360 sum_cnter->all_cnt += counters [all...] |
/linux-master/drivers/accessibility/speakup/ |
H A D | keyhelp.c | 51 u_char *kp, counters[MAXFUNCS], ch, ch1; local 56 memset(counters, 0, sizeof(counters)); 66 counters[*kp]++; 70 if (counters[i] == 0) 73 offset += (counters[i] + 1); 77 /* leave counters set so high keycodes come first. 90 counters[ch1]--; 94 p_key = key_data + offset + counters[ch1];
|
/linux-master/drivers/net/wireless/silabs/wfx/ |
H A D | debug.c | 65 struct wfx_hif_mib_extended_count_table counters[3]; local 67 for (i = 0; i < ARRAY_SIZE(counters); i++) { 68 ret = wfx_hif_get_counters_table(wdev, i, counters + i); 79 le32_to_cpu(counters[2].count_##name), \ 80 le32_to_cpu(counters[0].count_##name), \ 81 le32_to_cpu(counters[1].count_##name)) 117 for (i = 0; i < ARRAY_SIZE(counters[0].reserved); i++) 119 le32_to_cpu(counters[2].reserved[i]), 120 le32_to_cpu(counters[0].reserved[i]), 121 le32_to_cpu(counters[ [all...] |
/linux-master/net/ipv4/netfilter/ |
H A D | ip_tables.c | 297 counter = xt_get_this_cpu_counter(&e->counters); 383 e->counters.pcnt = pos; 407 pos = e->counters.pcnt; 408 e->counters.pcnt = 0; 422 e->counters.pcnt = pos; 441 e->counters.pcnt = pos; 526 if (!xt_percpu_counter_alloc(alloc_state, &e->counters)) 566 xt_percpu_counter_free(&e->counters); 629 /* Clear counters and comefrom */ 630 e->counters 739 get_counters(const struct xt_table_info *t, struct xt_counters counters[]) argument 769 get_old_counters(const struct xt_table_info *t, struct xt_counters counters[]) argument 792 struct xt_counters *counters; local 816 struct xt_counters *counters; local 1043 struct xt_counters *counters; local 1213 compat_uptr_t counters; /* struct xt_counters * */ member in struct:compat_ipt_replace 1218 compat_copy_entry_to_user(struct ipt_entry *e, void __user **dstptr, unsigned int *size, struct xt_counters *counters, unsigned int i) argument 1553 struct xt_counters *counters; local [all...] |