Print this page
6583 remove whole-process swapping


 857                         char sobj[100];
 858 
 859                         tstate_to_text(cur->se_tstate, cur->se_panic,
 860                             state, sizeof (state));
 861                         sobj_to_text(cur->se_sobj_ops,
 862                             sobj, sizeof (sobj));
 863 
 864                         if (cur == sep)
 865                                 mdb_printf("%-?p %-8s %-?s %8d\n",
 866                                     cur->se_thread, state, sobj, count);
 867                         else
 868                                 mdb_printf("%-?p %-8s %-?s %8s\n",
 869                                     cur->se_thread, state, sobj, "-");
 870 
 871                         cur = only_matching ? cur->se_next : cur->se_dup;
 872                 } while (all && cur != NULL);
 873 
 874                 if (sep->se_failed != 0) {
 875                         char *reason;
 876                         switch (sep->se_failed) {
 877                         case FSI_FAIL_NOTINMEMORY:
 878                                 reason = "thread not in memory";
 879                                 break;
 880                         case FSI_FAIL_THREADCORRUPT:
 881                                 reason = "thread structure stack info corrupt";
 882                                 break;
 883                         case FSI_FAIL_STACKNOTFOUND:
 884                                 reason = "no consistent stack found";
 885                                 break;
 886                         default:
 887                                 reason = "unknown failure";
 888                                 break;
 889                         }
 890                         mdb_printf("%?s <%s>\n", "", reason);
 891                 }
 892 
 893                 for (frame = 0; frame < sep->se_depth; frame++)
 894                         mdb_printf("%?s %a\n", "", sep->se_stack[frame]);
 895                 if (sep->se_overflow)
 896                         mdb_printf("%?s ... truncated ...\n", "");
 897                 mdb_printf("\n");
 898         }
 899 


 857                         char sobj[100];
 858 
 859                         tstate_to_text(cur->se_tstate, cur->se_panic,
 860                             state, sizeof (state));
 861                         sobj_to_text(cur->se_sobj_ops,
 862                             sobj, sizeof (sobj));
 863 
 864                         if (cur == sep)
 865                                 mdb_printf("%-?p %-8s %-?s %8d\n",
 866                                     cur->se_thread, state, sobj, count);
 867                         else
 868                                 mdb_printf("%-?p %-8s %-?s %8s\n",
 869                                     cur->se_thread, state, sobj, "-");
 870 
 871                         cur = only_matching ? cur->se_next : cur->se_dup;
 872                 } while (all && cur != NULL);
 873 
 874                 if (sep->se_failed != 0) {
 875                         char *reason;
 876                         switch (sep->se_failed) {



 877                         case FSI_FAIL_THREADCORRUPT:
 878                                 reason = "thread structure stack info corrupt";
 879                                 break;
 880                         case FSI_FAIL_STACKNOTFOUND:
 881                                 reason = "no consistent stack found";
 882                                 break;
 883                         default:
 884                                 reason = "unknown failure";
 885                                 break;
 886                         }
 887                         mdb_printf("%?s <%s>\n", "", reason);
 888                 }
 889 
 890                 for (frame = 0; frame < sep->se_depth; frame++)
 891                         mdb_printf("%?s %a\n", "", sep->se_stack[frame]);
 892                 if (sep->se_overflow)
 893                         mdb_printf("%?s ... truncated ...\n", "");
 894                 mdb_printf("\n");
 895         }
 896