Print this page
OS-2366 ddi_periodic_add(9F) is entirely rubbish (MORE)

@@ -13,11 +13,11 @@
  */
 
 #include "ddi_periodic.h"
 
 #include <mdb/mdb_modapi.h>
-#include <sys/ddi_timer.h>
+#include <sys/ddi_periodic.h>
 #include <sys/sysmacros.h>
 #include <stdio.h>
 
 /*ARGSUSED*/
 int

@@ -47,12 +47,12 @@
 
         if (DCMD_HDRSPEC(flags)) {
                 mdb_printf("%16s %4s %3s %5s %5s %12s %s\n", "ADDR", "ID",
                     "LVL", "FLAGS", "MS", "FIRE_COUNT", "HANDLER");
                 if (verbose) {
-                        mdb_printf("%33s %16s %s\n", "", "CYCLIC_ID",
-                            "ARGUMENT");
+                        mdb_printf("%16s %16s %16s %s\n", "", "THREAD",
+                            "CYCLIC_ID", "ARGUMENT");
                 }
         }
 
         prflags[0] = dpr.dpr_flags & DPF_DISPATCHED ? 'D' : '-';
         prflags[1] = dpr.dpr_flags & DPF_EXECUTING ? 'X' : '-';

@@ -61,11 +61,11 @@
 
         mdb_printf("%16p %4x %3d %5s %5d %12x %a\n", addr, dpr.dpr_id,
             dpr.dpr_level, prflags, (int)(dpr.dpr_interval / 1000000),
             dpr.dpr_fire_count, dpr.dpr_handler);
         if (verbose) {
-                mdb_printf("%33s %16p %a\n", "", dpr.dpr_cyclic_id,
-                    dpr.dpr_arg);
+                mdb_printf("%16s %16p %16p %a\n", "", dpr.dpr_thread,
+                    dpr.dpr_cyclic_id, dpr.dpr_arg);
         }
 
         return (DCMD_OK);
 }