/tools/perf/util/ |
D | stat-display.c | 367 static bool is_mixed_hw_group(struct evsel *counter) in is_mixed_hw_group() argument 369 struct evlist *evlist = counter->evlist; in is_mixed_hw_group() 370 u32 pmu_type = counter->core.attr.type; in is_mixed_hw_group() 373 if (counter->core.nr_members < 2) in is_mixed_hw_group() 392 struct evsel *counter, double uval, in printout() argument 402 .evsel = counter, in printout() 430 if (counter->cgrp) in printout() 433 if (run == 0 || ena == 0 || counter->counts->scaled == -1) { in printout() 438 aggr_printout(config, counter, id, nr); in printout() 442 counter->supported ? CNTR_NOT_COUNTED : CNTR_NOT_SUPPORTED, in printout() [all …]
|
D | stat.c | 232 static void zero_per_pkg(struct evsel *counter) in zero_per_pkg() argument 234 if (counter->per_pkg_mask) in zero_per_pkg() 235 memset(counter->per_pkg_mask, 0, cpu__max_cpu()); in zero_per_pkg() 238 static int check_per_pkg(struct evsel *counter, in check_per_pkg() argument 241 unsigned long *mask = counter->per_pkg_mask; in check_per_pkg() 242 struct perf_cpu_map *cpus = evsel__cpus(counter); in check_per_pkg() 247 if (!counter->per_pkg) in check_per_pkg() 258 counter->per_pkg_mask = mask; in check_per_pkg() 333 struct evsel *counter) in process_counter_maps() argument 335 int nthreads = perf_thread_map__nr(counter->core.threads); in process_counter_maps() [all …]
|
D | cgroup.c | 96 struct evsel *counter; in evlist__find_cgroup() local 100 evlist__for_each_entry(evlist, counter) { in evlist__find_cgroup() 101 if (!counter->cgrp) in evlist__find_cgroup() 103 if (!strcmp(counter->cgrp->name, str)) in evlist__find_cgroup() 104 return cgroup__get(counter->cgrp); in evlist__find_cgroup() 143 struct evsel *counter; in add_cgroup() local 154 evlist__for_each_entry(evlist, counter) { in add_cgroup() 163 counter->cgrp = cgrp; in add_cgroup() 206 struct evsel *counter; in parse_cgroups() local 241 evlist__for_each_entry(evlist, counter) { in parse_cgroups() [all …]
|
D | stat-shadow.c | 212 void perf_stat__update_shadow_stats(struct evsel *counter, u64 count, in perf_stat__update_shadow_stats() argument 215 int ctx = evsel_context(counter); in perf_stat__update_shadow_stats() 219 count *= counter->scale; in perf_stat__update_shadow_stats() 221 if (perf_evsel__is_clock(counter)) in perf_stat__update_shadow_stats() 223 else if (perf_evsel__match(counter, HARDWARE, HW_CPU_CYCLES)) in perf_stat__update_shadow_stats() 225 else if (perf_stat_evsel__is(counter, CYCLES_IN_TX)) in perf_stat__update_shadow_stats() 227 else if (perf_stat_evsel__is(counter, TRANSACTION_START)) in perf_stat__update_shadow_stats() 229 else if (perf_stat_evsel__is(counter, ELISION_START)) in perf_stat__update_shadow_stats() 231 else if (perf_stat_evsel__is(counter, TOPDOWN_TOTAL_SLOTS)) in perf_stat__update_shadow_stats() 234 else if (perf_stat_evsel__is(counter, TOPDOWN_SLOTS_ISSUED)) in perf_stat__update_shadow_stats() [all …]
|
D | stat.h | 149 struct evsel *counter; member 176 void perf_stat__update_shadow_stats(struct evsel *counter, u64 count, 199 struct evsel *counter);
|
/tools/testing/selftests/netfilter/ |
D | nft_nat.sh | 81 local counter=$2 85 echo "ERROR: $counter counter in $ns has unexpected value (expected $expect) at $tag" 1>&2 86 ip netns exec $ns nft list counter inet filter $counter 1>&2 94 cnt=$(ip netns exec $ns nft list counter inet filter ns0in | grep -q "packets 1 bytes 84") 99 cnt=$(ip netns exec $ns nft list counter inet filter ns0out | grep -q "packets 1 bytes 84") 106 cnt=$(ip netns exec $ns nft list counter inet filter ns0in6 | grep -q "$expect") 111 cnt=$(ip netns exec $ns nft list counter inet filter ns0out6 | grep -q "$expect") 125 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0in | grep -q "packets 0 bytes 0") 131 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0in6 | grep -q "packets 0 bytes 0") 137 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0out | grep -q "packets 0 bytes 0") [all …]
|
D | conntrack_icmp_related.sh | 53 cnt=$(ip netns exec $ns nft list counter inet filter "$name" | grep -q "$expect") 56 ip netns exec $ns nft list counter inet filter "$name" 1>&2 132 counter unknown { } 133 counter related { } 136 meta l4proto icmpv6 icmpv6 type "packet-too-big" ct state "related" counter name "related" accept 137 …meta l4proto icmp icmp type "destination-unreachable" ct state "related" counter name "related" ac… 139 counter name "unknown" drop 147 counter unknown { } 148 counter related { } 153 meta l4proto { icmp, icmpv6 } ct state "related" counter name "related" accept [all …]
|
/tools/arch/x86/include/asm/ |
D | atomic.h | 28 return READ_ONCE((v)->counter); in atomic_read() 40 v->counter = i; in atomic_set() 52 : "+m" (v->counter)); in atomic_inc() 65 GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, "%0", "e"); in atomic_dec_and_test() 70 return cmpxchg(&v->counter, old, new); in atomic_cmpxchg()
|
/tools/include/asm-generic/ |
D | atomic-gcc.h | 25 return READ_ONCE((v)->counter); in atomic_read() 37 v->counter = i; in atomic_set() 48 __sync_add_and_fetch(&v->counter, 1); in atomic_inc() 61 return __sync_sub_and_fetch(&v->counter, 1) == 0; in atomic_dec_and_test() 69 return cmpxchg(&(v)->counter, oldval, newval); in atomic_cmpxchg()
|
/tools/testing/selftests/drivers/net/mlxsw/ |
D | qos_lib.sh | 63 local counter=$1; shift # Counter to use for measurement 77 local t0=$(ethtool_stats_get $host_in $counter) 78 local u0=$(ethtool_stats_get $sw_in $counter) 80 local t1=$(ethtool_stats_get $host_in $counter) 81 local u1=$(ethtool_stats_get $sw_in $counter)
|
/tools/testing/selftests/sync/ |
D | sync_stress_parallelism.c | 37 int counter; member 61 ASSERT(test_data_two_threads.counter == i * 2 + thread_id, in test_stress_two_threads_shared_timeline_thread() 63 test_data_two_threads.counter++; in test_stress_two_threads_shared_timeline_thread() 85 test_data_two_threads.counter = 0; in test_stress_two_threads_shared_timeline() 104 ASSERT(test_data_two_threads.counter == in test_stress_two_threads_shared_timeline()
|
D | sync_stress_consumer.c | 57 int counter; member 94 test_data_mpsc.counter++; in mpsc_producer_thread() 140 ASSERT(test_data_mpsc.counter == n * it, in mpcs_consumer_thread() 170 test_data_mpsc.counter = 0; in test_consumer_stress_multi_producer_single_consumer()
|
/tools/perf/ |
D | design.txt | 13 hardware capabilities. It provides per task and per CPU counters, counter 19 There's one file descriptor per virtual counter used. 29 VFS system calls: read() can be used to read the counter, fcntl() 35 When creating a new counter fd, 'perf_event_attr' is: 40 * specific (raw) counter configuration data, if unset, the next 71 The 'config' field specifies what the counter should count. It 78 If 'raw_type' is 1, then the counter will count a hardware event 82 If 'raw_type' is 0, then the 'type' field says what kind of counter 91 A counter of PERF_TYPE_HARDWARE will count the hardware event 95 * Generalized performance counter event types, used by the hw_event.event_id [all …]
|
D | builtin-stat.c | 241 perf_evsel__write_stat_event(struct evsel *counter, u32 cpu, u32 thread, in perf_evsel__write_stat_event() argument 244 struct perf_sample_id *sid = SID(counter, cpu, thread); in perf_evsel__write_stat_event() 250 static int read_single_counter(struct evsel *counter, int cpu, in read_single_counter() argument 253 if (counter->tool_event == PERF_TOOL_DURATION_TIME) { in read_single_counter() 256 perf_counts(counter->counts, cpu, thread); in read_single_counter() 261 return perf_evsel__read_counter(counter, cpu, thread); in read_single_counter() 268 static int read_counter(struct evsel *counter, struct timespec *rs) in read_counter() argument 274 ncpus = perf_evsel__nr_cpus(counter); in read_counter() 278 if (!counter->supported) in read_counter() 281 if (counter->core.system_wide) in read_counter() [all …]
|
/tools/cgroup/ |
D | iocost_monitor.py | 102 self.vrate_pct = ioc.vtime_rate.counter.value_() * 100 / VTIME_PER_USEC 153 vdone = iocg.done_vtime.counter.value_() 154 vtime = iocg.vtime.counter.value_() 155 vrate = ioc.vtime_rate.counter.value_() 162 self.debt_ms = iocg.abs_vdebt.counter.value_() / VTIME_PER_USEC / 1000 163 self.use_delay = blkg.use_delay.counter.value_() 164 self.delay_ms = blkg.delay_nsec.counter.value_() / 1_000_000
|
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/include/linux/ |
D | types.h | 99 int counter; member 104 long counter; member
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-unavailable.c | 96 uint64_t counter = 0x1ff000000; in tm_una_ping() local 220 [counter] "r" (counter) in tm_una_ping()
|
/tools/power/x86/turbostat/ |
D | turbostat.c | 183 unsigned long long counter[MAX_ADDED_THREAD_COUNTERS]; member 194 unsigned long long counter[MAX_ADDED_COUNTERS]; member 221 unsigned long long counter[MAX_ADDED_COUNTERS]; member 818 i, mp->msr_num, t->counter[i]); in dump_counters() 832 i, mp->msr_num, c->counter[i]); in dump_counters() 869 i, mp->msr_num, p->counter[i]); in dump_counters() 1006 outp += sprintf(outp, "%s0x%08x", (printed++ ? delim : ""), (unsigned int) t->counter[i]); in format_counters() 1008 outp += sprintf(outp, "%s0x%016llx", (printed++ ? delim : ""), t->counter[i]); in format_counters() 1011 outp += sprintf(outp, "%s%8lld", (printed++ ? delim : ""), t->counter[i]); in format_counters() 1013 outp += sprintf(outp, "%s%lld", (printed++ ? delim : ""), t->counter[i]); in format_counters() [all …]
|
/tools/memory-model/litmus-tests/ |
D | MP+poonceonces.litmus | 6 * Can the counter-intuitive message-passing outcome be prevented with
|
D | LB+poonceonces.litmus | 6 * Can the counter-intuitive outcome for the load-buffering pattern
|
/tools/testing/selftests/net/forwarding/ |
D | vxlan_bridge_1d.sh | 376 local counter 378 for counter in "${counters[@]}"; do 379 flood_fetch_stat $counter 390 local counter 393 for counter in "${counters[@]}"; do 394 flood_counter_install $counter 410 for counter in "${counters[@]}"; do 411 flood_counter_uninstall $counter
|
/tools/perf/arch/x86/tests/ |
D | rdpmc.c | 19 static u64 rdpmc(unsigned int counter) in rdpmc() argument 23 asm volatile("rdpmc" : "=a" (low), "=d" (high) : "c" (counter)); in rdpmc()
|
/tools/include/linux/ |
D | types.h | 62 int counter; member
|
/tools/perf/Documentation/ |
D | perf-stat.txt | 6 perf-stat - Run a command and gather performance counter statistics 18 This command runs a command and gathers performance counter statistics 80 Don't scale/normalize counter values 115 be more verbose (show counter open errors, etc) 126 Performance counter stats for 'perf bench sched pipe' (5 runs): 317 The aperf counter will not be effected by the setting. 331 Performance counter stats for 'make': 374 - counter value 375 - unit of the counter value or empty 377 - run time of counter [all …]
|
D | perf-kvm.txt | 23 a performance counter profile of guest os in realtime 26 'perf kvm record <command>' to record the performance counter profile 39 'perf kvm report' to display the performance counter profile information 51 'perf kvm stat <command>' to run a command and gather performance counter 98 Be more verbose (show counter open errors, etc).
|