Home
last modified time | relevance | path

Searched refs:counters (Results 1 – 25 of 30) sorted by relevance

12

/tools/testing/selftests/net/tcp_ao/lib/
A Dproc.c18 struct netstat_counter *counters; member
52 ret->counters = NULL; in lookup_get()
81 type->counters = reallocarray(type->counters, in netstat_read_type()
84 if (!type->counters) in netstat_read_type()
133 type->counters = reallocarray(type->counters, i + 1, in snmp6_read()
135 if (!type->counters) in snmp6_read()
137 nc = &type->counters[i]; in snmp6_read()
197 free(ns->counters); in netstat_free()
214 nsb->counters[i].name, a, nsb->counters[i].val); in __netstat_print_diff()
233 if (strcmp(nsb->counters[i].name, nsa->counters[j].name)) { in netstat_print_diff()
[all …]
/tools/perf/util/
A Dvalues.c26 values->counters = malloc(values->counters_max * sizeof(*values->counters)); in perf_read_values_init()
27 if (!values->counters) { in perf_read_values_init()
36 zfree(&values->counters); in perf_read_values_init()
56 zfree(&values->counters); in perf_read_values_destroy()
115 counters_max * sizeof(*values->counters)); in perf_read_values__enlarge_counters()
137 values->counters = new_counters; in perf_read_values__enlarge_counters()
152 if (values->counters[i] == evsel) in perf_read_values__findnew_counter()
163 values->counters[i] = evsel; in perf_read_values__findnew_counter()
254 width = strlen(evsel__name(values->counters[j])); in perf_read_values__display_raw()
278 namewidth, evsel__name(values->counters[j]), in perf_read_values__display_raw()
[all …]
A Dvalues.h16 struct evsel **counters; member
/tools/perf/tests/shell/
A Dstat_bpf_counters_cgrp.sh15 if ! perf stat -a --bpf-counters --for-each-cgroup / true > /dev/null 2>&1; then
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} -…
A Dstat_bpf_counters.sh45 …bpf_instructions=$(perf stat --no-big-num --bpf-counters -e instructions -- $workload 2>&1 | awk …
63 if ! perf stat -e instructions --bpf-counters true > /dev/null 2>&1; then
66 perf --no-pager stat -e instructions --bpf-counters true || true
/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
A Dtc_flower_scale.sh12 max_cnts=$(devlink_resource_size_get counters flow)
15 ((max_cnts -= $(devlink_resource_occ_get counters flow)))
/tools/perf/
A Ddesign.txt5 Performance counters are special hardware registers available on most modern
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
131 * does not support performance counters. These counters measure various
152 Counters come in two flavours: counting counters and sampling
222 counters.
249 pid < 0: all tasks are counted (per cpu counters)
301 * Bits needed to read the hw counters in user-space.
[all …]
/tools/testing/selftests/drivers/net/mlxsw/spectrum/
A Drif_counter_scale.sh12 max_cnts=$(devlink_resource_size_get counters rif)
/tools/perf/Documentation/
A Dtopdown.txt28 fixed counters and do not require generic counters. This allows
53 metric event, and allow user programs to read the performance counters.
123 #define RDPMC_FIXED (1 << 30) /* return fixed counters */
124 #define RDPMC_METRIC (1 << 29) /* return metric counters */
147 _rdpmc calls should not be mixed with reading the metrics and slots counters
148 through system calls, as the kernel will reset these counters after each system
226 recreated from L1 and L2 metric counters. (Available on Sapphire Rapids and
267 Resetting metrics counters
272 fraction bit shrinks. So the counters need to be reset regularly.
A Dperf.txt74 Performance counters for Linux are a new kernel-based subsystem
77 and software features (software counters, tracepoints) as well.
A Dperf-list.txt74 b - use BPF aggregration (see perf stat --bpf-counters)
313 active exceeds the number of hardware performance counters. Multiplexing
323 The number of available performance counters depend on the CPU. A group
324 cannot contain more events than available counters.
325 For example Intel Core CPUs typically have four generic performance counters
326 for the core, plus three fixed counters for instructions, cycles and
332 Globally pinned events can limit the number of counters available for
A Dperf-stat.txt71 child tasks do not inherit counters
98 --bpf-counters::
101 instructions, etc.) to share hardware counters.
106 With option "--bpf-counters", different perf-stat sessions share
160 null run - Don't start any counters.
163 raw overhead of perf stat itself, without running any counters.
521 As the higher levels gather more metrics and use more counters they
535 freeze core counters on SMI.
600 We always display the time the counters were enabled/alive:
650 - counters : number of aggregated PMU counters
A Dexamples.txt9 First, discovery/enumeration of available counters can be done via
A Dperf-amd-ibs.txt49 counters, event grouping support, filtering capabilities etc.
A Dperf-top.txt71 Child tasks do not inherit counters.
407 Event to display when multiple counters are active.
/tools/testing/selftests/net/mptcp/
A Dmptcp_sockopt.sh121 local counters values
122 counters=$(ip netns exec $ns $tables -v -L OUTPUT | grep DROP)
123 values=${counters%DROP*}
/tools/testing/selftests/bpf/benchs/
A Dbench_trigger.c70 static __always_inline void inc_counter(struct counter *counters) in inc_counter() argument
85 static long sum_and_reset_counters(struct counter *counters) in sum_and_reset_counters() argument
91 sum += atomic_swap(&counters[i].value, 0); in sum_and_reset_counters()
/tools/testing/selftests/net/netfilter/
A Dnft_meta.sh134 ip netns exec "$ns0" nft reset counters > /dev/null
/tools/kvm/kvm_stat/
A Dkvm_stat.txt6 kvm_stat - Report KVM kernel module event counters
/tools/arch/x86/kcpuid/
A Dcpuid.csv312 …0xa, 0, eax, 15:8, pmu_n_gcounters , Number of general PMU counters per logi…
313 0xa, 0, eax, 23:16, pmu_gcounters_nbits , Bitwidth of PMU general counters
323 …0xa, 0, ecx, 31:0, pmu_fcounters_bitmap , Fixed-function PMU counters support bit…
324 0xa, 0, edx, 4:0, pmu_n_fcounters , Number of fixed PMU counters
325 0xa, 0, edx, 12:5, pmu_fcounters_nbits , Bitwidth of PMU fixed counters
599 …0x23, 0, eax, 1, subleaf_1_counters , Subleaf 1, PMU counters bitmaps, is va…
603 … 0x23, 1, eax, 31:0, pmu_gp_counters_bitmap , General-purpose PMU counters bitmap
604 0x23, 1, ebx, 31:0, pmu_f_counters_bitmap , Fixed PMU counters bitmap
910 … 0, ecx, 4:0, lwp_latency_max , Number of bits in cache latency counters (10 to 31)
1042 …80000022, 0, ebx, 3:0, n_pmc_core , Number of core performance counters
[all …]
/tools/testing/selftests/net/forwarding/
A Dvxlan_bridge_1d.sh375 local counters=("${@}")
389 local -a counters=($h2 "vx2 ns1" "vx2 ns2")
A Dvxlan_bridge_1d_ipv6.sh496 local counters=("${@}")
510 local -a counters=($h2 "vx2 ns1" "vx2 ns2")
A Dvxlan_bridge_1q_ipv6.sh616 local counters=("${@}")
631 local -a counters=($h2 "vx10 ns1" "vx20 ns1" "vx10 ns2" "vx20 ns2")
A Dvxlan_bridge_1q.sh474 local counters=("${@}")
489 local -a counters=($h2 "vx10 ns1" "vx20 ns1" "vx10 ns2" "vx20 ns2")
/tools/memory-model/Documentation/
A Dsimple.txt227 counters exemplified by the rt_cache_stat structure's routing-cache
228 statistics counters. Another example use case is heuristics, such as

Completed in 29 milliseconds

12