/openbmc/linux/kernel/gcov/ |
H A D | clang.c | 74 u32 num_counters; member 128 void llvm_gcda_emit_arcs(u32 num_counters, u64 *counters) in llvm_gcda_emit_arcs() argument 133 info->num_counters = num_counters; in llvm_gcda_emit_arcs() 231 sizeof(fn->counters[0]) * fn->num_counters); in gcov_info_reset() 281 for (i = 0; i < sfn_ptr->num_counters; i++) in gcov_info_add() 297 cv_size = fn->num_counters * sizeof(fn->counters[0]); in gcov_fn_info_dup() 387 pos += store_gcov_u32(buffer, pos, fi_ptr->num_counters * 2); in convert_to_gcda() 388 for (i = 0; i < fi_ptr->num_counters; i++) in convert_to_gcda()
|
/openbmc/linux/arch/x86/events/intel/ |
H A D | uncore_snbep.c | 1046 .num_counters = 4, 1156 .num_counters = 4, 1269 .num_counters = 4, 1798 .num_counters = 4, 1821 .num_counters = 4, 1911 .num_counters = 4, 1934 .num_counters = 4, 2103 .num_counters = 2, 4821 .num_counters = 4, 5004 .num_counters = 4, [all …]
|
H A D | uncore_snb.c | 328 .num_counters = 2, 346 .num_counters = 2, 406 .num_counters = 4, 444 .num_counters = 2, 471 .num_counters = 1, 485 .num_counters = 1, 589 .num_counters = 2, 601 .num_counters = 2, 615 .num_counters = 1, 642 .num_counters = 2, [all …]
|
H A D | core.c | 2880 int num_counters = hybrid(cpuc->pmu, num_counters); in intel_pmu_reset() local 2884 if (!num_counters) in intel_pmu_reset() 4160 *nr = x86_pmu.num_counters; in core_guest_get_msrs() 5840 int num_counters, in intel_pmu_check_event_constraints() argument 5928 pmu->num_counters, in intel_pmu_check_hybrid_pmus() 5985 x86_pmu.num_counters = eax.split.num_counters; in intel_pmu_init() 6691 pmu->num_counters = x86_pmu.num_counters + 2; in intel_pmu_init() 6694 pmu->num_counters = x86_pmu.num_counters; in intel_pmu_init() 6706 pmu->num_counters = x86_pmu.num_counters; in intel_pmu_init() 6729 pmu->num_counters = x86_pmu.num_counters; in intel_pmu_init() [all …]
|
/openbmc/linux/drivers/perf/ |
H A D | arm_dsu_pmu.c | 121 s8 num_counters; member 244 return (idx < dsu_pmu->num_counters) || in dsu_pmu_counter_valid() 313 idx = find_first_zero_bit(used_mask, dsu_pmu->num_counters); in dsu_pmu_get_event_idx() 314 if (idx >= dsu_pmu->num_counters) in dsu_pmu_get_event_idx() 601 dsu_pmu->num_counters = -1; in dsu_pmu_alloc() 670 u64 num_counters; in dsu_pmu_probe_pmu() local 676 if (WARN_ON(num_counters > 31)) in dsu_pmu_probe_pmu() 677 num_counters = 31; in dsu_pmu_probe_pmu() 678 dsu_pmu->num_counters = num_counters; in dsu_pmu_probe_pmu() 679 if (!dsu_pmu->num_counters) in dsu_pmu_probe_pmu() [all …]
|
H A D | arm_smmuv3_pmu.c | 130 unsigned int num_counters; member 171 for_each_set_bit(idx, smmu_pmu->used_counters, smmu_pmu->num_counters) in smmu_pmu_enable_quirk_hip08_09() 195 for_each_set_bit(idx, smmu_pmu->used_counters, smmu_pmu->num_counters) in smmu_pmu_disable_quirk_hip08_09() 330 unsigned int cur_idx, num_ctrs = smmu_pmu->num_counters; in smmu_pmu_apply_event_filter() 361 unsigned int num_ctrs = smmu_pmu->num_counters; in smmu_pmu_get_event_idx() 430 if (++group_num_events > smmu_pmu->num_counters) in smmu_pmu_event_init() 441 if (++group_num_events > smmu_pmu->num_counters) in smmu_pmu_event_init() 699 for_each_set_bit(idx, ovs, smmu_pmu->num_counters) { in smmu_pmu_handle_irq() 777 u64 counter_present_mask = GENMASK_ULL(smmu_pmu->num_counters - 1, 0); in smmu_pmu_reset() 900 smmu_pmu->num_counters = FIELD_GET(SMMU_PMCG_CFGR_NCTR, cfgr) + 1; in smmu_pmu_probe() [all …]
|
H A D | qcom_l2_pmu.c | 113 int num_counters; member 344 int num_ctrs = cluster->l2cache_pmu->num_counters - 1; in l2_cache_get_event_idx() 388 int num_counters = cluster->l2cache_pmu->num_counters; in l2_cache_handle_irq() local 396 for_each_set_bit(idx, cluster->used_counters, num_counters) { in l2_cache_handle_irq() 920 l2cache_pmu->num_counters = get_num_counters(); in l2_cache_pmu_probe() 927 l2_cycle_ctr_idx = l2cache_pmu->num_counters - 1; in l2_cache_pmu_probe() 928 l2_counter_present_mask = GENMASK(l2cache_pmu->num_counters - 2, 0) | in l2_cache_pmu_probe()
|
/openbmc/linux/arch/x86/events/ |
H A D | core.c | 196 int i, num_counters = x86_pmu.num_counters; in get_possible_num_counters() local 199 return num_counters; in get_possible_num_counters() 202 num_counters = max_t(int, num_counters, x86_pmu.hybrid_pmu[i].num_counters); in get_possible_num_counters() 204 return num_counters; in get_possible_num_counters() 211 for (i = 0; i < num_counters; i++) { in reserve_pmc_hardware() 227 i = num_counters; in reserve_pmc_hardware() 980 int num_counters = hybrid(cpuc->pmu, num_counters); in x86_schedule_events() local 1056 int gpmax = num_counters; in x86_schedule_events() 1162 int num_counters = hybrid(cpuc->pmu, num_counters); in collect_events() local 1527 int num_counters = hybrid(cpuc->pmu, num_counters); in perf_event_print_debug() local [all …]
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | counters.c | 371 int ret, num_counters; in do_get_hw_stats() local 376 num_counters = cnts->num_q_counters + in do_get_hw_stats() 423 return num_counters; in do_get_hw_stats() 688 num_counters = size; in __mlx5_ib_alloc_counters() 693 num_counters += size; in __mlx5_ib_alloc_counters() 698 num_counters += size; in __mlx5_ib_alloc_counters() 703 num_counters += size; in __mlx5_ib_alloc_counters() 708 num_counters += size; in __mlx5_ib_alloc_counters() 710 cnts->num_q_counters = num_counters; in __mlx5_ib_alloc_counters() 736 num_counters += num_op_counters; in __mlx5_ib_alloc_counters() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_counter.c | 28 u32 num_counters; member 156 &block->num_counters); in prestera_counter_block_get() 160 block->stats = kcalloc(block->num_counters, in prestera_counter_block_get() 167 block->counter_flag = kcalloc(block->num_counters, in prestera_counter_block_get() 236 block->offset + block->num_counters, in prestera_counter_get_vacant() 382 if (!done || counter->total_read < block->num_counters) { in prestera_counter_stats_work() 387 for (i = 0; i < block->num_counters; i++) { in prestera_counter_stats_work()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | perf_event.c | 135 unsigned int num_counters; member 257 for (i = 0; i < loongarch_pmu.num_counters; i++) { in loongarch_pmu_alloc_counter() 271 WARN_ON(idx < 0 || idx >= loongarch_pmu.num_counters); in loongarch_pmu_enable_event() 290 WARN_ON(idx < 0 || idx >= loongarch_pmu.num_counters); in loongarch_pmu_disable_event() 426 WARN_ON(idx < 0 || idx >= loongarch_pmu.num_counters); in loongarch_pmu_del() 518 for (n = 0; n < loongarch_pmu.num_counters; n++) { in pmu_handle_irq() 664 int counters = loongarch_pmu.num_counters; in reset_counters() 826 int ctr = loongarch_pmu.num_counters; in pause_local_counters() 841 int ctr = loongarch_pmu.num_counters; in resume_local_counters() 867 loongarch_pmu.num_counters = counters; in init_hw_perf_events()
|
/openbmc/linux/net/bridge/netfilter/ |
H A D | ebtables.c | 1020 if (repl->num_counters) { in do_replace_finish() 1048 if (repl->num_counters && repl->num_counters != t->private->nentries) { in do_replace_finish() 1063 if (repl->num_counters) in do_replace_finish() 1075 if (repl->num_counters && in do_replace_finish() 1386 if (num_counters == 0) in do_update_counters() 1437 hlp.num_counters, len); in update_counters() 1523 if (num_counters == 0) in copy_counters_to_user() 1599 compat_uint_t num_counters; member 1878 (tmp.num_counters && tmp.num_counters != tinfo.nentries)) in compat_copy_everything_to_user() 2246 repl->num_counters = tmp.num_counters; in compat_copy_ebt_replace_from_user() [all …]
|
/openbmc/linux/drivers/perf/hisilicon/ |
H A D | hisi_uncore_pmu.c | 95 return counters <= hisi_pmu->num_counters; in hisi_validate_event_group() 102 u32 num_counters = hisi_pmu->num_counters; in hisi_uncore_pmu_get_event_idx() local 105 idx = find_first_zero_bit(used_mask, num_counters); in hisi_uncore_pmu_get_event_idx() 106 if (idx == num_counters) in hisi_uncore_pmu_get_event_idx() 145 for_each_set_bit(idx, &overflown, hisi_pmu->num_counters) { in hisi_uncore_pmu_isr() 399 hisi_pmu->num_counters); in hisi_uncore_pmu_enable()
|
/openbmc/linux/arch/x86/events/amd/ |
H A D | core.c | 420 for (i = 0; i < x86_pmu.num_counters; i++) { in __amd_put_nb_event_constraints() 487 for_each_set_bit(idx, c->idxmsk, x86_pmu.num_counters) { in __amd_get_nb_event_constraints() 530 for (i = 0; i < x86_pmu.num_counters; i++) { in amd_alloc_nb() 723 for (idx = 0; idx < x86_pmu.num_counters; idx++) { in amd_pmu_check_overflow() 743 for (idx = 0; idx < x86_pmu.num_counters; idx++) { in amd_pmu_enable_all() 935 for (idx = 0; idx < x86_pmu.num_counters; idx++) { in amd_pmu_v2_handle_irq() 1270 .num_counters = AMD64_NUM_COUNTERS, 1369 x86_pmu.num_counters = AMD64_NUM_COUNTERS_CORE; in amd_core_pmu_init() 1379 x86_pmu.num_counters = ebx.split.num_core_pmc; in amd_core_pmu_init() 1409 for (i = 0; i < x86_pmu.num_counters - 1; i += 2) in amd_core_pmu_init() [all …]
|
H A D | uncore.c | 44 int num_counters; member 136 for (i = 0; i < uncore->num_counters; i++) { in amd_uncore_add() 145 for (i = 0; i < uncore->num_counters; i++) { in amd_uncore_add() 185 for (i = 0; i < uncore->num_counters; i++) { in amd_uncore_del() 451 uncore_nb->num_counters = num_counters_nb; in amd_uncore_cpu_up_prepare() 469 uncore_llc->num_counters = num_counters_llc; in amd_uncore_cpu_up_prepare()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | counters.c | 20 if (port_counter->num_counters) in __counter_set_mode() 58 mode = (port_counter->num_counters) ? RDMA_COUNTER_MODE_MANUAL : in rdma_counter_set_auto_mode() 119 if (!stats || index >= stats->num_counters || in rdma_counter_modify() 184 port_counter->num_counters++; in alloc_and_bind() 213 port_counter->num_counters--; in rdma_counter_free() 214 if (!port_counter->num_counters && in rdma_counter_free() 268 for (i = 0; i < counter->stats->num_counters; i++) in counter_history_stat_update()
|
H A D | sysfs.c | 820 if (ret == stats->num_counters) in update_hw_stats() 899 if (!stats->descs || stats->num_counters <= 0) in alloc_hw_stats_device() 910 data->group.attrs = kcalloc(stats->num_counters + 2, in alloc_hw_stats_device() 949 data->stats->num_counters); in ib_setup_device_attrs() 950 if (ret != data->stats->num_counters) { in ib_setup_device_attrs() 958 for (i = 0; i < data->stats->num_counters; i++) { in ib_setup_device_attrs() 1005 if (!stats->descs || stats->num_counters <= 0) in alloc_hw_stats_port() 1016 group->attrs = kcalloc(stats->num_counters + 2, in alloc_hw_stats_port() 1046 data->stats->num_counters); in setup_hw_port_stats() 1047 if (ret != data->stats->num_counters) { in setup_hw_port_stats() [all …]
|
/openbmc/linux/arch/x86/kvm/svm/ |
H A D | pmu.c | 30 unsigned int num_counters = pmu->nr_arch_gp_counters; in amd_pmc_idx_to_pmc() local 32 if (pmc_idx >= num_counters) in amd_pmc_idx_to_pmc() 35 return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)]; in amd_pmc_idx_to_pmc()
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | ni_tio.h | 109 unsigned int num_counters; member 124 unsigned int num_counters,
|
/openbmc/linux/arch/x86/events/zhaoxin/ |
H A D | core.c | 533 x86_pmu.num_counters = eax.split.num_counters; in zhaoxin_pmu_init() 607 x86_pmu.intel_ctrl = (1 << (x86_pmu.num_counters)) - 1; in zhaoxin_pmu_init() 612 c->idxmsk64 |= (1ULL << x86_pmu.num_counters) - 1; in zhaoxin_pmu_init() 613 c->weight += x86_pmu.num_counters; in zhaoxin_pmu_init()
|
/openbmc/linux/drivers/memory/samsung/ |
H A D | exynos5422-dmc.c | 182 int num_counters; member 242 for (i = 0; i < dmc->num_counters; i++) { in exynos5_counters_set_event() 256 for (i = 0; i < dmc->num_counters; i++) { in exynos5_counters_enable_edev() 270 for (i = 0; i < dmc->num_counters; i++) { in exynos5_counters_disable_edev() 735 for (i = 0; i < dmc->num_counters; i++) { in exynos5_counters_get() 1334 dmc->num_counters = devfreq_event_get_edev_count(dmc->dev, in exynos5_performance_counters_init() 1336 if (dmc->num_counters < 0) { in exynos5_performance_counters_init() 1338 return dmc->num_counters; in exynos5_performance_counters_init() 1341 dmc->counter = devm_kcalloc(dmc->dev, dmc->num_counters, in exynos5_performance_counters_init() 1346 for (i = 0; i < dmc->num_counters; i++) { in exynos5_performance_counters_init()
|
/openbmc/linux/arch/x86/kvm/vmx/ |
H A D | pmu_intel.c | 145 unsigned int num_counters; in intel_rdpmc_ecx_to_pmc() local 150 num_counters = pmu->nr_arch_fixed_counters; in intel_rdpmc_ecx_to_pmc() 153 num_counters = pmu->nr_arch_gp_counters; in intel_rdpmc_ecx_to_pmc() 155 if (idx >= num_counters) in intel_rdpmc_ecx_to_pmc() 158 return &counters[array_index_nospec(idx, num_counters)]; in intel_rdpmc_ecx_to_pmc() 517 pmu->nr_arch_gp_counters = min_t(int, eax.split.num_counters, in intel_pmu_refresh()
|
/openbmc/linux/net/ipv4/netfilter/ |
H A D | arp_tables.c | 883 unsigned int num_counters, in __do_replace() argument 894 counters = xt_counters_alloc(num_counters); in __do_replace() 912 oldinfo = xt_replace_table(t, num_counters, newinfo, &ret); in __do_replace() 935 sizeof(struct xt_counters) * num_counters) != 0) { in __do_replace() 967 if (tmp.num_counters == 0) in do_replace() 990 tmp.num_counters, tmp.counters); in do_replace() 1026 if (private->number != tmp.num_counters) { in do_add_counters() 1060 u32 num_counters; member 1227 repl.num_counters = 0; in translate_compat_table() 1269 if (tmp.num_counters == 0) in compat_do_replace() [all …]
|
/openbmc/linux/include/uapi/linux/netfilter_bridge/ |
H A D | ebtables.h | 54 unsigned int num_counters; member 70 unsigned int num_counters; member
|
/openbmc/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | hw_counters.c | 382 int num_counters = 0; in bnxt_re_ib_alloc_hw_port_stats() local 385 num_counters = BNXT_RE_NUM_EXT_COUNTERS; in bnxt_re_ib_alloc_hw_port_stats() 387 num_counters = BNXT_RE_NUM_STD_COUNTERS; in bnxt_re_ib_alloc_hw_port_stats() 389 return rdma_alloc_hw_stats_struct(bnxt_re_stat_descs, num_counters, in bnxt_re_ib_alloc_hw_port_stats()
|