Home
last modified time | relevance | path

Searched refs:strbuf (Results 1 – 24 of 24) sorted by relevance

/tools/perf/util/
Dstrbuf.h50 struct strbuf { struct
59 int strbuf_init(struct strbuf *buf, ssize_t hint);
60 void strbuf_release(struct strbuf *buf);
61 char *strbuf_detach(struct strbuf *buf, size_t *);
64 static inline ssize_t strbuf_avail(const struct strbuf *sb) { in strbuf_avail()
68 int strbuf_grow(struct strbuf *buf, size_t);
70 static inline int strbuf_setlen(struct strbuf *sb, size_t len) { in strbuf_setlen()
83 int strbuf_addch(struct strbuf *sb, int c);
85 int strbuf_add(struct strbuf *buf, const void *, size_t);
86 static inline int strbuf_addstr(struct strbuf *sb, const char *s) { in strbuf_addstr()
[all …]
Dstrbuf.c20 int strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init()
29 void strbuf_release(struct strbuf *sb) in strbuf_release()
37 char *strbuf_detach(struct strbuf *sb, size_t *sz) in strbuf_detach()
46 int strbuf_grow(struct strbuf *sb, size_t extra) in strbuf_grow()
73 int strbuf_addch(struct strbuf *sb, int c) in strbuf_addch()
84 int strbuf_add(struct strbuf *sb, const void *data, size_t len) in strbuf_add()
94 static int strbuf_addv(struct strbuf *sb, const char *fmt, va_list ap) in strbuf_addv()
128 int strbuf_addf(struct strbuf *sb, const char *fmt, ...) in strbuf_addf()
139 ssize_t strbuf_read(struct strbuf *sb, int fd, ssize_t hint) in strbuf_read()
Ddwarf-aux.h14 struct strbuf;
127 int die_get_typename_from_type(Dwarf_Die *type_die, struct strbuf *buf);
130 int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf);
133 int die_get_varname(Dwarf_Die *vr_die, struct strbuf *buf);
163 int die_get_var_range(Dwarf_Die *sp_die, Dwarf_Die *vr_die, struct strbuf *buf);
184 struct strbuf *buf __maybe_unused) in die_get_var_range()
Dpfm.c177 print_attr_flags(struct strbuf *buf, const pfm_event_attr_info_t *info) in print_attr_flags()
189 struct strbuf *buf) in print_libpfm_event()
289 struct strbuf storage; in print_libpfm_events()
Dparse-events.h21 struct strbuf;
190 int parse_events_terms__to_strbuf(const struct parse_events_terms *terms, struct strbuf *sb);
Dprobe-event.c1992 struct strbuf buf; in synthesize_perf_probe_arg()
2030 struct strbuf buf; in synthesize_perf_probe_point()
2069 struct strbuf buf; in synthesize_perf_probe_command()
2103 struct strbuf *buf, int depth) in __synthesize_probe_trace_arg_ref()
2120 struct strbuf *buf) in synthesize_probe_trace_arg()
2162 synthesize_probe_trace_args(struct probe_trace_event *tev, struct strbuf *buf) in synthesize_probe_trace_args()
2173 synthesize_uprobe_trace_def(struct probe_trace_point *tp, struct strbuf *buf) in synthesize_uprobe_trace_def()
2201 synthesize_kprobe_trace_def(struct probe_trace_point *tp, struct strbuf *buf) in synthesize_kprobe_trace_def()
2216 struct strbuf buf; in synthesize_probe_trace_command()
2319 struct strbuf buf = STRBUF_INIT; in convert_to_perf_probe_event()
[all …]
Ddwarf-aux.c1107 int die_get_typename_from_type(Dwarf_Die *type_die, struct strbuf *buf) in die_get_typename_from_type()
1155 int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf) in die_get_typename()
1172 int die_get_varname(Dwarf_Die *vr_die, struct strbuf *buf) in die_get_varname()
1261 struct strbuf *buf) in die_get_var_innermost_scope()
1323 int die_get_var_range(Dwarf_Die *sp_die, Dwarf_Die *vr_die, struct strbuf *buf) in die_get_var_range()
Dmetricgroup.c560 static int encode_metric_id(struct strbuf *sb, const char *x) in encode_metric_id()
584 static int decode_metric_id(struct strbuf *sb, const char *x) in decode_metric_id()
612 struct strbuf sb = STRBUF_INIT; in decode_all_metric_ids()
668 static int metricgroup__build_event_string(struct strbuf *events, in metricgroup__build_event_string()
1454 struct strbuf events = STRBUF_INIT; in parse_ids()
Dpmus.c525 struct strbuf short_string;
526 struct strbuf long_string;
Dannotate-data.c44 struct strbuf sb; in pr_debug_type_name()
227 struct strbuf sb; in __add_member_cb()
323 struct strbuf sb; in dso__findnew_data_type()
1034 struct strbuf sb; in check_matching_type()
Dparse-events.c1457 struct strbuf sb; in parse_events_add_pmu()
1510 struct strbuf sb; in parse_events_add_pmu()
1624 struct strbuf sb; in parse_events_multi_pmu_add()
1637 struct strbuf sb; in parse_events_multi_pmu_add()
2680 int parse_events_terms__to_strbuf(const struct parse_events_terms *terms, struct strbuf *sb) in parse_events_terms__to_strbuf()
Dprobe-file.c779 static int synthesize_sdt_probe_arg(struct strbuf *buf, int i, const char *arg) in synthesize_sdt_probe_arg()
828 struct strbuf buf; in synthesize_sdt_probe_command()
Denv.c346 struct strbuf sb; in perf_env__read_pmu_mappings()
Dpmu.c1343 struct strbuf buf = STRBUF_INIT; in pmu_formats_string()
1863 struct strbuf sb; in perf_pmu__for_each_event()
Dsort.c3984 static void add_key(struct strbuf *sb, const char *str, int *llen) in add_key()
3997 static void add_sort_string(struct strbuf *sb, struct sort_dimension *s, int n, in add_sort_string()
4006 static void add_hpp_sort_string(struct strbuf *sb, struct hpp_dimension *s, int n, in add_hpp_sort_string()
4017 struct strbuf sb; in sort_help()
DBuild45 perf-util-y += strbuf.o
Dannotate.c1746 struct strbuf sb; in annotation_br_cntr_abbr_list()
1794 struct strbuf sb; in annotation_br_cntr_entry()
Dprobe-finder.c1401 struct strbuf buf = STRBUF_INIT; in collect_variables_cb()
Dheader.c2587 struct strbuf sb; in process_cpu_topology()
2768 struct strbuf sb; in process_pmu_mappings()
/tools/perf/
Dbuiltin-list.c301 static void fix_escape_fprintf(FILE *fp, struct strbuf *buf, const char *fmt, ...) in fix_escape_fprintf()
366 struct strbuf buf; in json_print_event()
441 struct strbuf buf; in json_print_metric()
Dbuiltin-help.c74 struct strbuf buffer = STRBUF_INIT; in check_emacsclient_version()
/tools/perf/bench/
Devlist-open-close.c194 struct strbuf buf; in bench__repeat_event_string()
/tools/testing/selftests/bpf/prog_tests/
Dreg_bounds.c39 struct strbuf { struct
46 struct { struct strbuf buf; char data[(N)]; } ___##name; \ argument
47 struct strbuf *name = (___##name.buf.buf_sz = (N), ___##name.buf.pos = 0, &___##name.buf)
50 static inline void snappendf(struct strbuf *s, const char *fmt, ...) in snappendf()
159 static void snprintf_num(enum num_t t, struct strbuf *sb, u64 x) in snprintf_num()
222 static void snprintf_range(enum num_t t, struct strbuf *sb, struct range x) in snprintf_range()
1372 static void subtest_case_str(struct strbuf *sb, struct subtest_case *t, bool use_op) in subtest_case_str()
/tools/perf/tests/
Dbuiltin-test.c283 struct strbuf err_output = STRBUF_INIT; in finish_test()