Home
last modified time | relevance | path

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

12345

/linux/fs/bcachefs/
H A 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 …]
H A 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 …]
H A Dsuper-io.h21 void bch2_version_to_text(struct printbuf *, enum bcachefs_metadata_version);
67 enum bch_validate_flags, struct printbuf *);
68 void (*to_text)(struct printbuf *, struct bch_sb *, struct bch_sb_field *);
109 void __bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
111 void bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
113 void bch2_sb_layout_to_text(struct printbuf *, struct bch_sb_layout *);
114 void bch2_sb_to_text(struct printbuf *, struct bch_sb *, bool, unsigned);
H A 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 *);
H A Dopts.h28 void bch2_prt_jset_entry_type(struct printbuf *, enum bch_jset_entry_type);
29 void bch2_prt_fs_usage_type(struct printbuf *, enum bch_fs_usage_type);
30 void bch2_prt_data_type(struct printbuf *, enum bch_data_type);
31 void bch2_prt_csum_opt(struct printbuf *, enum bch_csum_opt);
32 void bch2_prt_csum_type(struct printbuf *, enum bch_csum_type);
33 void bch2_prt_compression_type(struct printbuf *, enum bch_compression_type);
34 void bch2_prt_str_hash_type(struct printbuf *, enum bch_str_hash_type);
82 int (*parse)(struct bch_fs *, const char *, u64 *, struct printbuf *);
83 void (*to_text)(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
84 int (*validate)(u64, struct printbuf *);
[all …]
H A Dbtree_cache.h147 void bch2_btree_id_to_text(struct printbuf *, enum btree_id);
148 void bch2_btree_id_level_to_text(struct printbuf *, enum btree_id, unsigned);
150 void __bch2_btree_pos_to_text(struct printbuf *, struct bch_fs *,
152 void bch2_btree_pos_to_text(struct printbuf *, struct bch_fs *, const struct btree *);
153 void bch2_btree_node_to_text(struct printbuf *, struct bch_fs *, const struct btree *);
154 void bch2_btree_cache_to_text(struct printbuf *, const struct btree_cache *);
H A 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 *);
H A Dbkey_methods.h26 void (*val_to_text)(struct printbuf *, struct bch_fs *,
60 void bch2_bpos_to_text(struct printbuf *, struct bpos);
61 void bch2_bkey_to_text(struct printbuf *, const struct bkey *);
62 void bch2_val_to_text(struct printbuf *, struct bch_fs *,
64 void bch2_bkey_val_to_text(struct printbuf *, struct bch_fs *,
H A Dalloc_foreground.h224 void bch2_open_bucket_to_text(struct printbuf *, struct bch_fs *, struct open_bucket *);
225 void bch2_open_buckets_to_text(struct printbuf *, struct bch_fs *, struct bch_dev *);
226 void bch2_open_buckets_partial_to_text(struct printbuf *, struct bch_fs *);
228 void bch2_write_points_to_text(struct printbuf *, struct bch_fs *);
230 void bch2_fs_alloc_debug_to_text(struct printbuf *, struct bch_fs *);
231 void bch2_dev_alloc_debug_to_text(struct printbuf *, struct bch_dev *);
H A Dopts.c99 static void prt_str_opt_boundscheck(struct printbuf *out, const char * const opts[], in prt_str_opt_boundscheck()
109 void bch2_prt_##name(struct printbuf *out, type t) \
123 struct printbuf *err) in bch2_opt_fix_errors_parse()
140 static void bch2_opt_fix_errors_to_text(struct printbuf *out, in bch2_opt_fix_errors_to_text()
292 int bch2_opt_validate(const struct bch_option *opt, u64 v, struct printbuf *err) in bch2_opt_validate()
331 struct printbuf *err) in bch2_opt_parse()
409 void bch2_opt_to_text(struct printbuf *out, in bch2_opt_to_text()
452 void bch2_opts_to_text(struct printbuf *out, in bch2_opts_to_text()
512 struct printbuf *parse_later, in bch2_parse_one_mount_opt()
515 struct printbuf err = PRINTBUF; in bch2_parse_one_mount_opt()
[all …]
H A 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()
H A 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 *);
H A Dreflink.h7 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 *,
H A Derror.h241 int bch2_inum_err_msg_trans(struct btree_trans *, struct printbuf *, subvol_inum);
242 int bch2_inum_offset_err_msg_trans(struct btree_trans *, struct printbuf *, subvol_inum, u64);
244 void bch2_inum_err_msg(struct bch_fs *, struct printbuf *, subvol_inum);
245 void bch2_inum_offset_err_msg(struct bch_fs *, struct printbuf *, subvol_inum, u64);
H A 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()
H A Derror.c203 static void prt_actioning(struct printbuf *out, const char *action) in prt_actioning()
225 struct printbuf *question, in do_fsck_ask_yn()
256 struct printbuf buf = PRINTBUF, *out = &buf; in __bch2_fsck_err()
488 struct printbuf buf = PRINTBUF; in __bch2_bkey_fsck_err()
533 int bch2_inum_err_msg_trans(struct btree_trans *trans, struct printbuf *out, subvol_inum inum) in bch2_inum_err_msg_trans()
547 int bch2_inum_offset_err_msg_trans(struct btree_trans *trans, struct printbuf *out, in bch2_inum_offset_err_msg_trans()
555 void bch2_inum_err_msg(struct bch_fs *c, struct printbuf *out, subvol_inum inum) in bch2_inum_err_msg()
560 void bch2_inum_offset_err_msg(struct bch_fs *c, struct printbuf *out, in bch2_inum_offset_err_msg()
H A Dsuper-io.c45 void bch2_version_to_text(struct printbuf *out, enum bcachefs_metadata_version v) in bch2_version_to_text()
96 enum bch_validate_flags, struct printbuf *);
190 struct printbuf buf = PRINTBUF; in bch2_sb_realloc()
278 static int validate_sb_layout(struct bch_sb_layout *layout, struct printbuf *out) in validate_sb_layout()
331 static int bch2_sb_compatible(struct bch_sb *sb, struct printbuf *out) in bch2_sb_compatible()
370 enum bch_validate_flags flags, struct printbuf *out) in bch2_sb_validate()
681 static int read_one_super(struct bch_sb_handle *sb, u64 offset, struct printbuf *err) in read_one_super()
748 struct printbuf err = PRINTBUF; in __bch2_read_super()
749 struct printbuf err2 = PRINTBUF; in __bch2_read_super()
984 struct printbuf err = PRINTBUF; in bch2_write_super()
[all …]
H A 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 …]
H A 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);
H A 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 *);
H A Djournal_io.c51 void bch2_journal_ptrs_to_text(struct printbuf *out, struct bch_fs *c, in bch2_journal_ptrs_to_text()
62 static void bch2_journal_replay_to_text(struct printbuf *out, struct bch_fs *c, in bch2_journal_replay_to_text()
148 struct printbuf buf = PRINTBUF; in journal_entry_add()
270 static void journal_entry_err_msg(struct printbuf *out, in journal_entry_err_msg()
300 struct printbuf _buf = PRINTBUF; \
414 static void journal_entry_btree_keys_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_btree_keys_to_text()
468 static void journal_entry_btree_root_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_btree_root_to_text()
484 static void journal_entry_prio_ptrs_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_prio_ptrs_to_text()
507 static void journal_entry_blacklist_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_blacklist_to_text()
547 static void journal_entry_blacklist_v2_to_text(struct printbuf *out, struct bch_fs *c, in journal_entry_blacklist_v2_to_text()
[all …]
H A 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 …]
H A 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()
255 void bch2_bpos_to_text(struct printbuf *out, struct bpos pos) in bch2_bpos_to_text()
281 void bch2_bkey_to_text(struct printbuf *out, const struct bkey *k) in bch2_bkey_to_text()
299 void bch2_val_to_text(struct printbuf *out, struct bch_fs *c, in bch2_val_to_text()
308 void bch2_bkey_val_to_text(struct printbuf *out, struct bch_fs *c, in bch2_bkey_val_to_text()
H A 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()
H A Dinode.h18 void bch2_inode_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
63 void bch2_inode_generation_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
73 void bch2_inode_alloc_cursor_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
118 void bch2_inode_unpacked_to_text(struct printbuf *, struct bch_inode_unpacked *);

12345