Print this page
LOCAL: mpt_sas target should show enclosure/slot IDs


 269                 mdb_warn("couldn't read hashdata");
 270                 return (NULL);
 271         }
 272         return (ret);
 273 }
 274 void
 275 display_targets(struct mptsas_slots *s)
 276 {
 277         mptsas_target_t *ptgt;
 278         mptsas_smp_t *psmp;
 279 
 280         mdb_printf("\n");
 281         mdb_printf("The SCSI target information\n");
 282         ptgt = (mptsas_target_t *)hash_traverse(&s->m_tgttbl,
 283             MPTSAS_HASH_FIRST, sizeof (mptsas_target_t));
 284         while (ptgt != NULL) {
 285                 mdb_printf("\n");
 286                 mdb_printf("devhdl %x, sasaddress %"PRIx64", phymask %x,"
 287                     "devinfo %x\n", ptgt->m_devhdl, ptgt->m_sas_wwn,
 288                     ptgt->m_phymask, ptgt->m_deviceinfo);
 289                 mdb_printf("throttle %x, dr_flag %x, m_t_ncmds %x\n",
 290                     ptgt->m_t_throttle, ptgt->m_dr_flag, ptgt->m_t_ncmds);


 291 
 292                 mdb_free(ptgt, sizeof (mptsas_target_t));
 293                 ptgt = (mptsas_target_t *)hash_traverse(
 294                     &s->m_tgttbl, MPTSAS_HASH_NEXT, sizeof (mptsas_target_t));
 295         }
 296         mdb_printf("\n");
 297         mdb_printf("The smp child information\n");
 298         psmp = (mptsas_smp_t *)hash_traverse(&s->m_smptbl,
 299             MPTSAS_HASH_FIRST, sizeof (mptsas_smp_t));
 300         while (psmp != NULL) {
 301                 mdb_printf("\n");
 302                 mdb_printf("devhdl %x, sasaddress %"PRIx64", phymask %x \n",
 303                     psmp->m_devhdl, psmp->m_sasaddr, psmp->m_phymask);
 304 
 305                 mdb_free(psmp, sizeof (mptsas_smp_t));
 306                 psmp = (mptsas_smp_t *)hash_traverse(
 307                     &s->m_smptbl, MPTSAS_HASH_NEXT, sizeof (mptsas_smp_t));
 308         }
 309         mdb_printf("\n");
 310 #if 0




 269                 mdb_warn("couldn't read hashdata");
 270                 return (NULL);
 271         }
 272         return (ret);
 273 }
 274 void
 275 display_targets(struct mptsas_slots *s)
 276 {
 277         mptsas_target_t *ptgt;
 278         mptsas_smp_t *psmp;
 279 
 280         mdb_printf("\n");
 281         mdb_printf("The SCSI target information\n");
 282         ptgt = (mptsas_target_t *)hash_traverse(&s->m_tgttbl,
 283             MPTSAS_HASH_FIRST, sizeof (mptsas_target_t));
 284         while (ptgt != NULL) {
 285                 mdb_printf("\n");
 286                 mdb_printf("devhdl %x, sasaddress %"PRIx64", phymask %x,"
 287                     "devinfo %x\n", ptgt->m_devhdl, ptgt->m_sas_wwn,
 288                     ptgt->m_phymask, ptgt->m_deviceinfo);
 289                 mdb_printf("throttle %x, dr_flag %x, m_t_ncmds %x, "
 290                     "enclosure %x, slot_num %x\n", ptgt->m_t_throttle,
 291                     ptgt->m_dr_flag, ptgt->m_t_ncmds, ptgt->m_enclosure,
 292                     ptgt->m_slot_num);
 293 
 294                 mdb_free(ptgt, sizeof (mptsas_target_t));
 295                 ptgt = (mptsas_target_t *)hash_traverse(
 296                     &s->m_tgttbl, MPTSAS_HASH_NEXT, sizeof (mptsas_target_t));
 297         }
 298         mdb_printf("\n");
 299         mdb_printf("The smp child information\n");
 300         psmp = (mptsas_smp_t *)hash_traverse(&s->m_smptbl,
 301             MPTSAS_HASH_FIRST, sizeof (mptsas_smp_t));
 302         while (psmp != NULL) {
 303                 mdb_printf("\n");
 304                 mdb_printf("devhdl %x, sasaddress %"PRIx64", phymask %x \n",
 305                     psmp->m_devhdl, psmp->m_sasaddr, psmp->m_phymask);
 306 
 307                 mdb_free(psmp, sizeof (mptsas_smp_t));
 308                 psmp = (mptsas_smp_t *)hash_traverse(
 309                     &s->m_smptbl, MPTSAS_HASH_NEXT, sizeof (mptsas_smp_t));
 310         }
 311         mdb_printf("\n");
 312 #if 0