• Home
  • Raw
  • Download

Lines Matching refs:len

48 			      int len);
104 stringify_lockname(res->lockname.name, res->lockname.len, in __dlm_print_one_lock_resource()
252 int len) in stringify_lockname() argument
262 out += snprintf(buf + out, len - out, "%.*s%08x", in stringify_lockname()
266 out += snprintf(buf + out, len - out, "%.*s", in stringify_lockname()
272 char *buf, int len) in stringify_nodemap() argument
278 out += snprintf(buf + out, len - out, "%d ", i); in stringify_nodemap()
283 static int dump_mle(struct dlm_master_list_entry *mle, char *buf, int len) in dump_mle() argument
295 out += stringify_lockname(mle->mname, mle->mnamelen, buf + out, len - out); in dump_mle()
296 out += snprintf(buf + out, len - out, in dump_mle()
303 out += snprintf(buf + out, len - out, "Maybe="); in dump_mle()
305 buf + out, len - out); in dump_mle()
306 out += snprintf(buf + out, len - out, "\n"); in dump_mle()
308 out += snprintf(buf + out, len - out, "Vote="); in dump_mle()
310 buf + out, len - out); in dump_mle()
311 out += snprintf(buf + out, len - out, "\n"); in dump_mle()
313 out += snprintf(buf + out, len - out, "Response="); in dump_mle()
315 buf + out, len - out); in dump_mle()
316 out += snprintf(buf + out, len - out, "\n"); in dump_mle()
318 out += snprintf(buf + out, len - out, "Node="); in dump_mle()
320 buf + out, len - out); in dump_mle()
321 out += snprintf(buf + out, len - out, "\n"); in dump_mle()
323 out += snprintf(buf + out, len - out, "\n"); in dump_mle()
385 static int debug_purgelist_print(struct dlm_ctxt *dlm, char *buf, int len) in debug_purgelist_print() argument
391 out += snprintf(buf + out, len - out, in debug_purgelist_print()
397 if (len - out < 100) in debug_purgelist_print()
401 res->lockname.len, in debug_purgelist_print()
402 buf + out, len - out); in debug_purgelist_print()
403 out += snprintf(buf + out, len - out, "\t%ld\n", in debug_purgelist_print()
409 out += snprintf(buf + out, len - out, "Total on list: %lu\n", total); in debug_purgelist_print()
441 static int debug_mle_print(struct dlm_ctxt *dlm, char *buf, int len) in debug_mle_print() argument
448 out += snprintf(buf + out, len - out, in debug_mle_print()
457 if (len - out < 200) in debug_mle_print()
459 out += dump_mle(mle, buf + out, len - out); in debug_mle_print()
466 out += snprintf(buf + out, len - out, in debug_mle_print()
499 static int dump_lock(struct dlm_lock *lock, int list_type, char *buf, int len) in dump_lock() argument
505 out = snprintf(buf, len, "LOCK:%d,%d,%d,%d,%d,%d:%lld,%d,%d,%d,%d,%d," in dump_lock()
523 static int dump_lockres(struct dlm_lock_resource *res, char *buf, int len) in dump_lockres() argument
529 out += snprintf(buf + out, len - out, "NAME:"); in dump_lockres()
530 out += stringify_lockname(res->lockname.name, res->lockname.len, in dump_lockres()
531 buf + out, len - out); in dump_lockres()
532 out += snprintf(buf + out, len - out, "\n"); in dump_lockres()
535 out += snprintf(buf + out, len - out, in dump_lockres()
547 out += snprintf(buf + out, len - out, "RMAP:"); in dump_lockres()
549 buf + out, len - out); in dump_lockres()
550 out += snprintf(buf + out, len - out, "\n"); in dump_lockres()
553 out += snprintf(buf + out, len - out, "LVBX:"); in dump_lockres()
555 out += snprintf(buf + out, len - out, in dump_lockres()
557 out += snprintf(buf + out, len - out, "\n"); in dump_lockres()
561 out += dump_lock(lock, 0, buf + out, len - out); in dump_lockres()
565 out += dump_lock(lock, 1, buf + out, len - out); in dump_lockres()
569 out += dump_lock(lock, 2, buf + out, len - out); in dump_lockres()
571 out += snprintf(buf + out, len - out, "\n"); in dump_lockres()
697 static int debug_state_print(struct dlm_ctxt *dlm, char *buf, int len) in debug_state_print() argument
721 out += snprintf(buf + out, len - out, in debug_state_print()
727 out += snprintf(buf + out, len - out, in debug_state_print()
732 out += snprintf(buf + out, len - out, in debug_state_print()
737 out += snprintf(buf + out, len - out, "Domain Map: "); in debug_state_print()
739 buf + out, len - out); in debug_state_print()
740 out += snprintf(buf + out, len - out, "\n"); in debug_state_print()
743 out += snprintf(buf + out, len - out, "Exit Domain Map: "); in debug_state_print()
745 buf + out, len - out); in debug_state_print()
746 out += snprintf(buf + out, len - out, "\n"); in debug_state_print()
749 out += snprintf(buf + out, len - out, "Live Map: "); in debug_state_print()
751 buf + out, len - out); in debug_state_print()
752 out += snprintf(buf + out, len - out, "\n"); in debug_state_print()
755 out += snprintf(buf + out, len - out, in debug_state_print()
767 out += snprintf(buf + out, len - out, in debug_state_print()
771 out += snprintf(buf + out, len - out, in debug_state_print()
777 out += snprintf(buf + out, len - out, in debug_state_print()
783 out += snprintf(buf + out, len - out, in debug_state_print()
789 out += snprintf(buf + out, len - out, in debug_state_print()
798 out += snprintf(buf + out, len - out, in debug_state_print()
803 out += snprintf(buf + out, len - out, in debug_state_print()
813 out += snprintf(buf + out, len - out, in debug_state_print()
819 out += snprintf(buf + out, len - out, "Recovery Map: "); in debug_state_print()
821 buf + out, len - out); in debug_state_print()
822 out += snprintf(buf + out, len - out, "\n"); in debug_state_print()
825 out += snprintf(buf + out, len - out, "Recovery Node State:\n"); in debug_state_print()
853 out += snprintf(buf + out, len - out, "\t%u - %s\n", in debug_state_print()