Lines Matching refs: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()
42 seq_printf(s, "epoch %d\n", client->monc.monmap->epoch); in monmap_show()
47 seq_printf(s, "\t%s%lld\t%s\n", in monmap_show()
54 static int osdmap_show(struct seq_file *s, void *p) in osdmap_show() argument
57 struct ceph_client *client = s->private; in osdmap_show()
66 seq_printf(s, "epoch %u barrier %u flags 0x%x\n", map->epoch, in osdmap_show()
73 …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()
84 seq_printf(s, "osd%d\t%s\t%3d%%\t(%s)\t%3d%%\t%2d\n", in osdmap_show()
96 seq_printf(s, "pg_temp %llu.%x [", pg->pgid.pool, in osdmap_show()
99 seq_printf(s, "%s%d", (i == 0 ? "" : ","), in osdmap_show()
101 seq_printf(s, "]\n"); in osdmap_show()
107 seq_printf(s, "primary_temp %llu.%x %d\n", pg->pgid.pool, in osdmap_show()
114 seq_printf(s, "pg_upmap %llu.%x [", pg->pgid.pool, in osdmap_show()
117 seq_printf(s, "%s%d", (i == 0 ? "" : ","), in osdmap_show()
119 seq_printf(s, "]\n"); in osdmap_show()
125 seq_printf(s, "pg_upmap_items %llu.%x [", pg->pgid.pool, in osdmap_show()
128 seq_printf(s, "%s%d->%d", (i == 0 ? "" : ","), in osdmap_show()
131 seq_printf(s, "]\n"); in osdmap_show()
138 static int monc_show(struct seq_file *s, void *p) in monc_show() argument
140 struct ceph_client *client = s->private; in monc_show()
149 seq_printf(s, "have %s %u", ceph_sub_str[i], in monc_show()
152 seq_printf(s, " want %llu%s", in monc_show()
156 seq_putc(s, '\n'); in monc_show()
158 seq_printf(s, "fs_cluster_id %d\n", monc->fs_cluster_id); in monc_show()
165 seq_printf(s, "%llu statfs\n", req->tid); in monc_show()
167 seq_printf(s, "%llu mon_get_version", req->tid); in monc_show()
169 seq_printf(s, "%llu unknown\n", req->tid); in monc_show()
176 static void dump_spgid(struct seq_file *s, const struct ceph_spg *spgid) in dump_spgid() argument
178 seq_printf(s, "%llu.%x", spgid->pgid.pool, spgid->pgid.seed); in dump_spgid()
180 seq_printf(s, "s%d", spgid->shard); in dump_spgid()
183 static void dump_target(struct seq_file *s, struct ceph_osd_request_target *t) in dump_target() argument
187 seq_printf(s, "osd%d\t%llu.%x\t", t->osd, t->pgid.pool, t->pgid.seed); in dump_target()
188 dump_spgid(s, &t->spgid); in dump_target()
189 seq_puts(s, "\t["); in dump_target()
191 seq_printf(s, "%s%d", (!i ? "" : ","), t->up.osds[i]); in dump_target()
192 seq_printf(s, "]/%d\t[", t->up.primary); in dump_target()
194 seq_printf(s, "%s%d", (!i ? "" : ","), t->acting.osds[i]); in dump_target()
195 seq_printf(s, "]/%d\te%u\t", t->acting.primary, t->epoch); in dump_target()
197 seq_printf(s, "%*pE/%*pE\t0x%x", in dump_target()
202 seq_printf(s, "%*pE\t0x%x", t->target_oid.name_len, in dump_target()
206 seq_puts(s, "\tP"); in dump_target()
209 static void dump_request(struct seq_file *s, struct ceph_osd_request *req) in dump_request() argument
213 seq_printf(s, "%llu\t", req->r_tid); in dump_request()
214 dump_target(s, &req->r_t); in dump_request()
216 seq_printf(s, "\t%d", req->r_attempts); in dump_request()
221 seq_printf(s, "%s%s", (i == 0 ? "\t" : ","), in dump_request()
224 seq_printf(s, "-%s", in dump_request()
227 seq_printf(s, "-%s/%s", op->cls.class_name, in dump_request()
231 seq_putc(s, '\n'); in dump_request()
234 static void dump_requests(struct seq_file *s, struct ceph_osd *osd) in dump_requests() argument
243 dump_request(s, req); in dump_requests()
249 static void dump_linger_request(struct seq_file *s, in dump_linger_request() argument
252 seq_printf(s, "%llu\t", lreq->linger_id); in dump_linger_request()
253 dump_target(s, &lreq->t); in dump_linger_request()
255 seq_printf(s, "\t%u\t%s%s/%d\n", lreq->register_gen, in dump_linger_request()
260 static void dump_linger_requests(struct seq_file *s, struct ceph_osd *osd) in dump_linger_requests() argument
269 dump_linger_request(s, lreq); in dump_linger_requests()
275 static void dump_snapid(struct seq_file *s, u64 snapid) in dump_snapid() argument
278 seq_puts(s, "head"); in dump_snapid()
280 seq_puts(s, "snapdir"); in dump_snapid()
282 seq_printf(s, "%llx", snapid); in dump_snapid()
285 static void dump_name_escaped(struct seq_file *s, unsigned char *name, in dump_name_escaped() argument
293 seq_printf(s, "%%%02x", name[i]); in dump_name_escaped()
295 seq_putc(s, name[i]); in dump_name_escaped()
300 static void dump_hoid(struct seq_file *s, const struct ceph_hobject_id *hoid) in dump_hoid() argument
304 seq_puts(s, "MIN"); in dump_hoid()
308 seq_puts(s, "MAX"); in dump_hoid()
311 seq_printf(s, "%lld:%08x:", hoid->pool, hoid->hash_reverse_bits); in dump_hoid()
312 dump_name_escaped(s, hoid->nspace, hoid->nspace_len); in dump_hoid()
313 seq_putc(s, ':'); in dump_hoid()
314 dump_name_escaped(s, hoid->key, hoid->key_len); in dump_hoid()
315 seq_putc(s, ':'); in dump_hoid()
316 dump_name_escaped(s, hoid->oid, hoid->oid_len); in dump_hoid()
317 seq_putc(s, ':'); in dump_hoid()
318 dump_snapid(s, hoid->snapid); in dump_hoid()
321 static void dump_backoffs(struct seq_file *s, struct ceph_osd *osd) in dump_backoffs() argument
330 seq_printf(s, "osd%d\t", osd->o_osd); in dump_backoffs()
331 dump_spgid(s, &backoff->spgid); in dump_backoffs()
332 seq_printf(s, "\t%llu\t", backoff->id); in dump_backoffs()
333 dump_hoid(s, backoff->begin); in dump_backoffs()
334 seq_putc(s, '\t'); in dump_backoffs()
335 dump_hoid(s, backoff->end); in dump_backoffs()
336 seq_putc(s, '\n'); in dump_backoffs()
342 static int osdc_show(struct seq_file *s, void *pp) in osdc_show() argument
344 struct ceph_client *client = s->private; in osdc_show()
349 seq_printf(s, "REQUESTS %d homeless %d\n", in osdc_show()
355 dump_requests(s, osd); in osdc_show()
357 dump_requests(s, &osdc->homeless_osd); in osdc_show()
359 seq_puts(s, "LINGER REQUESTS\n"); in osdc_show()
363 dump_linger_requests(s, osd); in osdc_show()
365 dump_linger_requests(s, &osdc->homeless_osd); in osdc_show()
367 seq_puts(s, "BACKOFFS\n"); in osdc_show()
371 dump_backoffs(s, osd); in osdc_show()
378 static int client_options_show(struct seq_file *s, void *p) in client_options_show() argument
380 struct ceph_client *client = s->private; in client_options_show()
383 ret = ceph_print_client_options(s, client, true); in client_options_show()
387 seq_putc(s, '\n'); in client_options_show()