Home
last modified time | relevance | path

Searched refs:max_len (Results 1 – 9 of 9) sorted by relevance

/tools/perf/ui/tui/
Dutil.c79 int max_len = 60, nr_lines = 0; in ui_browser__input_window() local
90 if (max_len < len) in ui_browser__input_window()
91 max_len = len; in ui_browser__input_window()
100 max_len += 2; in ui_browser__input_window()
103 x = SLtt_Screen_Cols / 2 - max_len / 2; in ui_browser__input_window()
106 SLsmg_draw_box(y, x++, nr_lines, max_len); in ui_browser__input_window()
113 max_len -= 2; in ui_browser__input_window()
115 nr_lines, max_len, 1); in ui_browser__input_window()
120 SLsmg_write_nstring((char *)" ", max_len); in ui_browser__input_window()
122 SLsmg_draw_box(y++, x + 1, 3, max_len - 2); in ui_browser__input_window()
[all …]
/tools/testing/selftests/bpf/progs/
Dtest_get_stack_rawtp.c60 int max_len, max_buildid_len, total_size; in bpf_prog1() local
70 max_len = MAX_STACK_RAWTP * sizeof(__u64); in bpf_prog1()
74 max_len, 0); in bpf_prog1()
75 data->user_stack_size = bpf_get_stack(ctx, data->user_stack, max_len, in bpf_prog1()
87 usize = bpf_get_stack(ctx, raw_data, max_len, BPF_F_USER_STACK); in bpf_prog1()
91 ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); in bpf_prog1()
96 if (total_size > 0 && total_size <= max_len) in bpf_prog1()
Dtest_stacktrace_map.c56 __u32 max_len = PERF_MAX_STACK_DEPTH * sizeof(__u64); in oncpu() local
70 bpf_get_stack(ctx, stack_p, max_len, 0); in oncpu()
Dtest_stacktrace_build_id.c45 __u32 max_len = sizeof(struct bpf_stack_build_id) in oncpu() local
60 bpf_get_stack(args, stack_p, max_len, in oncpu()
/tools/testing/selftests/net/
Dudpgso_bench_tx.c440 int max_len, hdrlen; in parse_opts() local
541 max_len = ETH_MAX_MTU - hdrlen; in parse_opts()
545 if (cfg_payload_len > max_len) in parse_opts()
547 cfg_payload_len, max_len); in parse_opts()
/tools/usb/usbip/libsrc/
Dvhci_driver.c195 int max_len[] = {(int)host_len, (int)port_len, SYSFS_BUS_ID_SIZE}; in read_record() local
223 if (end == NULL || (end - start) > max_len[part]) { in read_record()
/tools/testing/selftests/cgroup/
Dcgroup_util.c22 static ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text() argument
31 len = read(fd, buf, max_len - 1); in read_text()
/tools/perf/util/
Dparse-events.c2334 int len_str, max_len, cut = 0; in __parse_events_print_error() local
2348 max_len = width - len_str; in __parse_events_print_error()
2356 strncpy(buf, event + cut, max_len); in __parse_events_print_error()
2362 if ((len_event - cut) > max_len) { in __parse_events_print_error()
2363 buf[max_len - 1] = buf[max_len - 2] = '.'; in __parse_events_print_error()
2364 buf[max_len] = 0; in __parse_events_print_error()
/tools/lib/bpf/
Dbtf_dump.c1577 const size_t max_len = 256; in btf_dump_resolve_name() local
1578 char new_name[max_len]; in btf_dump_resolve_name()
1580 snprintf(new_name, max_len, "%s___%zu", orig_name, dup_cnt); in btf_dump_resolve_name()