| /freebsd/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_uverbs_std_types_counters.c | 44 struct ib_counters *counters = uobject->object; in uverbs_free_counters() local 47 ret = ib_destroy_usecnt(&counters->usecnt, why, uobject); in uverbs_free_counters() 51 return counters->device->destroy_counters(counters); in uverbs_free_counters() 60 struct ib_counters *counters; in UVERBS_HANDLER() local 71 counters = ib_dev->create_counters(ib_dev, attrs); in UVERBS_HANDLER() 72 if (IS_ERR(counters)) { in UVERBS_HANDLER() 73 ret = PTR_ERR(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 …]
|
| /freebsd/usr.sbin/pmcstudy/ |
| H A D | pmcstudy.c | 165 struct counters { struct 166 struct counters *next_cpu; argument 174 extern struct counters *glob_cpu[MAX_CPU]; argument 175 struct counters *glob_cpu[MAX_CPU]; 177 extern struct counters *cnts; 178 struct counters *cnts=NULL; 183 extern int (*expression)(struct counters *, int); 184 int (*expression)(struct counters *, int); 193 int (*func)(struct counters *, int); 448 static struct counters * [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Target/ |
| H A D | TargetPfmCounters.td | 9 // This file defines the target-independent interfaces for performance counters. 13 // Definition of a hardware counters from libpfm identifiers. 17 // measured value is the sum of events on these counters. 21 // Issue counters can be tied to a ProcResource 32 // event that can be measured using performance counters that is interesting 68 // Processor can list mappings between validation events and real counters 73 // A binding of a set of counters to a CPU. 74 class PfmCountersBinding<string cpu_name, ProcPfmCounters counters> { 76 ProcPfmCounters Counters = counters; 80 class PfmCountersDefaultBinding<ProcPfmCounters counters> [all …]
|
| /freebsd/contrib/wpa/src/radius/ |
| H A D | radius_server.c | 112 struct radius_server_counters counters; member 178 struct radius_server_counters counters; member 1297 data->counters.access_rejects++; in radius_server_reject() 1298 client->counters.access_rejects++; in radius_server_reject() 1409 data->counters.dup_access_requests++; in radius_server_request() 1410 client->counters.dup_access_requests++; in radius_server_request() 1440 data->counters.packets_dropped++; in radius_server_request() 1441 client->counters.packets_dropped++; in radius_server_request() 1480 data->counters.packets_dropped++; in radius_server_request() 1481 client->counters.packets_dropped++; in radius_server_request() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/ |
| H A D | low_latency.c | 44 struct iwl_mld_low_latency_packets_counters *counters = in iwl_mld_calc_low_latency() local 47 spin_lock_bh(&counters->lock); in iwl_mld_calc_low_latency() 49 total_vo_vi_pkts += counters->vo_vi[mac_id]; in iwl_mld_calc_low_latency() 52 counters->vo_vi[mac_id] = 0; in iwl_mld_calc_low_latency() 54 spin_unlock_bh(&counters->lock); in iwl_mld_calc_low_latency() 267 struct iwl_mld_low_latency_packets_counters *counters; in iwl_mld_low_latency_update_counters() local 275 if (WARN_ON_ONCE(fw_id >= ARRAY_SIZE(counters->vo_vi) || in iwl_mld_low_latency_update_counters() 285 counters = &mld->low_latency.pkts_counters[queue]; in iwl_mld_low_latency_update_counters() 287 spin_lock_bh(&counters->lock); in iwl_mld_low_latency_update_counters() 288 counters->vo_vi[fw_id]++; in iwl_mld_low_latency_update_counters() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/ |
| H A D | CtxInstrContextNode.h | 87 uint64_t *counters() { in counters() function 95 const uint64_t *counters() const { in counters() function 96 return const_cast<ContextNode *>(this)->counters(); in counters() 101 return reinterpret_cast<ContextNode **>(&(counters()[NumCounters])); in subContexts() 113 uint64_t entrycount() const { return counters()[0]; } in entrycount()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
| H A D | CtxInstrContextNode.h | 87 uint64_t *counters() { in counters() function 95 const uint64_t *counters() const { in counters() function 96 return const_cast<ContextNode *>(this)->counters(); in counters() 101 return reinterpret_cast<ContextNode **>(&(counters()[NumCounters])); in subContexts() 113 uint64_t entrycount() const { return counters()[0]; } in entrycount()
|
| /freebsd/tests/sys/netpfil/pf/ |
| H A D | fragmentation_pass.sh | 674 counters=$(jexec alcatraz pfctl -si -v | grep -A 4 '^Fragments') 676 echo $counters 678 echo $counters 680 echo $counters 682 echo $counters 687 counters=$(jexec alcatraz pfctl -si -v | grep -A 4 '^Fragments') 689 echo $counters 691 echo $counters 693 echo $counters 695 echo $counters [all …]
|
| /freebsd/crypto/openssl/crypto/aes/asm/ |
| H A D | aesni-mb-x86_64.pl | 104 ($counters,$mask,$zero)=map("%xmm$_",(10..12)); 215 movdqa 32(%rsp),$counters # load counters 250 movdqa $counters,$mask 266 paddd $mask,$counters # decrement counters 267 movdqa $counters,32(%rsp) # update counters 493 movdqa 32(%rsp),$counters # load counters 528 movdqa $counters,$mask 544 paddd $mask,$counters # decrement counters 545 movdqa $counters,32(%rsp) # update counters 674 my ($counters,$zero)=("%xmm14","%xmm15"); [all …]
|
| /freebsd/sys/gnu/gcov/ |
| H A D | gcov_fs.c | 60 void __gcov_merge_add(gcov_type *counters, unsigned int n_counters); 61 void __gcov_merge_single(gcov_type *counters, unsigned int n_counters); 62 void __gcov_merge_delta(gcov_type *counters, unsigned int n_counters); 63 void __gcov_merge_ior(gcov_type *counters, unsigned int n_counters); 64 void __gcov_merge_time_profile(gcov_type *counters, unsigned int n_counters); 65 void __gcov_merge_icall_topn(gcov_type *counters, unsigned int n_counters); 137 __gcov_merge_add(gcov_type *counters, unsigned int n_counters) in __gcov_merge_add() argument 143 __gcov_merge_single(gcov_type *counters, unsigned int n_counters) in __gcov_merge_single() argument 149 __gcov_merge_delta(gcov_type *counters, unsigned int n_counters) in __gcov_merge_delta() argument 155 __gcov_merge_ior(gcov_type *counters, unsigned int n_counters) in __gcov_merge_ior() argument [all …]
|
| /freebsd/sys/dev/ocs_fc/ |
| H A D | ocs_xport.c | 41 …nk_stats_cb(int32_t status, uint32_t num_counters, ocs_hw_link_stat_counts_t *counters, void *arg); 42 …st_stats_cb(int32_t status, uint32_t num_counters, ocs_hw_host_stat_counts_t *counters, void *arg); 1075 ocs_xport_link_stats_cb(int32_t status, uint32_t num_counters, ocs_hw_link_stat_counts_t *counters,… in ocs_xport_link_stats_cb() argument 1079 …result->stats.link_stats.link_failure_error_count = counters[OCS_HW_LINK_STAT_LINK_FAILURE_COUNT].… in ocs_xport_link_stats_cb() 1080 …result->stats.link_stats.loss_of_sync_error_count = counters[OCS_HW_LINK_STAT_LOSS_OF_SYNC_COUNT].… in ocs_xport_link_stats_cb() 1081 …result->stats.link_stats.primitive_sequence_error_count = counters[OCS_HW_LINK_STAT_PRIMITIVE_SEQ_… in ocs_xport_link_stats_cb() 1082 …result->stats.link_stats.invalid_transmission_word_error_count = counters[OCS_HW_LINK_STAT_INVALID… in ocs_xport_link_stats_cb() 1083 result->stats.link_stats.crc_error_count = counters[OCS_HW_LINK_STAT_CRC_COUNT].counter; in ocs_xport_link_stats_cb() 1089 ocs_xport_host_stats_cb(int32_t status, uint32_t num_counters, ocs_hw_host_stat_counts_t *counters,… in ocs_xport_host_stats_cb() argument 1093 … result->stats.host_stats.transmit_kbyte_count = counters[OCS_HW_HOST_STAT_TX_KBYTE_COUNT].counter; in ocs_xport_host_stats_cb() [all …]
|
| /freebsd/sys/dev/mlx5/mlx5_fpga/ |
| H A D | ipsec.h | 46 int mlx5_fpga_ipsec_counters_read(struct mlx5_core_dev *mdev, u64 *counters, 77 u64 *counters) in mlx5_fpga_ipsec_counters_read() argument
|
| /freebsd/tools/test/hwpmc/ |
| H A D | pmctest.py | 52 counters = gather_counters() 54 if len(counters) <= 0: 74 for counter in counters:
|
| /freebsd/packages/pmc/ |
| H A D | pmc.ucl | 1 comment = "Support for hardware performance counters" 5 interface that allows applications to use hardware performance counters
|
| /freebsd/sys/dev/mlx5/mlx5_core/ |
| H A D | mlx5_fs_counters.c | 38 /* Max number of counters to query in bulk read is 32K */ 113 /* skip counters that are in idr, but not yet in counters list */ in mlx5_fc_counters_lookup_next() 119 return counter ? &counter->list : &fc_stats->counters; in mlx5_fc_counters_lookup_next() 187 /* number of counters to query inc. the last counter */ in mlx5_fc_stats_query_counter_range() 199 list_for_each_entry_from(counter, &fc_stats->counters, list) { in mlx5_fc_stats_query_counter_range() 245 "Can't increase flow counters bulk query buffer size, insufficient memory, bulk_size(%d)\n", in mlx5_fc_stats_bulk_query_size_increase() 258 "Flow counters bulk query buffer size increased, bulk_size(%d)\n", in mlx5_fc_stats_bulk_query_size_increase() 269 /* Take dellist first to ensure that counters cannot be deleted before in mlx5_fc_stats_work() 277 if (addlist || !list_empty(&fc_stats->counters)) in mlx5_fc_stats_work() [all...] |
| /freebsd/usr.bin/netstat/ |
| H A D | main.c | 826 u_long *counters; in kread_counters() local 838 if ((counters = malloc(n * sizeof(u_long))) == NULL) in kread_counters() 840 if (kread(addr, counters, n * sizeof(u_long)) < 0) { in kread_counters() 841 free(counters); in kread_counters() 847 c[i] = kvm_counter_u64_fetch(kvmd, counters[i]); in kread_counters() 849 free(counters); in kread_counters()
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | PGOCtxProfWriter.cpp | 113 writeCounters({Node.counters(), Node.counters_size()}); in writeNode() 146 writeCounters({RootNode.counters(), RootNode.counters_size()}); in writeContextual() 150 writeFlat(P->guid(), P->counters(), P->counters_size()); in writeContextual() 204 std::memcpy(Ret->counters(), DC.Counters.data(), in createNode()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator_primary64.h | 557 PackedCounterArray counters(allocated_pages_count, in ReleaseFreeMemoryToOS() 559 if (!counters.IsAllocated()) in ReleaseFreeMemoryToOS() 571 counters.Inc(free_array[i] >> page_size_scaled_log); in ReleaseFreeMemoryToOS() 575 counters.IncRange( in ReleaseFreeMemoryToOS() 586 for (uptr i = 0; i < counters.GetCount(); i++) in ReleaseFreeMemoryToOS() 587 range_tracker.NextPage(counters.Get(i) == full_pages_chunk_count_max); in ReleaseFreeMemoryToOS() 601 for (uptr i = 0; i < counters.GetCount(); i++) { in ReleaseFreeMemoryToOS() 615 range_tracker.NextPage(counters.Get(i) == chunks_per_page); in ReleaseFreeMemoryToOS()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | GCDAProfiling.c | 395 void llvm_gcda_emit_arcs(uint32_t num_counters, uint64_t *counters) { in llvm_gcda_emit_arcs() argument 433 counters[i] += (old_ctrs ? old_ctrs[i] : 0); in llvm_gcda_emit_arcs() 434 write_64bit_value(counters[i]); in llvm_gcda_emit_arcs() 442 fprintf(stderr, "llvmgcda: %llu\n", (unsigned long long)counters[i]); in llvm_gcda_emit_arcs()
|
| /freebsd/usr.sbin/pmc/ |
| H A D | cmd_pmc_stat.c | 164 char *counters, *counter; in pmc_stat_setup_stat() local 175 counters = NULL; in pmc_stat_setup_stat() 181 counters = strdup(arg); in pmc_stat_setup_stat() 183 while ((counter = strsep(&counters, ",")) != NULL && in pmc_stat_setup_stat()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/tests/ |
| H A D | CtxInstrProfilingTest.cpp | 250 EXPECT_EQ(Node.counters()[0], Entries); in TEST_F() 259 EXPECT_EQ(SN.counters()[0], Entries); in TEST_F() 293 FData.FlatCtx->counters()[0] = 15U; in TEST_F()
|
| /freebsd/sys/net/ |
| H A D | if_ovpn.c | 135 struct ovpn_peer_counters counters; member 163 counter_u64_t counters[OVPN_PEER_COUNTER_SIZE]; member 199 counter_u64_t counters[OVPN_COUNTER_SIZE]; member 248 ((sc)->counters[offsetof(struct ovpn_counters, name)/sizeof(uint64_t)]) 250 ((peer)->counters[offsetof(struct ovpn_peer_counters, name) / \ 508 n->counters.pkt_in = counter_u64_fetch(OVPN_PEER_COUNTER(peer, pkt_in)); in ovpn_notify_del_peer() 509 n->counters.pkt_out = counter_u64_fetch(OVPN_PEER_COUNTER(peer, pkt_out)); in ovpn_notify_del_peer() 510 n->counters.bytes_in = counter_u64_fetch(OVPN_PEER_COUNTER(peer, bytes_in)); in ovpn_notify_del_peer() 511 n->counters.bytes_out = counter_u64_fetch(OVPN_PEER_COUNTER(peer, bytes_out)); in ovpn_notify_del_peer() 676 COUNTER_ARRAY_ALLOC(peer->counters, OVPN_PEER_COUNTER_SIZE, M_WAITOK); in ovpn_new_peer() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/arc/ |
| H A D | archs-pct.txt | 5 are 100+ hardware conditions dynamically mapped to up to 32 counters.
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsPfmCounters.td | 9 // This describes the available hardware counters for Mips.
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCPfmCounters.td | 9 // This describes the available hardware counters for PPC.
|