Home
last modified time | relevance | path

Searched refs:strbuf_addf (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/tools/perf/util/
Dpfm.c180 strbuf_addf(buf, "[default] "); in print_attr_flags()
183 strbuf_addf(buf, "[precise] "); in print_attr_flags()
200 strbuf_addf(buf, "Code: 0x%"PRIx64"\n", info->code); in print_libpfm_event()
219 strbuf_addf(buf, " Modif: %s: [%s] : %s (boolean)\n", src, in print_libpfm_event()
223 strbuf_addf(buf, " Modif: %s: [%s] : %s (integer)\n", src, in print_libpfm_event()
230 strbuf_addf(buf, " Attr: %s: [%s] : %s\n", src, in print_libpfm_event()
260 strbuf_addf(buf, "Umask: 0x%02"PRIx64" : %s: ", in print_libpfm_event()
Dpmus.c546 ret1 = strbuf_addf(&args->long_string, "%s", name); in build_format_string()
548 ret2 = strbuf_addf(&args->short_string, "%s", name); in build_format_string()
550 ret1 = strbuf_addf(&args->long_string, "%s=0..0x%llx", name, in build_format_string()
553 ret2 = strbuf_addf(&args->short_string, "%s=0..0x%llx", name, in build_format_string()
557 ret1 = strbuf_addf(&args->long_string, "%s=0..%llu", name, in build_format_string()
560 ret2 = strbuf_addf(&args->short_string, "%s=0..%llu", name, in build_format_string()
590 strbuf_addf(&format_args.short_string, "%.*s/", len, pmu->name); in perf_pmus__print_raw_pmu_events()
591 strbuf_addf(&format_args.long_string, "%.*s/", len, pmu->name); in perf_pmus__print_raw_pmu_events()
595 strbuf_addf(&format_args.short_string, ",.../modifier"); in perf_pmus__print_raw_pmu_events()
597 strbuf_addf(&format_args.short_string, "/modifier"); in perf_pmus__print_raw_pmu_events()
[all …]
Dprobe-event.c2000 err = strbuf_addf(&buf, "%s=%s", pa->name, pa->var); in synthesize_perf_probe_arg()
2010 err = strbuf_addf(&buf, "%s%s", field->ref ? "->" : ".", in synthesize_perf_probe_arg()
2018 if (strbuf_addf(&buf, ":%s", pa->type) < 0) in synthesize_perf_probe_arg()
2041 err = strbuf_addf(&buf, "+%lu", pp->offset); in synthesize_perf_probe_point()
2043 err = strbuf_addf(&buf, ":%d", pp->line); in synthesize_perf_probe_point()
2056 err = strbuf_addf(&buf, "@%s", tmp); in synthesize_perf_probe_point()
2058 err = strbuf_addf(&buf, ":%d", pp->line); in synthesize_perf_probe_point()
2076 if (strbuf_addf(&buf, "%s:%s=", pev->group ?: PERFPROBE_GROUP, in synthesize_perf_probe_command()
2089 if (!tmp || strbuf_addf(&buf, " %s", tmp) < 0) { in synthesize_perf_probe_command()
2113 err = strbuf_addf(buf, "%s%ld(", "+u", ref->offset); in __synthesize_probe_trace_arg_ref()
[all …]
Dstrbuf.h90 int strbuf_addf(struct strbuf *sb, const char *fmt, ...) __printf(2, 3);
Ddwarf-aux.c1132 return strbuf_addf(buf, "%s%s", tmp, name ?: ""); in die_get_typename_from_type()
1138 return strbuf_addf(buf, "void*"); in die_get_typename_from_type()
1182 return ret < 0 ? ret : strbuf_addf(buf, "\t%s", dwarf_diename(vr_die)); in die_get_varname()
1295 ret = strbuf_addf(buf, "@<%s+[%" PRIu64 "-%" PRIu64, in die_get_var_innermost_scope()
1299 ret = strbuf_addf(buf, ",%" PRIu64 "-%" PRIu64, in die_get_var_innermost_scope()
1359 ret = strbuf_addf(buf, "@<%s+[%" PRIu64 "-%" PRIu64, in die_get_var_range()
1363 ret = strbuf_addf(buf, ",%" PRIu64 "-%" PRIu64, in die_get_var_range()
Dstrbuf.c128 int strbuf_addf(struct strbuf *sb, const char *fmt, ...) in strbuf_addf() function
Dparse-events.c1462 strbuf_addf(&sb, "%s//", pmu->name); in parse_events_add_pmu()
1464 strbuf_addf(&sb, "%s/", pmu->name); in parse_events_add_pmu()
2701 ret = strbuf_addf(sb, "%s", term->config); in parse_events_terms__to_strbuf()
2703 ret = strbuf_addf(sb, "%s=%#"PRIx64, term->config, term->val.num); in parse_events_terms__to_strbuf()
2706 ret = strbuf_addf(sb, "%s=", term->config); in parse_events_terms__to_strbuf()
2710 ret = strbuf_addf(sb, "%s=", config_term_name(term->type_term)); in parse_events_terms__to_strbuf()
2715 ret = strbuf_addf(sb, "%s", term->val.str); in parse_events_terms__to_strbuf()
Dprobe-file.c812 ret = strbuf_addf(buf, " arg%d=%s%s", i + 1, new_op, suffix); in synthesize_sdt_probe_arg()
838 err = strbuf_addf(&buf, "p:%s/%s %s:0x%llx", in synthesize_sdt_probe_command()
844 err = strbuf_addf(&buf, "(0x%llx)", ref_ctr_offset); in synthesize_sdt_probe_command()
Dannotate.c1753 if (header && strbuf_addf(&sb, "# Branch counter abbr list:\n")) in annotation_br_cntr_abbr_list()
1759 if (header && strbuf_addf(&sb, "#")) in annotation_br_cntr_abbr_list()
1762 if (strbuf_addf(&sb, " %s = %s\n", pos->name, pos->abbr_name)) in annotation_br_cntr_abbr_list()
1766 if (header && strbuf_addf(&sb, "#")) in annotation_br_cntr_abbr_list()
1768 if (strbuf_addf(&sb, " '-' No event occurs\n")) in annotation_br_cntr_abbr_list()
1771 if (header && strbuf_addf(&sb, "#")) in annotation_br_cntr_abbr_list()
1773 if (strbuf_addf(&sb, " '+' Event occurrences may be lost due to branch counter saturated\n")) in annotation_br_cntr_abbr_list()
1819 if (strbuf_addf(&sb, "=%d", avg)) in annotation_br_cntr_entry()
Denv.c356 if (strbuf_addf(&sb, "%u:%s", pmu->type, pmu->name) < 0) in perf_env__read_pmu_mappings()
Dmetricgroup.c751 ret = strbuf_addf(events, "}:W"); in metricgroup__build_event_string()
Dpmu.c1351 if (strbuf_addf(&buf, i++ ? ",%s" : "%s", format->name) < 0) in pmu_formats_string()
Dsort.c3993 strbuf_addf(sb, " %s", str); in add_key()
Dheader.c2790 if (strbuf_addf(&sb, "%u:%s", type, name) < 0) in process_pmu_mappings()