Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 62) sorted by relevance

123

/tools/perf/tests/
Dbp_signal_overflow.c46 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()
Drdpmc.c35 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()
Dhists_link.c149 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()
Dbp_signal.c102 long long count; in bp_count() local
105 ret = read(fd, &count, sizeof(long long)); in bp_count()
111 return count; in bp_count()
Dparse-no-sample-id-all.c38 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/
Drwtop.pl57 $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) {
Drw-by-file.pl31 $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;
Drw-by-pid.pl44 $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/
Dalias.c28 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()
Dtrace-event-read.c303 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()
Dcolor.c271 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/
Doslibcfs.c123 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/
Debb.c74 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/
Dtrace-event-perl.c462 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 …]
Dtrace-event-python.c667 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/
Devent_analyzing_sample.py123 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:
Dfutex-contention.py47 min, max, avg, count = lock_waits[tid, lock]
49 (process_names[tid], tid, lock, count, avg)
/tools/time/
Dudelay_test.sh60 count=`grep -c FAIL $tmp_file`
62 echo "ERROR: $count delays failed to delay long enough"
/tools/net/
Dbpf_jit_disasm.c48 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/
Dperf.c241 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()
Dbuiltin-stat.c356 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/
Dpage-types.c257 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/
Dpsock_fanout.c129 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/
Devent-plugin.c70 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/
DUtil.py39 min, max, avg, count = dict[key]
45 dict[key] = (min, max, avg, count + 1)

123