Lines Matching full:s

34 static int monmap_show(struct seq_file *s, void *p)  in monmap_show()  argument
37 struct ceph_client *client = s->private; in monmap_show()
43 seq_printf(s, "epoch %d\n", client->monc.monmap->epoch); in monmap_show()
48 seq_printf(s, "\t%s%lld\t%s\n", in monmap_show()
58 static int osdmap_show(struct seq_file *s, void *p) in osdmap_show() argument
61 struct ceph_client *client = s->private; in osdmap_show()
71 seq_printf(s, "epoch %u barrier %u flags 0x%x\n", map->epoch, in osdmap_show()
78 …seq_printf(s, "pool %lld '%s' type %d size %d min_size %d pg_num %u pg_num_mask %d flags 0x%llx lf… in osdmap_show()
89 seq_printf(s, "osd%d\t%s\t%3d%%\t(%s)\t%3d%%\t%2d\n", in osdmap_show()
101 seq_printf(s, "pg_temp %llu.%x [", pg->pgid.pool, in osdmap_show()
104 seq_printf(s, "%s%d", (i == 0 ? "" : ","), in osdmap_show()
106 seq_printf(s, "]\n"); in osdmap_show()
112 seq_printf(s, "primary_temp %llu.%x %d\n", pg->pgid.pool, in osdmap_show()
119 seq_printf(s, "pg_upmap %llu.%x [", pg->pgid.pool, in osdmap_show()
122 seq_printf(s, "%s%d", (i == 0 ? "" : ","), in osdmap_show()
124 seq_printf(s, "]\n"); in osdmap_show()
130 seq_printf(s, "pg_upmap_items %llu.%x [", pg->pgid.pool, in osdmap_show()
133 seq_printf(s, "%s%d->%d", (i == 0 ? "" : ","), in osdmap_show()
136 seq_printf(s, "]\n"); in osdmap_show()
144 static int monc_show(struct seq_file *s, void *p) in monc_show() argument
146 struct ceph_client *client = s->private; in monc_show()
155 seq_printf(s, "have %s %u", ceph_sub_str[i], in monc_show()
158 seq_printf(s, " want %llu%s", in monc_show()
162 seq_putc(s, '\n'); in monc_show()
164 seq_printf(s, "fs_cluster_id %d\n", monc->fs_cluster_id); in monc_show()
171 seq_printf(s, "%llu statfs\n", req->tid); in monc_show()
173 seq_printf(s, "%llu mon_get_version", req->tid); in monc_show()
175 seq_printf(s, "%llu unknown\n", req->tid); in monc_show()
182 static void dump_spgid(struct seq_file *s, const struct ceph_spg *spgid) in dump_spgid() argument
184 seq_printf(s, "%llu.%x", spgid->pgid.pool, spgid->pgid.seed); in dump_spgid()
186 seq_printf(s, "s%d", spgid->shard); in dump_spgid()
189 static void dump_target(struct seq_file *s, struct ceph_osd_request_target *t) in dump_target() argument
193 seq_printf(s, "osd%d\t%llu.%x\t", t->osd, t->pgid.pool, t->pgid.seed); in dump_target()
194 dump_spgid(s, &t->spgid); in dump_target()
195 seq_puts(s, "\t["); in dump_target()
197 seq_printf(s, "%s%d", (!i ? "" : ","), t->up.osds[i]); in dump_target()
198 seq_printf(s, "]/%d\t[", t->up.primary); in dump_target()
200 seq_printf(s, "%s%d", (!i ? "" : ","), t->acting.osds[i]); in dump_target()
201 seq_printf(s, "]/%d\te%u\t", t->acting.primary, t->epoch); in dump_target()
203 seq_printf(s, "%*pE/%*pE\t0x%x", in dump_target()
208 seq_printf(s, "%*pE\t0x%x", t->target_oid.name_len, in dump_target()
212 seq_puts(s, "\tP"); in dump_target()
215 static void dump_request(struct seq_file *s, struct ceph_osd_request *req) in dump_request() argument
219 seq_printf(s, "%llu\t", req->r_tid); in dump_request()
220 dump_target(s, &req->r_t); in dump_request()
222 seq_printf(s, "\t%d", req->r_attempts); in dump_request()
227 seq_printf(s, "%s%s", (i == 0 ? "\t" : ","), in dump_request()
230 seq_printf(s, "-%s", in dump_request()
233 seq_printf(s, "-%s/%s", op->cls.class_name, in dump_request()
237 seq_putc(s, '\n'); in dump_request()
240 static void dump_requests(struct seq_file *s, struct ceph_osd *osd) in dump_requests() argument
249 dump_request(s, req); in dump_requests()
255 static void dump_linger_request(struct seq_file *s, in dump_linger_request() argument
258 seq_printf(s, "%llu\t", lreq->linger_id); in dump_linger_request()
259 dump_target(s, &lreq->t); in dump_linger_request()
261 seq_printf(s, "\t%u\t%s%s/%d\n", lreq->register_gen, in dump_linger_request()
266 static void dump_linger_requests(struct seq_file *s, struct ceph_osd *osd) in dump_linger_requests() argument
275 dump_linger_request(s, lreq); in dump_linger_requests()
281 static void dump_snapid(struct seq_file *s, u64 snapid) in dump_snapid() argument
284 seq_puts(s, "head"); in dump_snapid()
286 seq_puts(s, "snapdir"); in dump_snapid()
288 seq_printf(s, "%llx", snapid); in dump_snapid()
291 static void dump_name_escaped(struct seq_file *s, unsigned char *name, in dump_name_escaped() argument
299 seq_printf(s, "%%%02x", name[i]); in dump_name_escaped()
301 seq_putc(s, name[i]); in dump_name_escaped()
306 static void dump_hoid(struct seq_file *s, const struct ceph_hobject_id *hoid) in dump_hoid() argument
310 seq_puts(s, "MIN"); in dump_hoid()
314 seq_puts(s, "MAX"); in dump_hoid()
317 seq_printf(s, "%lld:%08x:", hoid->pool, hoid->hash_reverse_bits); in dump_hoid()
318 dump_name_escaped(s, hoid->nspace, hoid->nspace_len); in dump_hoid()
319 seq_putc(s, ':'); in dump_hoid()
320 dump_name_escaped(s, hoid->key, hoid->key_len); in dump_hoid()
321 seq_putc(s, ':'); in dump_hoid()
322 dump_name_escaped(s, hoid->oid, hoid->oid_len); in dump_hoid()
323 seq_putc(s, ':'); in dump_hoid()
324 dump_snapid(s, hoid->snapid); in dump_hoid()
327 static void dump_backoffs(struct seq_file *s, struct ceph_osd *osd) in dump_backoffs() argument
336 seq_printf(s, "osd%d\t", osd->o_osd); in dump_backoffs()
337 dump_spgid(s, &backoff->spgid); in dump_backoffs()
338 seq_printf(s, "\t%llu\t", backoff->id); in dump_backoffs()
339 dump_hoid(s, backoff->begin); in dump_backoffs()
340 seq_putc(s, '\t'); in dump_backoffs()
341 dump_hoid(s, backoff->end); in dump_backoffs()
342 seq_putc(s, '\n'); in dump_backoffs()
348 static int osdc_show(struct seq_file *s, void *pp) in osdc_show() argument
350 struct ceph_client *client = s->private; in osdc_show()
355 seq_printf(s, "REQUESTS %d homeless %d\n", in osdc_show()
361 dump_requests(s, osd); in osdc_show()
363 dump_requests(s, &osdc->homeless_osd); in osdc_show()
365 seq_puts(s, "LINGER REQUESTS\n"); in osdc_show()
369 dump_linger_requests(s, osd); in osdc_show()
371 dump_linger_requests(s, &osdc->homeless_osd); in osdc_show()
373 seq_puts(s, "BACKOFFS\n"); in osdc_show()
377 dump_backoffs(s, osd); in osdc_show()
384 static int client_options_show(struct seq_file *s, void *p) in client_options_show() argument
386 struct ceph_client *client = s->private; in client_options_show()
389 ret = ceph_print_client_options(s, client, true); in client_options_show()
393 seq_putc(s, '\n'); in client_options_show()
420 dout("ceph_debugfs_client_init %p %s\n", client, name); in ceph_debugfs_client_init()