/linux/tools/perf/util/ |
A D | evsel_fprintf.c | 42 int printed = 0; in evsel__fprintf() local 58 printed += fprintf(fp, "}"); in evsel__fprintf() 101 return ++printed; in evsel__fprintf() 109 int printed = 0; in sample__fprintf_callchain() local 160 printed += fprintf(fp, " "); in sample__fprintf_callchain() 177 printed += fprintf(fp, ")"); in sample__fprintf_callchain() 201 return printed; in sample__fprintf_callchain() 208 int printed = 0; in sample__fprintf_sym() local 226 printed += fprintf(fp, " "); in sample__fprintf_sym() 240 printed += fprintf(fp, ")"); in sample__fprintf_sym() [all …]
|
A D | branch.c | 116 int i, j = 0, printed = 0; in branch_type_str() local 126 printed += count_str_scnprintf(j++, "COND_FWD", bf + printed, size - printed); in branch_type_str() 129 printed += count_str_scnprintf(j++, "COND_BWD", bf + printed, size - printed); in branch_type_str() 136 printed += count_str_scnprintf(j++, branch_type_name(i), bf + printed, size - printed); in branch_type_str() 140 printed += count_str_scnprintf(j++, "CROSS_4K", bf + printed, size - printed); in branch_type_str() 143 printed += count_str_scnprintf(j++, "CROSS_2M", bf + printed, size - printed); in branch_type_str() 145 return printed; in branch_type_str()
|
A D | print_binary.c | 11 int printed = 0; in binary__fprintf() local 19 printed += printer(BINARY_PRINT_DATA_BEGIN, 0, extra, fp); in binary__fprintf() 22 printed += printer(BINARY_PRINT_LINE_BEGIN, -1, extra, fp); in binary__fprintf() 23 printed += printer(BINARY_PRINT_ADDR, i, extra, fp); in binary__fprintf() 26 printed += printer(BINARY_PRINT_NUM_DATA, data[i], extra, fp); in binary__fprintf() 30 printed += printer(BINARY_PRINT_NUM_PAD, -1, extra, fp); in binary__fprintf() 34 printed += printer(BINARY_PRINT_CHAR_DATA, data[j], extra, fp); in binary__fprintf() 36 printed += printer(BINARY_PRINT_CHAR_PAD, i, extra, fp); in binary__fprintf() 37 printed += printer(BINARY_PRINT_LINE_END, -1, extra, fp); in binary__fprintf() 40 printed += printer(BINARY_PRINT_DATA_END, -1, extra, fp); in binary__fprintf() [all …]
|
A D | debug.c | 157 int printed = 0; in trace_event_printer() local 161 printed += fprintf(fp, "."); in trace_event_printer() 166 printed += fprintf(fp, "."); in trace_event_printer() 172 printed += color_fprintf(fp, color, " %02x", val); in trace_event_printer() 175 printed += color_fprintf(fp, color, " "); in trace_event_printer() 178 printed += color_fprintf(fp, color, " "); in trace_event_printer() 181 printed += color_fprintf(fp, color, "%c", in trace_event_printer() 185 printed += color_fprintf(fp, color, " "); in trace_event_printer() 188 printed += color_fprintf(fp, color, "\n"); in trace_event_printer() 191 printed += fprintf(fp, "\n"); in trace_event_printer() [all …]
|
/linux/tools/perf/trace/beauty/ |
A D | statx.c | 18 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_statx_flags() local 24 …printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", show_prefix ? prefi… in syscall_arg__scnprintf_statx_flags() 39 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_statx_flags() 41 return printed; in syscall_arg__scnprintf_statx_flags() 48 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_statx_mask() local 52 …printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", show_prefix ? prefi… in syscall_arg__scnprintf_statx_mask() 73 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_statx_mask() 75 return printed; in syscall_arg__scnprintf_statx_mask()
|
A D | open_flags.c | 28 int printed = 0; in open__scnprintf_flags() local 31 printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : "", "RDONLY"); in open__scnprintf_flags() 33 return printed; in open__scnprintf_flags() 36 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in open__scnprintf_flags() 63 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in open__scnprintf_flags() 75 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in open__scnprintf_flags() 77 return printed; in open__scnprintf_flags()
|
A D | seccomp.c | 14 size_t printed = 0; in syscall_arg__scnprintf_seccomp_op() local 17 #define P_SECCOMP_SET_MODE_OP(n) case SECCOMP_SET_MODE_##n: printed = scnprintf(bf, size, "%s%s", s… in syscall_arg__scnprintf_seccomp_op() 21 default: printed = scnprintf(bf, size, "%#x", op); break; in syscall_arg__scnprintf_seccomp_op() 24 return printed; in syscall_arg__scnprintf_seccomp_op() 38 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_seccomp_flags() local 42 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_seccomp_flags() 50 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_seccomp_flags() 52 return printed; in syscall_arg__scnprintf_seccomp_flags()
|
A D | sockaddr.c | 26 size_t printed = scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin6->sin6_port), in af_inet6__scnprintf() local 29 printed += scnprintf(bf + printed, size - printed, ", flowinfo: %lu", flowinfo); in af_inet6__scnprintf() 31 printed += scnprintf(bf + printed, size - printed, ", scope_id: %lu", sin6->sin6_scope_id); in af_inet6__scnprintf() 33 return printed; in af_inet6__scnprintf() 52 size_t printed; in syscall_arg__scnprintf_augmented_sockaddr() local 55 printed = scnprintf(bf, size, "{ .family: %s", family); in syscall_arg__scnprintf_augmented_sockaddr() 58 printed += af_scnprintfs[sa->sa_family](sa, bf + printed, size - printed); in syscall_arg__scnprintf_augmented_sockaddr() 60 return printed + scnprintf(bf + printed, size - printed, " }"); in syscall_arg__scnprintf_augmented_sockaddr()
|
A D | pkey_alloc.c | 14 int i, printed = 0; in strarray__scnprintf_flags() local 29 if (printed != 0) in strarray__scnprintf_flags() 30 printed += scnprintf(bf + printed, size - printed, "|"); in strarray__scnprintf_flags() 33 …printed += scnprintf(bf + printed, size - printed, "%s%s", show_prefix ? sa->prefix : "", sa->entr… in strarray__scnprintf_flags() 35 printed += scnprintf(bf + printed, size - printed, "0x%#", bit); in strarray__scnprintf_flags() 38 return printed; in strarray__scnprintf_flags()
|
A D | waitid_options.c | 10 int printed = 0, options = arg->val; in syscall_arg__scnprintf_waitid_options() local 14 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_waitid_options() 24 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", options); in syscall_arg__scnprintf_waitid_options() 26 return printed; in syscall_arg__scnprintf_waitid_options()
|
A D | eventfd.c | 18 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_eventfd_flags() local 24 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_eventfd_flags() 34 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_eventfd_flags() 36 return printed; in syscall_arg__scnprintf_eventfd_flags()
|
A D | perf_event_open.c | 23 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_perf_flags() local 30 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_perf_flags() 41 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_perf_flags() 43 return printed; in syscall_arg__scnprintf_perf_flags()
|
A D | flock.c | 27 int printed = 0, op = arg->val; in syscall_arg__scnprintf_flock() local 33 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_flock() 48 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", op); in syscall_arg__scnprintf_flock() 50 return printed; in syscall_arg__scnprintf_flock()
|
A D | sched_policy.c | 25 size_t printed; in syscall_arg__scnprintf_sched_policy() local 31 printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : "", policies[policy]); in syscall_arg__scnprintf_sched_policy() 33 printed = scnprintf(bf, size, "%#x", policy); in syscall_arg__scnprintf_sched_policy() 37 printed += scnprintf(bf + printed, size - printed, "|%s%s", show_prefix ? prefix : "", #n); \ in syscall_arg__scnprintf_sched_policy() 45 printed += scnprintf(bf + printed, size - printed, "|%#x", flags); in syscall_arg__scnprintf_sched_policy() 47 return printed; in syscall_arg__scnprintf_sched_policy()
|
A D | socket_type.c | 25 size_t printed; in syscall_arg__scnprintf_socket_type() local 34 #define P_SK_TYPE(n) case SOCK_##n: printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : ""… in syscall_arg__scnprintf_socket_type() 44 printed = scnprintf(bf, size, "%#x", type); in syscall_arg__scnprintf_socket_type() 49 printed += scnprintf(bf + printed, size - printed, "|%s", #n); \ in syscall_arg__scnprintf_socket_type() 58 printed += scnprintf(bf + printed, size - printed, "|%#x", flags); in syscall_arg__scnprintf_socket_type() 60 return printed; in syscall_arg__scnprintf_socket_type()
|
A D | msg_flags.c | 26 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_msg_flags() local 32 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_msg_flags() 59 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_msg_flags() 61 return printed; in syscall_arg__scnprintf_msg_flags()
|
A D | ioctl.c | 133 int printed = 0; in ioctl__scnprintf_cmd() local 155 printed += scnprintf(bf + printed, size - printed, "%c", '('); in ioctl__scnprintf_cmd() 158 printed += scnprintf(bf + printed, size - printed, "%s%s", show_prefix ? prefix : "", "NONE"); in ioctl__scnprintf_cmd() 161 printed += scnprintf(bf + printed, size - printed, "%s%s", show_prefix ? prefix : "", "READ"); in ioctl__scnprintf_cmd() 163 printed += scnprintf(bf + printed, size - printed, "%s%s%s", dir & _IOC_READ ? "|" : "", in ioctl__scnprintf_cmd() 168 return printed + scnprintf(bf + printed, size - printed, ", %#x, %#x, %#x)", type, nr, sz); in ioctl__scnprintf_cmd()
|
A D | mode_t.c | 27 int printed = 0, mode = arg->val; in syscall_arg__scnprintf_mode_t() local 31 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_mode_t() 66 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", mode); in syscall_arg__scnprintf_mode_t() 68 return printed; in syscall_arg__scnprintf_mode_t()
|
A D | clone.c | 16 int printed = 0; in clone__scnprintf_flags() local 20 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in clone__scnprintf_flags() 53 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in clone__scnprintf_flags() 55 return printed; in clone__scnprintf_flags()
|
A D | futex_op.c | 34 size_t printed = 0; in syscall_arg__scnprintf_futex_op() local 37 #define P_FUTEX_OP(n) case FUTEX_##n: printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : … in syscall_arg__scnprintf_futex_op() 51 default: printed = scnprintf(bf, size, "%#x", cmd); break; in syscall_arg__scnprintf_futex_op() 55 …printed += scnprintf(bf + printed, size - printed, "|%s%s", show_prefix ? prefix : "", "PRIVATE_FL… in syscall_arg__scnprintf_futex_op() 58 …printed += scnprintf(bf + printed, size - printed, "|%s%s", show_prefix ? prefix : "", "CLOCK_REAL… in syscall_arg__scnprintf_futex_op() 60 return printed; in syscall_arg__scnprintf_futex_op()
|
A D | fsmount.c | 16 size_t printed = 0; in fsmount__scnprintf_attr_flags() local 19 … printed += strarray__scnprintf_flags(&strarray__fsmount_attr_flags, bf, size, show_prefix, flags); in fsmount__scnprintf_attr_flags() 22 printed += scnprintf(bf + printed, size - printed, "%s%s%s", in fsmount__scnprintf_attr_flags() 23 printed ? "|" : "", show_prefix ? "MOUNT_ATTR_" : "", "RELATIME"); in fsmount__scnprintf_attr_flags() 26 return printed; in fsmount__scnprintf_attr_flags()
|
A D | sync_file_range.c | 16 size_t printed = 0; in sync_file_range__scnprintf_flags() local 19 …printed += scnprintf(bf + printed, size - printed, "%s%s", show_prefix ? "SYNC_FILE_RANGE_" : "", … in sync_file_range__scnprintf_flags() 23 …return printed + strarray__scnprintf_flags(&strarray__sync_file_range_flags, bf + printed, size - … in sync_file_range__scnprintf_flags()
|
/linux/tools/perf/ |
A D | builtin-trace.c | 818 printed += scnprintf(bf + printed, size - printed, "|%#x", mode); in syscall_arg__scnprintf_access_mode() 839 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_pipe_flags() 848 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_pipe_flags() 880 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_getrandom_flags() 1438 printed += scnprintf(bf + printed, size - printed, "<%s>", path); in syscall_arg__scnprintf_fd() 1452 printed += scnprintf(bf + printed, size - printed, "<%s>", path); in pid__scnprintf_fd() 2048 printed += scnprintf(bf + printed, size - printed, "%s", printed ? ", " : ""); in syscall__scnprintf_args() 2051 printed += scnprintf(bf + printed, size - printed, "%s: ", field->name); in syscall__scnprintf_args() 2067 printed += scnprintf(bf + printed, size - printed, ", "); in syscall__scnprintf_args() 2753 printed += scnprintf(bf + printed, size - printed, "%s", printed ? ", " : ""); [all …]
|
A D | builtin-script.c | 655 int printed = 0; in perf_sample__fprintf_regs() local 667 return printed; in perf_sample__fprintf_regs() 847 return printed; in perf_sample__fprintf_start() 904 return printed; in perf_sample__fprintf_brstack() 950 return printed; in perf_sample__fprintf_brstacksym() 1000 return printed; in perf_sample__fprintf_brstackoff() 1176 return printed; in ip__fprintf_sym() 1317 return printed; in perf_sample__fprintf_brstackinsn() 1346 return printed; in perf_sample__fprintf_addr() 1464 return printed; in perf_sample__fprintf_insn() [all …]
|
/linux/arch/sparc/kernel/ |
A D | setup_64.c | 414 int i, printed = 0; in cpucap_info() local 421 printed ? "," : "", hwcaps[i]); in cpucap_info() 422 printed++; in cpucap_info() 434 printed++; in cpucap_info() 443 if ((*printed) == 0) in report_one_hwcap() 446 (*printed) ? "," : "", name); in report_one_hwcap() 447 if (++(*printed) == 8) { in report_one_hwcap() 449 *printed = 0; in report_one_hwcap() 469 int i, printed = 0; in report_hwcaps() local 477 report_crypto_hwcaps(&printed); in report_hwcaps() [all …]
|