Home
last modified time | relevance | path

Searched refs:line_len (Results 1 – 22 of 22) sorted by relevance

/linux/tools/lib/api/
H A Dio.h157 size_t line_len = 0; in io__getdelim() local
169 temp = realloc(line, line_len + sizeof(buf)); in io__getdelim()
173 memcpy(&line[line_len], buf, sizeof(buf)); in io__getdelim()
174 line_len += sizeof(buf); in io__getdelim()
179 temp = realloc(line, line_len + buf_pos + 1); in io__getdelim()
183 memcpy(&line[line_len], buf, buf_pos); in io__getdelim()
184 line[line_len + buf_pos] = '\0'; in io__getdelim()
185 line_len += buf_pos; in io__getdelim()
187 *line_len_out = line_len; in io__getdelim()
188 return line_len; in io__getdelim()
[all...]
/linux/arch/arc/mm/
H A Dcache.c32 unsigned int sz_k, line_len, colors; member
56 l2_line_sz = p_slc->line_len = (slc_cfg.lsz == 0) ? 128 : 64; in read_decode_cache_bcr_arcv2()
59 p_slc->sz_k, p_slc->line_len, IS_USED_RUN(slc_enable)); in read_decode_cache_bcr_arcv2()
118 p_ic->line_len = 8 << ibcr.line_len; in arc_cache_mumbojumbo()
124 p_ic->sz_k, assoc, p_ic->line_len, in arc_cache_mumbojumbo()
144 p_dc->line_len = 16 << dbcr.line_len; in arc_cache_mumbojumbo()
149 p_dc->sz_k, assoc, p_dc->line_len, in arc_cache_mumbojumbo()
1000 if (!ic->line_len) in arc_cache_init_master()
1003 if (ic->line_len != L1_CACHE_BYTES) in arc_cache_init_master()
1005 ic->line_len, L1_CACHE_BYTES); in arc_cache_init_master()
[all …]
/linux/tools/testing/selftests/tdx/
H A Dtdx_guest_test.c115 int i, j, line_len, rowsize = HEX_DUMP_SIZE; in print_array_hex() local
121 line_len = rowsize < (len - j) ? rowsize : (len - j); in print_array_hex()
123 for (i = 0; i < line_len; i++) in print_array_hex()
/linux/tools/perf/util/
H A Dsrcline.c575 size_t line_len = 0; in read_addr2line_record() local
595 if (io__getline(io, &line, &line_len) < 0 || !line_len) in read_addr2line_record()
599 if (style == LLVM && line_len == 2 && line[0] == ',') { in read_addr2line_record()
611 if (line_len >= 2 || line[0] != '0' || line[1] != 'x') { in read_addr2line_record()
612 for (size_t i = 2; i < line_len; i++) { in read_addr2line_record()
641 if (first && (io__getline(io, &line, &line_len) < 0 || !line_len)) in read_addr2line_record()
649 line_len = 0; in read_addr2line_record()
652 if (io__getline(io, &line, &line_len) < 0 || !line_len) in read_addr2line_record()
666 line_len = 0; in read_addr2line_record()
H A Dsymbol.c659 ssize_t line_len; in modules__parse() local
661 line_len = getline(&line, &n, file); in modules__parse()
662 if (line_len < 0) { in modules__parse()
674 line[--line_len] = '\0'; /* \n */ in modules__parse()
1526 int line_len, len; in dso__load_perf_map() local
1528 line_len = getline(&line, &n, file); in dso__load_perf_map()
1529 if (line_len < 0) in dso__load_perf_map()
1535 line[--line_len] = '\0'; /* \n */ in dso__load_perf_map()
1540 if (len + 2 >= line_len) in dso__load_perf_map()
1546 if (len + 2 >= line_len) in dso__load_perf_map()
H A Ddisasm.c2027 size_t line_len = strlen(line); in expand_tabs()
2029 for (num_tabs = 0, i = 0; i < line_len; i++) in expand_tabs()
2040 new_storage_len = line_len + 1 + (num_tabs * 7); in expand_tabs()
2053 for (i = 0, src = 0, dst = 0; i < line_len && num_tabs; i++) { in expand_tabs()
2067 len = line_len - src; in symbol__disassemble()
2090 size_t line_len; in symbol__disassemble()
2156 line_len = 0; in symbol__disassemble()
2163 if (getline(&line, &line_len, file) < 0 || !line) in symbol__disassemble()
2172 expanded_line = expand_tabs(expanded_line, &line, &line_len); in symbol__disassemble()
2005 size_t line_len = strlen(line); expand_tabs() local
2071 size_t line_len; symbol__disassemble() local
H A Dutil.c343 size_t line_len = 0; fetch_ubuntu_kernel_version() local
H A Dannotate.c1487 size_t line_len = strlen(al->line); in annotation__set_index() local
1489 if (src->widths.max_line_len < line_len) in annotation__set_index()
1490 src->widths.max_line_len = line_len; in annotation__set_index()
H A Dprobe-finder.c771 size_t line_len; in find_lazy_match_lines()
783 while ((len = getline(&line, &line_len, fp)) > 0) { in find_lazy_match_lines()
773 size_t line_len; find_lazy_match_lines() local
H A Dpmu.c1025 size_t line_len = 0; in pmu_add_sys_aliases_iter_fn()
1031 ret = getline(&line, &line_len, file); in pmu_add_sys_aliases_iter_fn()
1048 size_t line_len = 0; pmu_find_alias_name() local
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dftrace.c73 ssize_t line_len; in disable_trace_options() local
87 while ((line_len = getline(&line, &buf_len, opts)) != -1) { in disable_trace_options()
205 ssize_t line_len; in tracer_thread_func() local
207 line_len = getline(lp, &buf_len, tracer->trace_pipe); in tracer_thread_func()
208 if (line_len == -1) in tracer_thread_func()
/linux/tools/perf/tests/
H A Dapi-io.c299 size_t i, line_len = 0; in test_get_line() local
313 EXPECT_EQUAL((int)io__getline(&io, &line, &line_len), 513); in test_get_line()
318 EXPECT_EQUAL((int)io__getline(&io, &line, &line_len), 510); in test_get_line()
H A Dcode-reading.c130 size_t line_len, off_last = 0; in read_objdump_output() local
139 ret = getline(&line, &line_len, f); in read_objdump_output()
/linux/arch/xtensa/kernel/
H A Dtraps.c589 size_t line_len = sf->len - sf->off > STACK_DUMP_LINE_SIZE ? in show_stack_fragment_cb() local
596 __memcpy(line, sf->sp + sf->off, line_len); in show_stack_fragment_cb()
599 line, line_len, false); in show_stack_fragment_cb()
/linux/arch/arc/include/asm/
H A Darcregs.h211 unsigned int pad:12, line_len:4, sz:4, config:4, ver:8; member
213 unsigned int ver:8, config:4, sz:4, line_len:4, pad:12;
/linux/tools/perf/
H A Dbuiltin-ftrace.c1213 size_t line_len = 0; in __cmd_profile()
1267 if (io__getline(&io, &line, &line_len) < 0) in __cmd_profile()
1270 if (parse_func_duration(ftrace, line, line_len) < 0) in __cmd_profile()
1287 if (io__getline(&io, &line, &line_len) < 0) in __cmd_profile()
1290 if (parse_func_duration(ftrace, line, line_len) < 0) in __cmd_profile()
1212 size_t line_len = 0; __cmd_profile() local
/linux/kernel/printk/
H A Dprintk.c1445 size_t line_len; in record_print_text() local
1467 line_len = next - text; in record_print_text()
1472 line_len = text_len; in record_print_text()
1481 if (len + prefix_len + line_len + 1 + 1 > buf_size) in record_print_text()
1497 len += prefix_len + line_len + 1; in record_print_text()
1498 if (text_len == line_len) { in record_print_text()
1503 text[prefix_len + line_len] = '\n'; in record_print_text()
1511 text += prefix_len + line_len + 1; in record_print_text()
1523 text_len -= line_len + 1; in record_print_text()
/linux/drivers/gpu/drm/
H A Ddrm_panic.c494 size_t line_len = min(msg[i].len, drm_rect_width(clip) / font->width); in draw_txt_rectangle() local
501 rec.x1 += (drm_rect_width(clip) - (line_len * font->width)) / 2; in draw_txt_rectangle()
503 for (j = 0; j < line_len; j++) { in draw_txt_rectangle()
/linux/drivers/video/fbdev/omap2/omapfb/
H A Domapfb-main.c60 const unsigned line_len = fix->line_length / bytespp; in draw_pixel() local
68 p += y * line_len + x; in draw_pixel()
77 p += (y * line_len + x) * 3; in draw_pixel()
84 p += y * line_len + x; in draw_pixel()
/linux/arch/powerpc/include/asm/
H A Dopal-api.h935 __be64 line_len; member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c5457 size_t line_len = 0; in do_test_pprint() local
5526 while ((nread = getline(&line, &line_len, pin_file)) > 0 && in do_test_pprint()
5573 nread = getline(&line, &line_len, pin_file); in do_test_pprint()
5592 nread = getline(&line, &line_len, pin_file); in do_test_pprint()
5597 nread = getline(&line, &line_len, pin_file); in do_test_pprint()
/linux/tools/perf/ui/browsers/
H A Dhists.c3607 size_t line_len = strlen(ev_name) + 7; in __evlist__tui_browse_hists() local
3609 if (menu.b.width < line_len) in __evlist__tui_browse_hists()
3610 menu.b.width = line_len; in __evlist__tui_browse_hists()