| /linux/tools/perf/util/ |
| H A D | strbuf.h | 50 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 …]
|
| H A D | strbuf.c | 2 #include "strbuf.h" 17 * initialized strbuf. 21 int strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init() 30 void strbuf_release(struct strbuf *sb) in strbuf_release() 38 char *strbuf_detach(struct strbuf *sb, size_t *sz) in strbuf_detach() 47 int strbuf_grow(struct strbuf *sb, size_t extra) in strbuf_grow() 77 int strbuf_addch(struct strbuf *sb, int c) in strbuf_addch() 88 int strbuf_add(struct strbuf *sb, const void *data, size_t len) in strbuf_add() 98 static int strbuf_addv(struct strbuf *sb, const char *fmt, va_list ap) in strbuf_addv() 132 int strbuf_addf(struct strbuf *s in strbuf_addf() [all...] |
| H A D | dwarf-aux.h | 18 struct strbuf; 133 int die_get_typename_from_type(Dwarf_Die *type_die, struct strbuf *buf); 136 int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf); 139 int die_get_varname(Dwarf_Die *vr_die, struct strbuf *buf); 173 int die_get_var_range(Dwarf_Die *sp_die, Dwarf_Die *vr_die, struct strbuf *buf);
|
| H A D | pfm.c | 15 #include "util/strbuf.h" 175 print_attr_flags(struct strbuf *buf, const pfm_event_attr_info_t *info) in print_attr_flags() 187 struct strbuf *buf) in print_libpfm_event() 289 struct strbuf storage; in print_libpfm_events()
|
| H A D | probe-event.c | 41 #include "strbuf.h" 2032 struct strbuf buf; in synthesize_perf_probe_arg() 2070 struct strbuf buf; in synthesize_perf_probe_point() 2109 struct strbuf buf; in synthesize_perf_probe_command() 2143 struct strbuf *buf, int depth) in __synthesize_probe_trace_arg_ref() 2160 struct strbuf *buf) in synthesize_probe_trace_arg() 2202 synthesize_probe_trace_args(struct probe_trace_event *tev, struct strbuf *buf) 2213 synthesize_uprobe_trace_def(struct probe_trace_point *tp, struct strbuf *buf) 2241 synthesize_kprobe_trace_def(struct probe_trace_point *tp, struct strbuf *buf) 2256 struct strbuf bu in synthesize_probe_trace_command() [all...] |
| H A D | evlist.h | 29 struct strbuf; 681 void evlist__format_evsels(struct evlist *evlist, struct strbuf *sb, size_t max_length);
|
| H A D | dwarf-aux.c | 14 #include "strbuf.h" 1149 static int __die_get_typename_from_type(Dwarf_Die *type_die, struct strbuf *buf, 1152 static int __die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf, int depth) 1162 static int __die_get_typename_from_type(Dwarf_Die *type_die, struct strbuf *buf, in die_get_typename() 1209 * @buf: a strbuf for the result type name in offset_from_dwarf_op() 1214 int die_get_typename_from_type(Dwarf_Die *type_die, struct strbuf *buf) in offset_from_dwarf_op() 1222 * @buf: a strbuf for result type name in check_allowed_ops() 1229 int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf) in check_allowed_ops() 1237 * @buf: a strbuf for type and variable name in check_allowed_ops() 1241 int die_get_varname(Dwarf_Die *vr_die, struct strbuf *bu in check_allowed_ops() [all...] |
| H A D | metricgroup.c | 12 #include "strbuf.h" 454 static int encode_metric_id(struct strbuf *sb, const char *x) 477 static int decode_metric_id(struct strbuf *sb, const char *x) in encode_metric_id() 505 struct strbuf sb = STRBUF_INIT; in decode_all_metric_ids() 561 static int metricgroup__build_event_string(struct strbuf *events, in decode_all_metric_ids() 1284 struct strbuf events = STRBUF_INIT; in parse_ids()
|
| H A D | parse-events.h | 21 struct strbuf;
|
| /linux/arch/sparc/kernel/ |
| H A D | iommu.c | 268 struct strbuf *strbuf; in dma_4u_map_phys() local 286 strbuf = dev->archdata.stc; in dma_4u_map_phys() 308 if (strbuf->strbuf_enabled) in dma_4u_map_phys() 330 static void strbuf_flush(struct strbuf *strbuf, struct iommu *iommu, in strbuf_flush() argument 336 if (strbuf->strbuf_ctxflush && in strbuf_flush() 341 flushreg = strbuf->strbuf_ctxflush; in strbuf_flush() 342 matchreg = STC_CTXMATCH_ADDR(strbuf, ctx); in strbuf_flush() 367 iommu_write(strbuf->strbuf_pflush, vaddr); in strbuf_flush() 378 STC_FLUSHFLAG_INIT(strbuf); in strbuf_flush() 379 iommu_write(strbuf->strbuf_fsync, strbuf->strbuf_flushflag_pa); in strbuf_flush() [all …]
|
| H A D | sbus.c | 546 struct strbuf *strbuf; in sbus_iommu_init() local 560 strbuf = kzalloc_obj(*strbuf, GFP_ATOMIC); in sbus_iommu_init() 561 if (!iommu || !strbuf) in sbus_iommu_init() 565 op->dev.archdata.stc = strbuf; in sbus_iommu_init() 576 strbuf->strbuf_control = reg_base + STRBUF_CONTROL; in sbus_iommu_init() 577 strbuf->strbuf_pflush = reg_base + STRBUF_PFLUSH; in sbus_iommu_init() 578 strbuf->strbuf_fsync = reg_base + STRBUF_FSYNC; in sbus_iommu_init() 580 strbuf->strbuf_enabled = 1; in sbus_iommu_init() 582 strbuf->strbuf_flushflag = (volatile unsigned long *) in sbus_iommu_init() 583 ((((unsigned long)&strbuf->__flushflag_buf[0]) in sbus_iommu_init() [all …]
|
| H A D | psycho_common.c | 39 struct strbuf *strbuf = &pbm->stc; in psycho_check_stc_error() local 43 if (!strbuf->strbuf_control) in psycho_check_stc_error() 46 err_base = strbuf->strbuf_err_stat; in psycho_check_stc_error() 47 tag_base = strbuf->strbuf_tag_diag; in psycho_check_stc_error() 48 line_base = strbuf->strbuf_line_diag; in psycho_check_stc_error() 60 control = upa_readq(strbuf->strbuf_control); in psycho_check_stc_error() 61 upa_writeq(control | PSYCHO_STRBUF_CTRL_DENAB, strbuf->strbuf_control); in psycho_check_stc_error() 77 upa_writeq(control, strbuf->strbuf_control); in psycho_check_stc_error()
|
| H A D | pci_schizo.c | 134 struct strbuf *strbuf = &pbm->stc; in __schizo_check_stc_error_pbm() local 155 control = upa_readq(strbuf->strbuf_control); in __schizo_check_stc_error_pbm() 157 strbuf->strbuf_control); in __schizo_check_stc_error_pbm() 173 upa_writeq(control, strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
|
| H A D | pci_impl.h | 147 struct strbuf stc;
|
| /linux/drivers/ntb/hw/idt/ |
| H A D | ntb_hw_idt.c | 2338 char *strbuf; in idt_dbgfs_info_read() 2346 strbuf = kmalloc(size, GFP_KERNEL); in idt_dbgfs_info_read() 2347 if (strbuf == NULL) in idt_dbgfs_info_read() 2351 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read() 2355 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read() 2359 off += scnprintf(strbuf + off, size - off, "Peers:\n"); in idt_dbgfs_info_read() 2361 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read() 2368 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read() 2370 off += scnprintf(strbuf + off, size - off, "PCIe Gen %d x%d lanes\n", in idt_dbgfs_info_read() 2374 off += scnprintf(strbuf in idt_dbgfs_info_read() 2339 char *strbuf; idt_dbgfs_info_read() local [all...] |
| /linux/drivers/acpi/ |
| H A D | proc.c | 93 char strbuf[5]; in acpi_system_write_wakeup_device() local 99 if (copy_from_user(strbuf, buffer, count)) in acpi_system_write_wakeup_device() 101 strbuf[count] = '\0'; in acpi_system_write_wakeup_device() 102 sscanf(strbuf, "%s", str); in acpi_system_write_wakeup_device()
|
| /linux/fs/hfsplus/ |
| H A D | xattr.c | 809 char *strbuf; in hfsplus_listxattr() local 832 strbuf = kzalloc(strbuf_size, GFP_KERNEL); in hfsplus_listxattr() 833 if (!strbuf) { in hfsplus_listxattr() 866 &fd.key->attr.key_name, strbuf, in hfsplus_listxattr() 874 if (can_list(strbuf)) in hfsplus_listxattr() 875 res += name_len(strbuf, xattr_name_len); in hfsplus_listxattr() 876 } else if (can_list(strbuf)) { in hfsplus_listxattr() 877 if (size < (res + name_len(strbuf, xattr_name_len))) { in hfsplus_listxattr() 880 name_len(strbuf, xattr_name_len)); in hfsplus_listxattr() 885 strbuf, xattr_name_len); in hfsplus_listxattr() [all …]
|
| H A D | dir.c | 135 char *strbuf; in hfsplus_readdir() local 147 strbuf = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_MAX_STRLEN + 1, GFP_KERNEL); in hfsplus_readdir() 148 if (!strbuf) { in hfsplus_readdir() 215 err = hfsplus_uni2asc_str(sb, &fd.key->cat.name, strbuf, &len); in hfsplus_readdir() 229 if (!dir_emit(ctx, strbuf, len, in hfsplus_readdir() 256 if (!dir_emit(ctx, strbuf, len, in hfsplus_readdir() 283 kfree(strbuf); in hfsplus_readdir()
|
| /linux/net/tipc/ |
| H A D | eth_media.c | 42 char *strbuf, int bufsz) in tipc_eth_addr2str() argument 47 sprintf(strbuf, "%pM", addr->value); in tipc_eth_addr2str()
|
| H A D | bearer.h | 121 char *strbuf,
|
| /linux/fs/hfs/ |
| H A D | dir.c | 53 char strbuf[HFS_MAX_NAMELEN]; in hfs_readdir() local 126 len = hfs_mac2asc(sb, strbuf, &fd.key->cat.CName); in hfs_readdir() 133 if (!dir_emit(ctx, strbuf, len, in hfs_readdir() 142 if (!dir_emit(ctx, strbuf, len, in hfs_readdir()
|
| /linux/drivers/android/binder/ |
| H A D | rust_binderfs.c | 499 char strbuf[20 + 1]; in rust_binderfs_create_proc_file() 505 snprintf(strbuf, sizeof(strbuf), "%u", pid); in rust_binderfs_create_proc_file() 506 return rust_binderfs_create_file(dir, strbuf, &rust_binder_proc_fops, data); in rust_binderfs_create_proc_file() 498 char strbuf[20 + 1]; rust_binderfs_create_proc_file() local
|
| /linux/arch/sparc/include/asm/ |
| H A D | iommu_64.h | 74 struct strbuf { struct
|
| /linux/tools/perf/ |
| H A D | builtin-list.c | 21 #include "util/strbuf.h" 310 static void fix_escape_fprintf(FILE *fp, struct strbuf *buf, const char *fmt, ...) in fix_escape_fprintf() 376 struct strbuf buf; in json_print_event() 469 struct strbuf buf; in json_print_metric()
|
| /linux/tools/perf/arch/x86/util/ |
| H A D | evsel.c | 184 struct strbuf sb = STRBUF_INIT; in intel_evsel__open_strerror()
|