Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 59) sorted by relevance

123

/tools/perf/util/
Dvalues.c218 int width; in perf_read_values__display_pretty() local
220 width = snprintf(NULL, 0, "%d", values->pid[i]); in perf_read_values__display_pretty()
221 if (width > pidwidth) in perf_read_values__display_pretty()
222 pidwidth = width; in perf_read_values__display_pretty()
223 width = snprintf(NULL, 0, "%d", values->tid[i]); in perf_read_values__display_pretty()
224 if (width > tidwidth) in perf_read_values__display_pretty()
225 tidwidth = width; in perf_read_values__display_pretty()
227 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); in perf_read_values__display_pretty()
228 if (width > counterwidth[j]) in perf_read_values__display_pretty()
229 counterwidth[j] = width; in perf_read_values__display_pretty()
[all …]
Dblock-info.c18 int width; member
22 .width = 15,
26 .width = 14,
30 .width = 11,
34 .width = 10,
38 .width = 70,
42 .width = 20,
46 .width = 30,
186 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_column_header()
196 return block_fmt->width; in block_column_width()
[all …]
Dsort.c117 size_t size, unsigned int width) in hist_entry__thread_snprintf() argument
121 width = max(7U, width) - 8; in hist_entry__thread_snprintf()
123 width, width, comm ?: ""); in hist_entry__thread_snprintf()
166 size_t size, unsigned int width __maybe_unused) in hist_entry__simd_snprintf()
216 size_t size, unsigned int width) in hist_entry__comm_snprintf() argument
218 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf()
260 size_t size, unsigned int width) in _hist_entry__dso_snprintf() argument
268 return repsep_snprintf(bf, size, "%-*.*s", width, width, dso_name); in _hist_entry__dso_snprintf()
272 size_t size, unsigned int width) in hist_entry__dso_snprintf() argument
274 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
[all …]
Dsvghelper.c384 double width; in svg_process() local
403 width = time2pixels(end)-time2pixels(start); in svg_process()
404 if (width > 6) in svg_process()
405 width = 6; in svg_process()
407 width = round_text_size(width); in svg_process()
409 if (width > MIN_TEXT_SIZE) in svg_process()
411 width, name); in svg_process()
418 double width; in svg_cstate() local
436 width = (time2pixels(end)-time2pixels(start))/2.0; in svg_cstate()
437 if (width > 6) in svg_cstate()
[all …]
Dblock-info.h29 int width; member
/tools/perf/tests/
Dbuiltin-test.c245 static int print_test_result(struct test_suite *t, int i, int subtest, int result, int width) in print_test_result() argument
248 int subw = width > 2 ? width - 2 : width; in print_test_result()
252 pr_info("%3d: %-*s:", i + 1, width, test_description(t, subtest)); in print_test_result()
276 static int finish_test(struct child_test *child_test, int width) in finish_test() argument
291 pr_info("%3d: %-*s:\n", i + 1, width, test_description(t, -1)); in finish_test()
342 print_test_result(t, i, subi, ret, width); in finish_test()
349 int width) in start_test() argument
358 print_test_result(test, i, subi, err, width); in start_test()
383 return finish_test(*child, width); in start_test()
395 int width = 0; in __cmd_test() local
[all …]
/tools/perf/
Dbuiltin-c2c.c412 int width; member
435 int width = hists__col_len(hists, se->se_width_idx); in symbol_width() local
438 width = MIN(width, SYMBOL_WIDTH); in symbol_width()
440 return width; in symbol_width()
457 c2c_fmt->dim->width; in c2c_width()
467 int width = c2c_width(fmt, hpp, hists); in c2c_header() local
491 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header()
511 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry() local
517 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in dcacheline_entry()
525 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry() local
[all …]
Dbuiltin-kvm.c91 int width; member
120 int width = fmt_width(fmt, hpp, he->hists); in ev_name_entry() local
122 return scnprintf(hpp->buf, hpp->size, "%*s", width, he->kvm_info->name); in ev_name_entry()
130 .width = 40,
162 int width = fmt_width(fmt, hpp, he->hists); \
167 return scnprintf(hpp->buf, hpp->size, "%*lu", width, \
181 .width = 12,
189 .width = 12,
197 .width = 14,
205 .width = 14,
[all …]
Dbuiltin-diff.c137 int width; member
144 .width = 14,
148 .width = 14,
152 .width = 7,
156 .width = 7,
160 .width = 14,
164 .width = 14,
168 .width = MAX_COL_WIDTH,
172 .width = 70,
176 .width = NUM_SPARKS + 9,
[all …]
/tools/perf/ui/gtk/
Dbrowser.c22 int width; in perf_gtk__resize_window() local
30 width = rect.width * 3 / 4; in perf_gtk__resize_window()
33 gtk_window_resize(GTK_WINDOW(window), width, height); in perf_gtk__resize_window()
/tools/testing/selftests/ftrace/test.d/kprobe/
Dkprobe_args_type.tc26 for width in 64 32 16 8; do
28 gen_event $width > kprobe_events
39 check_types $ARGS $width
/tools/perf/ui/browsers/
Dmap.c30 int width; in map_browser__write() local
37 width = browser->width - ((mb->addrlen * 2) + 4); in map_browser__write()
38 if (width > 0) in map_browser__write()
39 ui_browser__write_nstring(browser, sym->name, width); in map_browser__write()
Dhists.c133 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions()
795 int color, width; in hist_browser__show_callchain_entry() local
800 width = browser->b.width - (offset + 2); in hist_browser__show_callchain_entry()
812 ui_browser__write_nstring(&browser->b, str, width); in hist_browser__show_callchain_entry()
1301 int width = browser->b.width; in hist_browser__show_entry() local
1352 width -= 2; in hist_browser__show_entry()
1357 width -= 2; in hist_browser__show_entry()
1372 width -= hpp.buf - s; in hist_browser__show_entry()
1377 width += 1; in hist_browser__show_entry()
1379 ui_browser__write_nstring(&browser->b, "", width); in hist_browser__show_entry()
[all …]
Dannotate.c102 .width = browser->width, in annotate_browser__write()
113 ops.width += 1; in annotate_browser__write()
160 int width; in annotate_browser__draw_current_jump() local
205 width = annotation__cycles_width(notes); in annotate_browser__draw_current_jump()
209 pcnt_width + 2 + notes->src->widths.addr + width + cntr_width, in annotate_browser__draw_current_jump()
215 pcnt_width + 3 + notes->src->widths.addr + width + cntr_width, in annotate_browser__draw_current_jump()
670 ui_browser__write_nstring(browser, symbol_dso, browser->width + 1); in annotate_browser__show()
1000 browser.b.width = notes->src->widths.max_line_len; in symbol__tui_annotate()
1003 browser.b.width += 18; /* Percentage */ in symbol__tui_annotate()
/tools/testing/selftests/gpio/
Dgpio-mockup.sh290 local width=
301 width=$1 ; shift
303 if [ "$random" -a $width -gt 2 ]; then
304 test_line $gc $((RANDOM % ($width - 2) + 1))
306 test_line $gc $(($width - 1))
307 test_no_line $gc $width
/tools/mm/
Dslabinfo-gnuplot.sh27 width=1500
76 if [ $((width / lines)) -gt $min_slab_name_size ]; then
84 set terminal png enhanced size $width,$height large
126 set terminal png enhanced size $width,$height large
191 width=${array[0]}
/tools/perf/ui/stdio/
Dhist.c622 int width; in print_hierarchy_indent() local
627 width = (indent - 2) * HIERARCHY_INDENT; in print_hierarchy_indent()
629 return fprintf(fp, "%-*.*s", width, width, line); in print_hierarchy_indent()
638 unsigned width = 0; in hists__fprintf_hierarchy_headers() local
695 width = fmt->width(fmt, hpp, hists); in hists__fprintf_hierarchy_headers()
696 fprintf(fp, "%.*s", width, dots); in hists__fprintf_hierarchy_headers()
702 width = depth * HIERARCHY_INDENT; in hists__fprintf_hierarchy_headers()
709 width++; /* for '+' sign between column header */ in hists__fprintf_hierarchy_headers()
712 width += fmt->width(fmt, hpp, hists); in hists__fprintf_hierarchy_headers()
715 if (width > header_width) in hists__fprintf_hierarchy_headers()
[all …]
/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c1013 u32 pci_register, u64 *value, u32 width) in acpi_os_read_pci_configuration() argument
1037 u32 pci_register, u64 value, u32 width) in acpi_os_write_pci_configuration() argument
1057 acpi_status acpi_os_read_port(acpi_io_address address, u32 *value, u32 width) in acpi_os_read_port() argument
1060 switch (width) { in acpi_os_read_port()
1098 acpi_status acpi_os_write_port(acpi_io_address address, u32 value, u32 width) in acpi_os_write_port() argument
1120 acpi_os_read_memory(acpi_physical_address address, u64 *value, u32 width) in acpi_os_read_memory() argument
1123 switch (width) { in acpi_os_read_memory()
1154 acpi_os_write_memory(acpi_physical_address address, u64 value, u32 width) in acpi_os_write_memory() argument
/tools/testing/selftests/powerpc/alignment/
Dalignment_handler.c146 void preload_data(void *dst, int offset, int width) in preload_data() argument
153 for (i = 0 ; i < width ; i++) in preload_data()
223 int offset, width, fd, rc, r; in do_test() local
266 width = 16; /* vsx == 16 bytes */ in do_test()
270 preload_data(ci0, offset, width); in do_test()
271 preload_data(mem0, offset, width); // FIXME: remove?? in do_test()
276 test_memcmp(mem0, ci0, width, offset, test_name); in do_test()
278 r |= test_memcpy(ci1, ci0, width, offset, test_func); in do_test()
279 r |= test_memcpy(mem1, mem0, width, offset, test_func); in do_test()
286 r |= test_memcmp(mem1, ci1, width, offset, test_name); in do_test()
/tools/firewire/
Dnosy-dump.c316 int width; /* Width of field, 0 means use data_length. */ member
644 get_bits(struct link_packet *packet, int offset, int width) in get_bits() argument
650 shift = 32 - (offset & 31) - width; in get_bits()
651 mask = width == 32 ? ~0 : (1 << width) - 1; in get_bits()
710 bits = get_bits(packet, offset, f->width); in decode_link_packet()
712 } else if (f->width == 0) { in decode_link_packet()
720 if ((offset & ~31) != ((offset + f->width - 1) & ~31)) { in decode_link_packet()
723 low_width = f->width - high_width; in decode_link_packet()
729 bits = get_bits(packet, offset, f->width); in decode_link_packet()
732 printf("%s=0x%0*llx", f->name, (f->width + 3) / 4, bits); in decode_link_packet()
/tools/perf/ui/
Dbrowser.c58 unsigned int width) in ui_browser__write_nstring() argument
60 SLsmg_write_nstring(msg, width); in ui_browser__write_nstring()
196 browser->width = SLtt_Screen_Cols - 1; in ui_browser__refresh_dimensions()
266 ui_browser__write_nstring(browser, title, browser->width + 1); in __ui_browser__show_title()
315 col = browser->width, in ui_browser__scrollbar_set()
337 int width = browser->width; in __ui_browser__refresh() local
345 width += 1; in __ui_browser__refresh()
348 browser->rows - row, width, ' '); in __ui_browser__refresh()
Dbrowser.h20 u16 y, x, width, height, rows, columns, horiz_scroll; member
47 unsigned int width);
/tools/perf/scripts/python/
Dlibxed.py86 inst.state.width = 4 # 4 bytes
89 inst.state.width = 8 # 8 bytes
Dexported-sql-viewer.py1467 width = x1 - x0 + 1
1468 if width < 2:
1472 painter.fillRect(x0, self.graph_height - y0, width, self.graph_height - 1, colour)
1549 def __init__(self, width, parent=None): argument
1552 self.width = width
1557 return QRectF(0, 0, self.width, self.height)
1563 s = (3.0 * t) / self.width
1588 painter.drawLine(0, 0, self.width - 1, 0)
1605 width = attrs.XToPixel(hi)
1606 if width > 500:
[all …]
/tools/power/pm-graph/
Dbootgraph.py561 width = '%.3f' % ((length*100.0)/tTotal)
562 devtl.html += devtl.html_phase.format(left, width, \
581 width = '%.6f' % (((dev['end']-dev['start'])*100)/tTotal)
585 width, devname, ' '+cls, '')
597 width = '%f' % (l.length*100/tTotal)
600 top, height, width, title, 'x%d'%num)
607 width = '%f' % ((cg.end-cg.start)*100/tTotal)
612 top, height, width, title, dev['id']+cg.id)
647 table.fstat {table-layout:fixed;padding:150px 15px 0 0;font-size:10px;column-width:30px;}\n\
648 .fstat th {width:55px;}\n\
[all …]

123