Home
last modified time | relevance | path

Searched refs:printbuf (Results 1 – 25 of 117) sorted by relevance

12345

/linux-6.12.1/fs/bcachefs/
Dprintbuf.h76 struct printbuf { struct
104 int bch2_printbuf_make_room(struct printbuf *, unsigned); argument
105 __printf(2, 3) void bch2_prt_printf(struct printbuf *out, const char *fmt, ...);
106 __printf(2, 0) void bch2_prt_vprintf(struct printbuf *out, const char *fmt, va_list);
107 const char *bch2_printbuf_str(const struct printbuf *);
108 void bch2_printbuf_exit(struct printbuf *);
110 void bch2_printbuf_tabstops_reset(struct printbuf *);
111 void bch2_printbuf_tabstop_pop(struct printbuf *);
112 int bch2_printbuf_tabstop_push(struct printbuf *, unsigned);
114 void bch2_printbuf_indent_add(struct printbuf *, unsigned);
[all …]
Dprintbuf.c13 static inline unsigned __printbuf_linelen(struct printbuf *buf, unsigned pos) in __printbuf_linelen()
18 static inline unsigned printbuf_linelen(struct printbuf *buf) in printbuf_linelen()
26 static inline unsigned cur_tabstop(struct printbuf *buf) in cur_tabstop()
33 int bch2_printbuf_make_room(struct printbuf *out, unsigned extra) in bch2_printbuf_make_room()
72 static void printbuf_advance_pos(struct printbuf *out, unsigned len) in printbuf_advance_pos()
77 static void printbuf_insert_spaces(struct printbuf *out, unsigned pos, unsigned nr) in printbuf_insert_spaces()
95 static void __printbuf_do_indent(struct printbuf *out, unsigned pos) in __printbuf_do_indent()
152 static inline void printbuf_do_indent(struct printbuf *out, unsigned pos) in printbuf_do_indent()
158 void bch2_prt_vprintf(struct printbuf *out, const char *fmt, va_list args) in bch2_prt_vprintf()
176 void bch2_prt_printf(struct printbuf *out, const char *fmt, ...) in bch2_prt_printf()
[all …]
Dsuper-io.h19 void bch2_version_to_text(struct printbuf *, unsigned);
55 enum bch_validate_flags, struct printbuf *);
56 void (*to_text)(struct printbuf *, struct bch_sb *, struct bch_sb_field *);
97 void __bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
99 void bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
101 void bch2_sb_layout_to_text(struct printbuf *, struct bch_sb_layout *);
102 void bch2_sb_to_text(struct printbuf *, struct bch_sb *, bool, unsigned);
Ddisk_groups.h88 void bch2_disk_path_to_text(struct printbuf *, struct bch_fs *, unsigned);
89 void bch2_disk_path_to_text_sb(struct printbuf *, struct bch_sb *, unsigned);
91 void bch2_target_to_text(struct printbuf *out, struct bch_fs *, unsigned);
93 int bch2_opt_target_parse(struct bch_fs *, const char *, u64 *, struct printbuf *);
94 void bch2_opt_target_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
109 void bch2_disk_groups_to_text(struct printbuf *, struct bch_fs *);
Dopts.h27 void bch2_prt_jset_entry_type(struct printbuf *, enum bch_jset_entry_type);
28 void bch2_prt_fs_usage_type(struct printbuf *, enum bch_fs_usage_type);
29 void bch2_prt_data_type(struct printbuf *, enum bch_data_type);
30 void bch2_prt_csum_type(struct printbuf *, enum bch_csum_type);
31 void bch2_prt_compression_type(struct printbuf *, enum bch_compression_type);
32 void bch2_prt_str_hash_type(struct printbuf *, enum bch_str_hash_type);
80 int (*parse)(struct bch_fs *, const char *, u64 *, struct printbuf *);
81 void (*to_text)(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
82 int (*validate)(u64, struct printbuf *);
529 struct printbuf parse_later;
[all …]
Dcompress.h61 void bch2_compression_opt_to_text(struct printbuf *, u64);
63 int bch2_opt_compression_parse(struct bch_fs *, const char *, u64 *, struct printbuf *);
64 void bch2_opt_compression_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
65 int bch2_opt_compression_validate(u64, struct printbuf *);
Dbkey_methods.h26 void (*val_to_text)(struct printbuf *, struct bch_fs *,
59 void bch2_bpos_to_text(struct printbuf *, struct bpos);
60 void bch2_bkey_to_text(struct printbuf *, const struct bkey *);
61 void bch2_val_to_text(struct printbuf *, struct bch_fs *,
63 void bch2_bkey_val_to_text(struct printbuf *, struct bch_fs *,
Dalloc_foreground.h226 void bch2_open_bucket_to_text(struct printbuf *, struct bch_fs *, struct open_bucket *);
227 void bch2_open_buckets_to_text(struct printbuf *, struct bch_fs *, struct bch_dev *);
228 void bch2_open_buckets_partial_to_text(struct printbuf *, struct bch_fs *);
230 void bch2_write_points_to_text(struct printbuf *, struct bch_fs *);
232 void bch2_fs_alloc_debug_to_text(struct printbuf *, struct bch_fs *);
233 void bch2_dev_alloc_debug_to_text(struct printbuf *, struct bch_dev *);
Dbtree_cache.h142 void bch2_btree_id_to_text(struct printbuf *, enum btree_id);
144 void bch2_btree_pos_to_text(struct printbuf *, struct bch_fs *, const struct btree *);
145 void bch2_btree_node_to_text(struct printbuf *, struct bch_fs *, const struct btree *);
146 void bch2_btree_cache_to_text(struct printbuf *, const struct btree_cache *);
Dopts.c98 static void prt_str_opt_boundscheck(struct printbuf *out, const char * const opts[], in prt_str_opt_boundscheck()
108 void bch2_prt_##name(struct printbuf *out, type t) \
121 struct printbuf *err) in bch2_opt_fix_errors_parse()
138 static void bch2_opt_fix_errors_to_text(struct printbuf *out, in bch2_opt_fix_errors_to_text()
290 int bch2_opt_validate(const struct bch_option *opt, u64 v, struct printbuf *err) in bch2_opt_validate()
329 struct printbuf *err) in bch2_opt_parse()
406 void bch2_opt_to_text(struct printbuf *out, in bch2_opt_to_text()
449 void bch2_opts_to_text(struct printbuf *out, in bch2_opts_to_text()
509 struct printbuf *parse_later, in bch2_parse_one_mount_opt()
512 struct printbuf err = PRINTBUF; in bch2_parse_one_mount_opt()
[all …]
Dreflink.h8 void bch2_reflink_p_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
23 void bch2_reflink_v_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
38 void bch2_indirect_inline_data_to_text(struct printbuf *,
Dreplicas.h10 void bch2_replicas_entry_to_text(struct printbuf *,
13 struct bch_fs *, struct printbuf *);
14 void bch2_cpu_replicas_to_text(struct printbuf *, struct bch_replicas_cpu *);
Dlru.c26 void bch2_lru_to_text(struct printbuf *out, struct bch_fs *c, in bch2_lru_to_text()
34 void bch2_lru_pos_to_text(struct printbuf *out, struct bpos lru) in bch2_lru_pos_to_text()
86 struct printbuf buf = PRINTBUF; in bch2_lru_check_set()
129 struct printbuf buf1 = PRINTBUF; in bch2_check_lru_key()
130 struct printbuf buf2 = PRINTBUF; in bch2_check_lru_key()
Dutil.h103 void bch2_pr_time_units(struct printbuf *, u64);
104 void bch2_prt_datetime(struct printbuf *, time64_t);
115 static inline void pr_uuid(struct printbuf *out, u8 *uuid) in pr_uuid()
200 void bch2_prt_u64_base2_nbits(struct printbuf *, u64, unsigned);
201 void bch2_prt_u64_base2(struct printbuf *, u64);
208 void bch2_prt_backtrace(struct printbuf *, bch_stacktrace *);
209 int bch2_prt_task_backtrace(struct printbuf *, struct task_struct *, unsigned, gfp_t);
211 static inline void prt_bdevname(struct printbuf *out, struct block_device *bdev) in prt_bdevname()
220 void bch2_time_stats_to_text(struct printbuf *, struct bch2_time_stats *);
276 void bch2_pd_controller_debug_to_text(struct printbuf *, struct bch_pd_controller *);
Dsuper-io.c44 void bch2_version_to_text(struct printbuf *out, unsigned v) in bch2_version_to_text()
79 enum bch_validate_flags, struct printbuf *);
173 struct printbuf buf = PRINTBUF; in bch2_sb_realloc()
261 static int validate_sb_layout(struct bch_sb_layout *layout, struct printbuf *out) in validate_sb_layout()
314 static int bch2_sb_compatible(struct bch_sb *sb, struct printbuf *out) in bch2_sb_compatible()
353 enum bch_validate_flags flags, struct printbuf *out) in bch2_sb_validate()
635 static int read_one_super(struct bch_sb_handle *sb, u64 offset, struct printbuf *err) in read_one_super()
701 struct printbuf err = PRINTBUF; in __bch2_read_super()
702 struct printbuf err2 = PRINTBUF; in __bch2_read_super()
936 struct printbuf err = PRINTBUF; in bch2_write_super()
[all …]
Ddisk_groups.c22 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_disk_groups_validate()
89 void bch2_disk_groups_to_text(struct printbuf *out, struct bch_fs *c) in bch2_disk_groups_to_text()
118 static void bch2_sb_disk_groups_to_text(struct printbuf *out, in bch2_sb_disk_groups_to_text()
380 void bch2_disk_path_to_text(struct printbuf *out, struct bch_fs *c, unsigned v) in bch2_disk_path_to_text()
430 void bch2_disk_path_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_disk_path_to_text_sb()
505 struct printbuf *err) in bch2_opt_target_parse()
541 void bch2_target_to_text(struct printbuf *out, struct bch_fs *c, unsigned v) in bch2_target_to_text()
579 static void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_target_to_text_sb()
607 void bch2_opt_target_to_text(struct printbuf *out, in bch2_opt_target_to_text()
Dio_misc.h12 void bch2_logged_op_truncate_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
23 void bch2_logged_op_finsert_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
Ddata_update.h20 void bch2_data_update_opts_to_text(struct printbuf *, struct bch_fs *,
33 void bch2_data_update_to_text(struct printbuf *, struct data_update *);
Dutil.c244 void bch2_prt_u64_base2_nbits(struct printbuf *out, u64 v, unsigned nr_bits) in bch2_prt_u64_base2_nbits()
250 void bch2_prt_u64_base2(struct printbuf *out, u64 v) in bch2_prt_u64_base2()
322 void bch2_prt_backtrace(struct printbuf *out, bch_stacktrace *stack) in bch2_prt_backtrace()
330 int bch2_prt_task_backtrace(struct printbuf *out, struct task_struct *task, unsigned skipnr, gfp_t … in bch2_prt_task_backtrace()
342 void bch2_prt_datetime(struct printbuf *out, time64_t sec) in bch2_prt_datetime()
351 void bch2_prt_datetime(struct printbuf *out, time64_t sec) in bch2_prt_datetime()
359 void bch2_pr_time_units(struct printbuf *out, u64 ns) in bch2_pr_time_units()
366 static void bch2_pr_time_units_aligned(struct printbuf *out, u64 ns) in bch2_pr_time_units_aligned()
373 static inline void pr_name_and_units(struct printbuf *out, const char *name, u64 ns) in pr_name_and_units()
382 void bch2_time_stats_to_text(struct printbuf *out, struct bch2_time_stats *stats) in bch2_time_stats_to_text()
[all …]
Djournal_io.c48 void bch2_journal_ptrs_to_text(struct printbuf *out, struct bch_fs *c, in bch2_journal_ptrs_to_text()
59 static void bch2_journal_replay_to_text(struct printbuf *out, struct bch_fs *c, in bch2_journal_replay_to_text()
145 struct printbuf buf = PRINTBUF; in journal_entry_add()
267 static void journal_entry_err_msg(struct printbuf *out, in journal_entry_err_msg()
297 struct printbuf _buf = PRINTBUF; \
413 static void journal_entry_btree_keys_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_btree_keys_to_text()
463 static void journal_entry_btree_root_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_btree_root_to_text()
479 static void journal_entry_prio_ptrs_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_prio_ptrs_to_text()
502 static void journal_entry_blacklist_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_blacklist_to_text()
542 static void journal_entry_blacklist_v2_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_blacklist_v2_to_text()
[all …]
Dreplicas.c47 static void bch2_replicas_entry_v0_to_text(struct printbuf *out, in bch2_replicas_entry_v0_to_text()
58 void bch2_replicas_entry_to_text(struct printbuf *out, in bch2_replicas_entry_to_text()
71 struct printbuf *err) in bch2_replicas_entry_sb_validate()
99 struct printbuf *err) in bch2_replicas_entry_validate()
125 void bch2_cpu_replicas_to_text(struct printbuf *out, in bch2_cpu_replicas_to_text()
693 struct printbuf *err) in bch2_cpu_replicas_validate()
729 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_replicas_validate()
744 static void bch2_sb_replicas_to_text(struct printbuf *out, in bch2_sb_replicas_to_text()
768 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_replicas_v0_validate()
783 static void bch2_sb_replicas_v0_to_text(struct printbuf *out, in bch2_sb_replicas_v0_to_text()
[all …]
Djournal_sb.c20 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_journal_validate()
71 static void bch2_sb_journal_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_journal_to_text()
102 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_journal_v2_validate()
172 static void bch2_sb_journal_v2_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_journal_v2_to_text()
Dlru.h37 void bch2_lru_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
39 void bch2_lru_pos_to_text(struct printbuf *, struct bpos);
Dbkey_methods.c67 static void key_type_cookie_to_text(struct printbuf *out, struct bch_fs *c, in key_type_cookie_to_text()
91 static void key_type_inline_data_to_text(struct printbuf *out, struct bch_fs *c, in key_type_inline_data_to_text()
254 void bch2_bpos_to_text(struct printbuf *out, struct bpos pos) in bch2_bpos_to_text()
280 void bch2_bkey_to_text(struct printbuf *out, const struct bkey *k) in bch2_bkey_to_text()
298 void bch2_val_to_text(struct printbuf *out, struct bch_fs *c, in bch2_val_to_text()
307 void bch2_bkey_val_to_text(struct printbuf *out, struct bch_fs *c, in bch2_bkey_val_to_text()
Dsb-errors.c13 void bch2_sb_error_id_to_text(struct printbuf *out, enum bch_sb_error_id id) in bch2_sb_error_id_to_text()
33 enum bch_validate_flags flags, struct printbuf *err) in bch2_sb_errors_validate()
57 static void bch2_sb_errors_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_errors_to_text()

12345