/linux-6.12.1/tools/perf/util/ |
D | evsel_fprintf.c | 46 int printed = 0; in evsel__fprintf() local 55 printed += fprintf(fp, "%s{", evsel->group_name ?: ""); in evsel__fprintf() 57 printed += fprintf(fp, "%s", evsel__name(evsel)); in evsel__fprintf() 59 printed += fprintf(fp, ",%s", evsel__name(pos)); in evsel__fprintf() 62 printed += fprintf(fp, "}"); in evsel__fprintf() 66 printed += fprintf(fp, "%s", evsel__name(evsel)); in evsel__fprintf() 69 printed += perf_event_attr__fprintf(fp, &evsel->core.attr, in evsel__fprintf() 77 printed += comma_fprintf(fp, &first, " %s=%" PRIu64, in evsel__fprintf() 86 printed += comma_fprintf(fp, &first, " (not a tracepoint)"); in evsel__fprintf() 92 printed += comma_fprintf(fp, &first, " (no trace field)"); in evsel__fprintf() [all …]
|
D | print_insn.c | 22 int printed = 0; in sample__fprintf_insn_raw() local 25 printed += fprintf(fp, "%02x", (unsigned char)sample->insn[i]); in sample__fprintf_insn_raw() 27 printed += fprintf(fp, " "); in sample__fprintf_insn_raw() 29 return printed; in sample__fprintf_insn_raw() 88 size_t printed = 0; in print_insn_x86() local 96 printed += fprintf(fp, "%s ", insn[0].mnemonic); in print_insn_x86() 97 printed += symbol__fprintf_symname_offs(al.sym, &al, fp); in print_insn_x86() 99 printed += fprintf(fp, " [%#" PRIx64 "]", op->imm); in print_insn_x86() 101 return printed; in print_insn_x86() 106 printed += fprintf(fp, "%s %s", insn[0].mnemonic, insn[0].op_str); in print_insn_x86() [all …]
|
D | branch.c | 176 int i, j = 0, printed = 0; in branch_type_str() local 189 printed += count_str_scnprintf(j++, "COND_FWD", bf + printed, size - printed); in branch_type_str() 192 printed += count_str_scnprintf(j++, "COND_BWD", bf + printed, size - printed); in branch_type_str() 199 printed += count_str_scnprintf(j++, branch_type_name(i), bf + printed, size - printed); in branch_type_str() 204 printed += count_str_scnprintf(j++, branch_new_type_name(i), bf + printed, size - printed); in branch_type_str() 208 printed += count_str_scnprintf(j++, "CROSS_4K", bf + printed, size - printed); in branch_type_str() 211 printed += count_str_scnprintf(j++, "CROSS_2M", bf + printed, size - printed); in branch_type_str() 213 return printed; in branch_type_str()
|
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 …]
|
D | debug.c | 174 int printed = 0; in trace_event_printer() local 178 printed += fprintf(fp, "."); in trace_event_printer() 179 printed += color_fprintf(fp, color, "\n. ... raw event: size %d bytes\n", in trace_event_printer() 183 printed += fprintf(fp, "."); in trace_event_printer() 186 printed += color_fprintf(fp, color, " %04x: ", val); in trace_event_printer() 189 printed += color_fprintf(fp, color, " %02x", val); in trace_event_printer() 192 printed += color_fprintf(fp, color, " "); in trace_event_printer() 195 printed += color_fprintf(fp, color, " "); in trace_event_printer() 198 printed += color_fprintf(fp, color, "%c", in trace_event_printer() 202 printed += color_fprintf(fp, color, " "); in trace_event_printer() [all …]
|
/linux-6.12.1/tools/perf/trace/beauty/ |
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() 49 size_t size, printed; member 57 …size_t printed = scnprintf(args->bf + args->printed , args->size - args->printed, "%s%s: %s", args… in attr__fprintf() local 60 args->printed += printed; in attr__fprintf() 61 return printed; in attr__fprintf() 67 .printed = scnprintf(bf, size, "{ "), in perf_event_attr___scnprintf() 74 return args.printed + scnprintf(bf + args.printed, size - args.printed, " }"); in perf_event_attr___scnprintf()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
D | msg_flags.c | 35 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_msg_flags() local 41 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_msg_flags() 71 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_msg_flags() 73 return printed; in syscall_arg__scnprintf_msg_flags()
|
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()
|
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()
|
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()
|
D | fsmount.c | 23 size_t printed = 0; in fsmount__scnprintf_attr_flags() local 26 … printed += strarray__scnprintf_flags(&strarray__fsmount_attr_flags, bf, size, show_prefix, flags); in fsmount__scnprintf_attr_flags() 29 printed += scnprintf(bf + printed, size - printed, "%s%s%s", in fsmount__scnprintf_attr_flags() 30 printed ? "|" : "", show_prefix ? "MOUNT_ATTR_" : "", "RELATIME"); in fsmount__scnprintf_attr_flags() 33 return printed; in fsmount__scnprintf_attr_flags()
|
D | sync_file_range.c | 25 size_t printed = 0; in sync_file_range__scnprintf_flags() local 28 …printed += scnprintf(bf + printed, size - printed, "%s%s", show_prefix ? "SYNC_FILE_RANGE_" : "", … in sync_file_range__scnprintf_flags() 32 …return printed + strarray__scnprintf_flags(&strarray__sync_file_range_flags, bf + printed, size - … in sync_file_range__scnprintf_flags()
|
D | fs_at_flags.c | 39 int printed = 0; in faccessat2__scnprintf_flags() local 45 printed += scnprintf(bf + printed, size - printed, "%sEACCESS%s", in faccessat2__scnprintf_flags() 49 …return strarray__scnprintf_flags(&strarray__fs_at_flags, bf + printed, size - printed, show_prefix… in faccessat2__scnprintf_flags()
|
D | pid.c | 7 size_t printed = scnprintf(bf, size, "%d", pid); in syscall_arg__scnprintf_pid() local 15 printed += scnprintf(bf + printed, size - printed, in syscall_arg__scnprintf_pid() 20 return printed; in syscall_arg__scnprintf_pid()
|
/linux-6.12.1/tools/perf/ |
D | builtin-trace.c | 533 size_t printed = scnprintf(bf, size, intfmt, val); in strarray__scnprintf_suffix() local 535 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sa->prefix); in strarray__scnprintf_suffix() 536 return printed; in strarray__scnprintf_suffix() 547 size_t printed = scnprintf(bf, size, intfmt, val); in strarray__scnprintf() local 549 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sa->prefix); in strarray__scnprintf() 550 return printed; in strarray__scnprintf() 593 size_t printed; in strarrays__scnprintf() local 607 printed = scnprintf(bf, size, intfmt, val); in strarrays__scnprintf() 609 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sas->entries[0]->prefix); in strarrays__scnprintf() 610 return printed; in strarrays__scnprintf() [all …]
|
D | builtin-script.c | 710 int printed = 0; in perf_sample__fprintf_regs() local 715 printed += fprintf(fp, " ABI:%" PRIu64 " ", regs->abi); in perf_sample__fprintf_regs() 719 printed += fprintf(fp, "%5s:0x%"PRIx64" ", perf_reg_name(r, arch), val); in perf_sample__fprintf_regs() 722 return printed; in perf_sample__fprintf_regs() 798 int printed = 0; in perf_sample__fprintf_start() local 809 printed += fprintf(stdout, "%s", buf); in perf_sample__fprintf_start() 815 printed += fprintf(fp, "VM:%5d ", sample->machine_pid); in perf_sample__fprintf_start() 819 printed += fprintf(fp, "VCPU:%03d ", sample->vcpu); in perf_sample__fprintf_start() 825 printed += fprintf(fp, "%8.8s ", comm); in perf_sample__fprintf_start() 827 printed += fprintf(fp, "%s ", comm); in perf_sample__fprintf_start() [all …]
|