/tools/testing/selftests/ftrace/test.d/ftrace/ |
D | fgraph-filter-stack.tc | 61 count=`cat trace | grep '()' | grep -v schedule | wc -l` 63 if [ $count -ne 0 ]; then 68 count=`cat trace | grep 'schedule()' | wc -l` 69 if [ $count -eq 0 ]; then 78 count=`cat trace | grep '()' | grep -v schedule | wc -l` 80 if [ $count -ne 0 ]; then 84 count=`cat trace | grep 'schedule()' | wc -l` 85 if [ $count -eq 0 ]; then
|
D | fgraph-filter.tc | 39 count=`cat trace | grep '()' | grep -v schedule | wc -l` 40 if [ $count -ne 0 ]; then 45 count=`cat trace | grep 'schedule()' | wc -l` 46 if [ $count -eq 0 ]; then
|
/tools/testing/selftests/ftrace/test.d/event/ |
D | toplevel-enable.tc | 31 count=`cat trace | grep -v ^# | wc -l` 32 if [ $count -eq 0 ]; then 42 count=`cat trace | grep -v ^# | wc -l` 43 if [ $count -eq 0 ]; then 53 count=`cat trace | grep -v ^# | wc -l` 54 if [ $count -ne 0 ]; then
|
D | subsystem-enable.tc | 31 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l` 32 if [ $count -lt 3 ]; then 42 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l` 43 if [ $count -lt 3 ]; then 53 count=`cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l` 54 if [ $count -ne 0 ]; then
|
D | event-enable.tc | 31 count=`cat trace | grep sched_switch | wc -l` 32 if [ $count -eq 0 ]; then 42 count=`cat trace | grep sched_switch | wc -l` 43 if [ $count -eq 0 ]; then 53 count=`cat trace | grep sched_switch | wc -l` 54 if [ $count -ne 0 ]; then
|
/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-pkt-decoder.c | 78 int count; in intel_pt_get_long_tnt() local 85 for (count = 47; count; count--) { in intel_pt_get_long_tnt() 92 packet->count = count; in intel_pt_get_long_tnt() 133 unsigned int count = (52 - 5) >> 3; in intel_pt_get_vmcs() local 135 if (count < 1 || count > 7) in intel_pt_get_vmcs() 138 if (len < count + 2) in intel_pt_get_vmcs() 142 packet->count = count; in intel_pt_get_vmcs() 143 memcpy_le64(&packet->payload, buf + 2, count); in intel_pt_get_vmcs() 145 return count + 2; in intel_pt_get_vmcs() 185 packet->count = buf[5] | ((buf[6] & BIT(0)) << 8); in intel_pt_get_tma() [all …]
|
/tools/perf/tests/ |
D | bp_signal_overflow.c | 46 long long count; in bp_count() local 49 ret = read(fd, &count, sizeof(long long)); in bp_count() 55 return count; in bp_count() 65 long long count; in test__bp_signal_overflow() local 114 count = bp_count(fd); in test__bp_signal_overflow() 119 count, overflows); in test__bp_signal_overflow() 121 if (count != EXECUTIONS) { in test__bp_signal_overflow() 123 count, EXECUTIONS); in test__bp_signal_overflow()
|
D | hists_link.c | 153 size_t count = 0; in __validate_match() local 175 count++; in __validate_match() 185 if (count != ARRAY_SIZE(fake_common_samples)) { in __validate_match() 187 count, ARRAY_SIZE(fake_common_samples)); in __validate_match() 201 size_t count = 0; in __validate_link() local 238 count++; in __validate_link() 251 if (count != count_pair + ARRAY_SIZE(fake_samples[0])) { in __validate_link() 253 count, count_pair + ARRAY_SIZE(fake_samples[0])); in __validate_link() 257 if (count != count_pair) { in __validate_link() 259 count, count_pair); in __validate_link()
|
/tools/perf/scripts/perl/ |
D | rwtop.pl | 57 $nr, $fd, $buf, $count) = @_; 61 $reads{$common_pid}{bytes_requested} += $count; 83 $nr, $fd, $buf, $count) = @_; 87 $writes{$common_pid}{bytes_written} += $count; 123 my $count; 125 $count = 0; 146 if (++$count == $nlines) { 151 $count = 0; 169 if (++$count == $nlines) {
|
D | rw-by-file.pl | 31 $common_pid, $common_comm, $nr, $fd, $buf, $count) = @_; 34 $reads{$fd}{bytes_requested} += $count; 42 $common_pid, $common_comm, $nr, $fd, $buf, $count) = @_; 45 $writes{$fd}{bytes_written} += $count;
|
/tools/testing/selftests/timers/ |
D | nsleep-lat.c | 113 int i, count; in nanosleep_lat_test() local 123 count = 10; in nanosleep_lat_test() 127 for (i = 0; i < count; i++) in nanosleep_lat_test() 131 if (((timespec_sub(start, end)/count)-ns) > UNRESONABLE_LATENCY) { in nanosleep_lat_test() 132 printf("Large rel latency: %lld ns :", (timespec_sub(start, end)/count)-ns); in nanosleep_lat_test() 137 for (i = 0; i < count; i++) { in nanosleep_lat_test() 145 if (latency/count > UNRESONABLE_LATENCY) { in nanosleep_lat_test() 146 printf("Large abs latency: %lld ns :", latency/count); in nanosleep_lat_test()
|
D | leapcrash.c | 76 int count = 0; in main() local 94 for (count = 0; count < 20; count++) { in main()
|
D | mqueue-lat.c | 75 int i, count, ret; in mqueue_lat_test() local 85 count = 100; in mqueue_lat_test() 88 for (i = 0; i < count; i++) { in mqueue_lat_test() 105 if ((timespec_sub(start, end)/count) > TARGET_TIMEOUT + UNRESONABLE_LATENCY) in mqueue_lat_test()
|
D | threadtest.c | 118 int count; in independent_thread() local 122 for (count = 0; count < LISTSIZE; count++) in independent_thread() 123 clock_gettime(CLOCK_MONOTONIC, &my_list[count]); in independent_thread()
|
D | clocksource-switch.c | 136 int count, i, status; in main() local 141 count = get_clocksources(clocksource_list); in main() 149 for (i = 0; i < count; i++) { in main() 168 for (i = 0; i < count; i++) in main()
|
/tools/vm/ |
D | page_owner_sort.c | 88 int ret, i, count; in main() local 129 for (i = count = 0; i < list_size; i++) { in main() 130 if (count == 0 || in main() 131 strcmp(list2[count-1].txt, list[i].txt) != 0) { in main() 132 list2[count++] = list[i]; in main() 134 list2[count-1].num += list[i].num; in main() 138 qsort(list2, count, sizeof(list[0]), compare_num); in main() 140 for (i = 0; i < count; i++) in main()
|
/tools/perf/util/ |
D | stat.c | 244 struct perf_counts_values *count) in process_counter_values() argument 250 if (check_per_pkg(evsel, count, cpu, &skip)) { in process_counter_values() 256 count = &zero; in process_counter_values() 264 perf_evsel__compute_deltas(evsel, cpu, thread, count); in process_counter_values() 265 perf_counts_values__scale(count, config->scale, NULL); in process_counter_values() 267 perf_stat__update_shadow_stats(evsel, count->values, cpu); in process_counter_values() 270 aggr->val += count->val; in process_counter_values() 272 aggr->ena += count->ena; in process_counter_values() 273 aggr->run += count->run; in process_counter_values() 309 u64 *count = counter->counts->aggr.values; in perf_stat_process_counter() local [all …]
|
D | alias.c | 28 int src, dst, count = 0, size = 16; in split_cmdline() local 34 (*argv)[count++] = cmdline; in split_cmdline() 42 if (count >= size) { in split_cmdline() 46 (*argv)[count++] = cmdline + dst; in split_cmdline() 74 return count; in split_cmdline()
|
D | stat-shadow.c | 78 void perf_stat__update_shadow_stats(struct perf_evsel *counter, u64 *count, in perf_stat__update_shadow_stats() argument 84 update_stats(&runtime_nsecs_stats[cpu], count[0]); in perf_stat__update_shadow_stats() 86 update_stats(&runtime_cycles_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats() 88 update_stats(&runtime_cycles_in_tx_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats() 90 update_stats(&runtime_transaction_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats() 92 update_stats(&runtime_elision_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats() 94 update_stats(&runtime_stalled_cycles_front_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats() 96 update_stats(&runtime_stalled_cycles_back_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats() 98 update_stats(&runtime_branches_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats() 100 update_stats(&runtime_cacherefs_stats[ctx][cpu], count[0]); in perf_stat__update_shadow_stats() [all …]
|
/tools/perf/arch/x86/tests/ |
D | rdpmc.c | 34 u64 count, cyc = 0, time_offset = 0, enabled, running, delta; in mmap_read_self() local 51 count = pc->offset; in mmap_read_self() 53 count += rdpmc(idx - 1); in mmap_read_self() 70 quot = count / running; in mmap_read_self() 71 rem = count % running; in mmap_read_self() 72 count = quot * enabled + (rem * enabled) / running; in mmap_read_self() 75 return count; in mmap_read_self()
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-syscall.c | 92 unsigned count = 0; in tm_syscall() local 106 for (count = 0; timercmp(&now, &end, <); count++) { in tm_syscall() 123 printf("%d active and suspended transactions behaved correctly.\n", count); in tm_syscall()
|
/tools/power/acpi/os_specific/service_layers/ |
D | oslibcfs.c | 123 acpi_os_read_file(ACPI_FILE file, void *buffer, acpi_size size, acpi_size count) in acpi_os_read_file() argument 127 length = fread(buffer, size, count, file); in acpi_os_read_file() 152 void *buffer, acpi_size size, acpi_size count) in acpi_os_write_file() argument 156 length = fwrite(buffer, size, count, file); in acpi_os_write_file()
|
/tools/testing/selftests/powerpc/pmu/ebb/ |
D | ebb.c | 75 u64 count, upper, lower; in ebb_check_count() local 77 count = ebb_state.stats.pmc_count[PMC_INDEX(pmc)]; in ebb_check_count() 81 if (count < lower) { in ebb_check_count() 83 pmc, count, lower, lower - count); in ebb_check_count() 89 if (count > upper) { in ebb_check_count() 91 pmc, count, upper, count - upper); in ebb_check_count() 96 pmc, count, lower, upper, count - lower, upper - count); in ebb_check_count()
|
/tools/laptop/freefall/ |
D | freefall.c | 149 unsigned char count; in main() local 151 ret = read(fd, &count, sizeof(count)); in main() 158 if (ret != sizeof(count)) { in main()
|
/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 219 define_event_symbols(event, ev_name, args->int_array.count); in define_event_symbols() 450 int not_first, count; in perl_generate_script() local 505 count = 0; in perl_generate_script() 510 if (++count % 5 == 0) in perl_generate_script() 524 count = 0; in perl_generate_script() 529 if (count && count % 4 == 0) { in perl_generate_script() 532 count++; in perl_generate_script() 548 count = 0; in perl_generate_script() 554 if (++count % 5 == 0) in perl_generate_script() 558 if ((count - 1) % 5 != 0) { in perl_generate_script() [all …]
|