| /tools/perf/ui/tui/ |
| A D | util.c | 79 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() 113 max_len -= 2; in ui_browser__input_window() 115 nr_lines, max_len, 1); in ui_browser__input_window() 181 if (max_len < len) in __ui__info_window() 182 max_len = len; in __ui__info_window() 189 max_len += 2; in __ui__info_window() 205 max_len -= 2; in __ui__info_window() [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| A D | test_get_stack_rawtp.c | 60 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()
|
| A D | stacktrace_map_skip.c | 38 __u32 max_len = TEST_STACK_DEPTH * sizeof(__u64); in oncpu() local 55 bpf_get_stack(ctx, stack_p, max_len, TEST_STACK_DEPTH); in oncpu()
|
| A D | test_stacktrace_build_id.c | 45 __u32 max_len = sizeof(struct bpf_stack_build_id) in oncpu() local 60 bpf_get_stack(args, stack_p, max_len, in oncpu()
|
| A D | test_stacktrace_map.c | 56 __u32 max_len = PERF_MAX_STACK_DEPTH * sizeof(__u64); in oncpu() local 70 bpf_get_stack(ctx, stack_p, max_len, 0); in oncpu()
|
| /tools/testing/selftests/sched_ext/ |
| A D | util.c | 14 static ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text() argument 23 len = read(fd, buf, max_len - 1); in read_text()
|
| /tools/testing/selftests/cgroup/lib/include/ |
| A D | cgroup_util.h | 28 extern ssize_t read_text(const char *path, char *buf, size_t max_len);
|
| /tools/testing/selftests/net/ |
| A D | udpgso_bench_tx.c | 440 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/ |
| A D | vhci_driver.c | 195 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/bpf/ |
| A D | veristat.c | 2414 int *max_len = &env.output_spec.lens[i]; in output_headers() local 2419 if (len > *max_len) in output_headers() 2420 *max_len = len; in output_headers() 2492 int *max_len = &env.output_spec.lens[i], len; in output_stats() local 2504 if (len > *max_len) in output_stats() 2505 *max_len = len; in output_stats() 2509 printf("%s%-*s", i == 0 ? "" : COLUMN_SEP, *max_len, str); in output_stats() 2511 printf("%s%*ld", i == 0 ? "" : COLUMN_SEP, *max_len, val); in output_stats() 2761 int *max_len = &env.output_spec.lens[3 * i + j]; in output_comp_headers() local 2769 if (len > *max_len) in output_comp_headers() [all …]
|
| A D | test_verifier.c | 1351 static int null_terminated_insn_len(struct bpf_insn *seq, int max_len) in null_terminated_insn_len() argument 1355 for (i = 0; i < max_len; ++i) { in null_terminated_insn_len() 1359 return max_len; in null_terminated_insn_len()
|
| /tools/testing/selftests/cgroup/lib/ |
| A D | cgroup_util.c | 25 ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text() argument 34 len = read(fd, buf, max_len - 1); in read_text()
|
| /tools/testing/selftests/net/lib/ |
| A D | csum.c | 295 static char *build_packet(char *buf, int max_len, int *len) in build_packet() argument 305 for (i = 0; i < (max_len / sizeof(int)); i++) in build_packet() 308 memset(buf, cfg_payload_char, max_len); in build_packet()
|
| /tools/perf/util/ |
| A D | parse-events.c | 2406 int len_str, max_len, cut = 0; in __parse_events_error__print() local 2420 max_len = width - len_str; in __parse_events_error__print() 2428 strncpy(buf, event + cut, max_len); in __parse_events_error__print() 2434 if ((len_event - cut) > max_len) { in __parse_events_error__print() 2435 buf[max_len - 1] = buf[max_len - 2] = '.'; in __parse_events_error__print() 2436 buf[max_len] = 0; in __parse_events_error__print()
|
| /tools/perf/scripts/python/ |
| A D | parallel-perf.py | 150 max_len = len(str(cpus[-1])) 171 max_len = len(str(len(time_ranges)))
|
| /tools/lib/bpf/ |
| A D | btf_dump.c | 1687 const size_t max_len = 256; in btf_dump_resolve_name() local 1688 char new_name[max_len]; in btf_dump_resolve_name() 1690 snprintf(new_name, max_len, "%s___%zu", orig_name, dup_cnt); in btf_dump_resolve_name()
|
| /tools/perf/ |
| A D | builtin-trace.c | 974 int max_len = max(size, strlen(name)); in syscall_arg__strtoul_btf_enum() local 976 if (strncmp(name, bf, max_len) == 0) { in syscall_arg__strtoul_btf_enum()
|