/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 | rdpmc.c | 35 u64 count, cyc = 0, time_offset = 0, enabled, running, delta; in mmap_read_self() local 52 count = pc->offset; in mmap_read_self() 54 count += rdpmc(idx - 1); in mmap_read_self() 71 quot = count / running; in mmap_read_self() 72 rem = count % running; in mmap_read_self() 73 count = quot * enabled + (rem * enabled) / running; in mmap_read_self() 76 return count; in mmap_read_self()
|
D | hists_link.c | 149 size_t count = 0; in __validate_match() local 171 count++; in __validate_match() 181 if (count != ARRAY_SIZE(fake_common_samples)) { in __validate_match() 183 count, ARRAY_SIZE(fake_common_samples)); in __validate_match() 197 size_t count = 0; in __validate_link() local 234 count++; in __validate_link() 247 if (count != count_pair + ARRAY_SIZE(fake_samples[0])) { in __validate_link() 249 count, count_pair + ARRAY_SIZE(fake_samples[0])); in __validate_link() 253 if (count != count_pair) { in __validate_link() 255 count, count_pair); in __validate_link()
|
D | bp_signal.c | 102 long long count; in bp_count() local 105 ret = read(fd, &count, sizeof(long long)); in bp_count() 111 return count; in bp_count()
|
D | parse-no-sample-id-all.c | 38 static int process_events(union perf_event **events, size_t count) in process_events() argument 44 for (i = 0; i < count && !err; i++) in process_events()
|
/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;
|
D | rw-by-pid.pl | 44 $nr, $fd, $buf, $count) = @_; 46 $reads{$common_pid}{bytes_requested} += $count; 66 $nr, $fd, $buf, $count) = @_; 68 $writes{$common_pid}{bytes_written} += $count;
|
/tools/perf/util/ |
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 | trace-event-read.c | 303 int count; in read_ftrace_files() local 307 count = read4(pevent); in read_ftrace_files() 309 for (i = 0; i < count; i++) { in read_ftrace_files() 323 int count; in read_event_files() local 334 count = read4(pevent); in read_event_files() 336 for (x=0; x < count; x++) { in read_event_files()
|
D | color.c | 271 size_t count, const char *buf) in color_fwrite_lines() argument 274 return fwrite(buf, count, 1, fp) != 1; in color_fwrite_lines() 276 while (count) { in color_fwrite_lines() 277 char *p = memchr(buf, '\n', count); in color_fwrite_lines() 280 fwrite(buf, p ? (size_t)(p - buf) : count, 1, fp) != 1 || in color_fwrite_lines() 287 count -= p + 1 - buf; in color_fwrite_lines()
|
/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 | 74 u64 count, upper, lower; in ebb_check_count() local 76 count = ebb_state.stats.pmc_count[PMC_INDEX(pmc)]; in ebb_check_count() 80 if (count < lower) { in ebb_check_count() 82 pmc, count, lower, lower - count); in ebb_check_count() 88 if (count > upper) { in ebb_check_count() 90 pmc, count, upper, count - upper); in ebb_check_count() 95 pmc, count, lower, upper, count - lower, upper - count); in ebb_check_count()
|
/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 462 int not_first, count; in perl_generate_script() local 517 count = 0; in perl_generate_script() 522 if (++count % 5 == 0) in perl_generate_script() 536 count = 0; in perl_generate_script() 541 if (count && count % 4 == 0) { in perl_generate_script() 544 count++; in perl_generate_script() 560 count = 0; in perl_generate_script() 566 if (++count % 5 == 0) in perl_generate_script() 570 if ((count - 1) % 5 != 0) { in perl_generate_script() 572 count = 4; in perl_generate_script() [all …]
|
D | trace-event-python.c | 667 int not_first, count; in python_generate_script() local 723 count = 0; in python_generate_script() 728 if (++count % 5 == 0) in python_generate_script() 742 count = 0; in python_generate_script() 747 if (count && count % 3 == 0) { in python_generate_script() 750 count++; in python_generate_script() 767 count = 0; in python_generate_script() 773 if (++count % 5 == 0) in python_generate_script() 777 if ((count - 1) % 5 != 0) { in python_generate_script() 779 count = 4; in python_generate_script() [all …]
|
/tools/perf/scripts/python/ |
D | event_analyzing_sample.py | 123 count = con.execute("select count(*) from gen_events") 124 for t in count: 156 count = con.execute("select count(*) from pebs_ll") 157 for t in count:
|
D | futex-contention.py | 47 min, max, avg, count = lock_waits[tid, lock] 49 (process_names[tid], tid, lock, count, avg)
|
/tools/time/ |
D | udelay_test.sh | 60 count=`grep -c FAIL $tmp_file` 62 echo "ERROR: $count delays failed to delay long enough"
|
/tools/net/ |
D | bpf_jit_disasm.c | 48 int count, i, pc = 0; in get_asm_insns() local 75 count = disassemble(pc, &info); in get_asm_insns() 79 for (i = 0; i < count; ++i) in get_asm_insns() 84 pc += count; in get_asm_insns() 85 } while(count > 0 && pc < len); in get_asm_insns()
|
/tools/perf/ |
D | perf.c | 241 int count, option_count; in handle_alias() local 266 count = split_cmdline(alias_string, &new_argv); in handle_alias() 267 if (count < 0) in handle_alias() 269 option_count = handle_options(&new_argv, &count, &envchanged); in handle_alias() 275 count * sizeof(char *)); in handle_alias() 278 if (count < 1) in handle_alias() 285 (count + *argcp + 1)); in handle_alias() 287 memcpy(new_argv + count, *argv + 1, sizeof(char *) * *argcp); in handle_alias() 288 new_argv[count + *argcp] = NULL; in handle_alias() 291 *argcp += count - 1; in handle_alias()
|
D | builtin-stat.c | 356 static void update_shadow_stats(struct perf_evsel *counter, u64 *count) in update_shadow_stats() argument 359 update_stats(&runtime_nsecs_stats[0], count[0]); in update_shadow_stats() 361 update_stats(&runtime_cycles_stats[0], count[0]); in update_shadow_stats() 364 update_stats(&runtime_cycles_in_tx_stats[0], count[0]); in update_shadow_stats() 367 update_stats(&runtime_transaction_stats[0], count[0]); in update_shadow_stats() 370 update_stats(&runtime_elision_stats[0], count[0]); in update_shadow_stats() 372 update_stats(&runtime_stalled_cycles_front_stats[0], count[0]); in update_shadow_stats() 374 update_stats(&runtime_stalled_cycles_back_stats[0], count[0]); in update_shadow_stats() 376 update_stats(&runtime_branches_stats[0], count[0]); in update_shadow_stats() 378 update_stats(&runtime_cacherefs_stats[0], count[0]); in update_shadow_stats() [all …]
|
/tools/vm/ |
D | page-types.c | 257 unsigned long count) in do_u64_read() argument 264 bytes = pread(fd, buf, count * 8, (off_t)index * 8); in do_u64_read() 355 static unsigned long count; in show_page_range() local 357 if (flags == flags0 && offset == index + count && in show_page_range() 358 size && voffset == voff + count) { in show_page_range() 359 count += size; in show_page_range() 363 if (count) { in show_page_range() 369 index, count, page_flag_name(flags0)); in show_page_range() 375 count = size; in show_page_range() 591 unsigned long count, in walk_pfn() argument [all …]
|
/tools/testing/selftests/net/ |
D | psock_fanout.c | 129 int count = 0; in sock_fanout_read_ring() local 131 while (count < RING_NUM_FRAMES && header->tp_status & TP_STATUS_USER) { in sock_fanout_read_ring() 132 count++; in sock_fanout_read_ring() 133 header = ring + (count * getpagesize()); in sock_fanout_read_ring() 136 return count; in sock_fanout_read_ring()
|
/tools/lib/traceevent/ |
D | event-plugin.c | 70 int count = 0; in traceevent_plugin_list_options() local 82 list = realloc(list, count + 2); in traceevent_plugin_list_options() 88 list[count++] = name; in traceevent_plugin_list_options() 89 list[count] = NULL; in traceevent_plugin_list_options() 95 while (--count >= 0) in traceevent_plugin_list_options() 96 free(list[count]); in traceevent_plugin_list_options()
|
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | Util.py | 39 min, max, avg, count = dict[key] 45 dict[key] = (min, max, avg, count + 1)
|