Lines Matching refs:len
33 int len);
89 stringify_lockname(res->lockname.name, res->lockname.len, in __dlm_print_one_lock_resource()
237 int len) in stringify_lockname() argument
247 out += scnprintf(buf + out, len - out, "%.*s%08x", in stringify_lockname()
251 out += scnprintf(buf + out, len - out, "%.*s", in stringify_lockname()
257 char *buf, int len) in stringify_nodemap() argument
263 out += scnprintf(buf + out, len - out, "%d ", i); in stringify_nodemap()
268 static int dump_mle(struct dlm_master_list_entry *mle, char *buf, int len) in dump_mle() argument
280 out += stringify_lockname(mle->mname, mle->mnamelen, buf + out, len - out); in dump_mle()
281 out += scnprintf(buf + out, len - out, in dump_mle()
288 out += scnprintf(buf + out, len - out, "Maybe="); in dump_mle()
290 buf + out, len - out); in dump_mle()
291 out += scnprintf(buf + out, len - out, "\n"); in dump_mle()
293 out += scnprintf(buf + out, len - out, "Vote="); in dump_mle()
295 buf + out, len - out); in dump_mle()
296 out += scnprintf(buf + out, len - out, "\n"); in dump_mle()
298 out += scnprintf(buf + out, len - out, "Response="); in dump_mle()
300 buf + out, len - out); in dump_mle()
301 out += scnprintf(buf + out, len - out, "\n"); in dump_mle()
303 out += scnprintf(buf + out, len - out, "Node="); in dump_mle()
305 buf + out, len - out); in dump_mle()
306 out += scnprintf(buf + out, len - out, "\n"); in dump_mle()
308 out += scnprintf(buf + out, len - out, "\n"); in dump_mle()
350 static int debug_purgelist_print(struct dlm_ctxt *dlm, char *buf, int len) in debug_purgelist_print() argument
356 out += scnprintf(buf + out, len - out, in debug_purgelist_print()
362 if (len - out < 100) in debug_purgelist_print()
366 res->lockname.len, in debug_purgelist_print()
367 buf + out, len - out); in debug_purgelist_print()
368 out += scnprintf(buf + out, len - out, "\t%ld\n", in debug_purgelist_print()
374 out += scnprintf(buf + out, len - out, "Total on list: %lu\n", total); in debug_purgelist_print()
406 static int debug_mle_print(struct dlm_ctxt *dlm, char *buf, int len) in debug_mle_print() argument
413 out += scnprintf(buf + out, len - out, in debug_mle_print()
422 if (len - out < 200) in debug_mle_print()
424 out += dump_mle(mle, buf + out, len - out); in debug_mle_print()
431 out += scnprintf(buf + out, len - out, in debug_mle_print()
464 static int dump_lock(struct dlm_lock *lock, int list_type, char *buf, int len) in dump_lock() argument
470 out = scnprintf(buf, len, "LOCK:%d,%d,%d,%d,%d,%d:%lld,%d,%d,%d,%d,%d," in dump_lock()
488 static int dump_lockres(struct dlm_lock_resource *res, char *buf, int len) in dump_lockres() argument
494 out += scnprintf(buf + out, len - out, "NAME:"); in dump_lockres()
495 out += stringify_lockname(res->lockname.name, res->lockname.len, in dump_lockres()
496 buf + out, len - out); in dump_lockres()
497 out += scnprintf(buf + out, len - out, "\n"); in dump_lockres()
500 out += scnprintf(buf + out, len - out, in dump_lockres()
512 out += scnprintf(buf + out, len - out, "RMAP:"); in dump_lockres()
514 buf + out, len - out); in dump_lockres()
515 out += scnprintf(buf + out, len - out, "\n"); in dump_lockres()
518 out += scnprintf(buf + out, len - out, "LVBX:"); in dump_lockres()
520 out += scnprintf(buf + out, len - out, in dump_lockres()
522 out += scnprintf(buf + out, len - out, "\n"); in dump_lockres()
526 out += dump_lock(lock, 0, buf + out, len - out); in dump_lockres()
530 out += dump_lock(lock, 1, buf + out, len - out); in dump_lockres()
534 out += dump_lock(lock, 2, buf + out, len - out); in dump_lockres()
536 out += scnprintf(buf + out, len - out, "\n"); in dump_lockres()
662 static int debug_state_print(struct dlm_ctxt *dlm, char *buf, int len) in debug_state_print() argument
686 out += scnprintf(buf + out, len - out, in debug_state_print()
692 out += scnprintf(buf + out, len - out, in debug_state_print()
697 out += scnprintf(buf + out, len - out, in debug_state_print()
702 out += scnprintf(buf + out, len - out, "Domain Map: "); in debug_state_print()
704 buf + out, len - out); in debug_state_print()
705 out += scnprintf(buf + out, len - out, "\n"); in debug_state_print()
708 out += scnprintf(buf + out, len - out, "Exit Domain Map: "); in debug_state_print()
710 buf + out, len - out); in debug_state_print()
711 out += scnprintf(buf + out, len - out, "\n"); in debug_state_print()
714 out += scnprintf(buf + out, len - out, "Live Map: "); in debug_state_print()
716 buf + out, len - out); in debug_state_print()
717 out += scnprintf(buf + out, len - out, "\n"); in debug_state_print()
720 out += scnprintf(buf + out, len - out, in debug_state_print()
732 out += scnprintf(buf + out, len - out, in debug_state_print()
736 out += scnprintf(buf + out, len - out, in debug_state_print()
742 out += scnprintf(buf + out, len - out, in debug_state_print()
748 out += scnprintf(buf + out, len - out, in debug_state_print()
754 out += scnprintf(buf + out, len - out, in debug_state_print()
763 out += scnprintf(buf + out, len - out, in debug_state_print()
768 out += scnprintf(buf + out, len - out, in debug_state_print()
778 out += scnprintf(buf + out, len - out, in debug_state_print()
784 out += scnprintf(buf + out, len - out, "Recovery Map: "); in debug_state_print()
786 buf + out, len - out); in debug_state_print()
787 out += scnprintf(buf + out, len - out, "\n"); in debug_state_print()
790 out += scnprintf(buf + out, len - out, "Recovery Node State:\n"); in debug_state_print()
818 out += scnprintf(buf + out, len - out, "\t%u - %s\n", in debug_state_print()