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


   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  23  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright (c) 2012 Joyent, Inc. All rights reserved.
  25  */
  26 
  27 #include <mdb/mdb_param.h>
  28 #include <mdb/mdb_modapi.h>
  29 #include <mdb/mdb_ks.h>
  30 #include <mdb/mdb_ctf.h>
  31 
  32 #include <sys/types.h>
  33 #include <sys/thread.h>
  34 #include <sys/session.h>
  35 #include <sys/user.h>
  36 #include <sys/proc.h>
  37 #include <sys/var.h>
  38 #include <sys/t_lock.h>
  39 #include <sys/callo.h>
  40 #include <sys/priocntl.h>
  41 #include <sys/class.h>
  42 #include <sys/regset.h>
  43 #include <sys/stack.h>
  44 #include <sys/cpuvar.h>


  54 #include <sys/sysconf.h>
  55 #include <sys/task.h>
  56 #include <sys/project.h>
  57 #include <sys/errorq_impl.h>
  58 #include <sys/cred_impl.h>
  59 #include <sys/zone.h>
  60 #include <sys/panic.h>
  61 #include <regex.h>
  62 #include <sys/port_impl.h>
  63 
  64 #include "avl.h"
  65 #include "bio.h"
  66 #include "bitset.h"
  67 #include "combined.h"
  68 #include "contract.h"
  69 #include "cpupart_mdb.h"
  70 #include "cred.h"
  71 #include "ctxop.h"
  72 #include "cyclic.h"
  73 #include "damap.h"

  74 #include "devinfo.h"
  75 #include "findstack.h"
  76 #include "fm.h"
  77 #include "group.h"
  78 #include "irm.h"
  79 #include "kgrep.h"
  80 #include "kmem.h"
  81 #include "ldi.h"
  82 #include "leaky.h"
  83 #include "lgrp.h"
  84 #include "list.h"
  85 #include "log.h"
  86 #include "mdi.h"
  87 #include "memory.h"
  88 #include "mmd.h"
  89 #include "modhash.h"
  90 #include "ndievents.h"
  91 #include "net.h"
  92 #include "netstack.h"
  93 #include "nvpair.h"


3865 
3866         /* from cpupart.c */
3867         { "cpupart", "?[-v]", "print cpu partition info", cpupart },
3868 
3869         /* from cred.c */
3870         { "cred", ":[-v]", "display a credential", cmd_cred },
3871         { "credgrp", ":[-v]", "display cred_t groups", cmd_credgrp },
3872         { "credsid", ":[-v]", "display a credsid_t", cmd_credsid },
3873         { "ksidlist", ":[-v]", "display a ksidlist_t", cmd_ksidlist },
3874 
3875         /* from cyclic.c */
3876         { "cyccover", NULL, "dump cyclic coverage information", cyccover },
3877         { "cycid", "?", "dump a cyclic id", cycid },
3878         { "cycinfo", "?", "dump cyc_cpu info", cycinfo },
3879         { "cyclic", ":", "developer information", cyclic },
3880         { "cyctrace", "?", "dump cyclic trace buffer", cyctrace },
3881 
3882         /* from damap.c */
3883         { "damap", ":", "display a damap_t", damap, damap_help },
3884 



3885         /* from devinfo.c */
3886         { "devbindings", "?[-qs] [device-name | major-num]",
3887             "print devinfo nodes bound to device-name or major-num",
3888             devbindings, devinfo_help },
3889         { "devinfo", ":[-qs]", "detailed devinfo of one node", devinfo,
3890             devinfo_help },
3891         { "devinfo_audit", ":[-v]", "devinfo configuration audit record",
3892             devinfo_audit },
3893         { "devinfo_audit_log", "?[-v]", "system wide devinfo configuration log",
3894             devinfo_audit_log },
3895         { "devinfo_audit_node", ":[-v]", "devinfo node configuration history",
3896             devinfo_audit_node },
3897         { "devinfo2driver", ":", "find driver name for this devinfo node",
3898             devinfo2driver },
3899         { "devnames", "?[-vm] [num]", "print devnames array", devnames },
3900         { "dev2major", "?<dev_t>", "convert dev_t to a major number",
3901             dev2major },
3902         { "dev2minor", "?<dev_t>", "convert dev_t to a minor number",
3903             dev2minor },
3904         { "devt", "?<dev_t>", "display a dev_t's major and minor numbers",




   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  23  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright (c) 2013 Joyent, Inc. All rights reserved.
  25  */
  26 
  27 #include <mdb/mdb_param.h>
  28 #include <mdb/mdb_modapi.h>
  29 #include <mdb/mdb_ks.h>
  30 #include <mdb/mdb_ctf.h>
  31 
  32 #include <sys/types.h>
  33 #include <sys/thread.h>
  34 #include <sys/session.h>
  35 #include <sys/user.h>
  36 #include <sys/proc.h>
  37 #include <sys/var.h>
  38 #include <sys/t_lock.h>
  39 #include <sys/callo.h>
  40 #include <sys/priocntl.h>
  41 #include <sys/class.h>
  42 #include <sys/regset.h>
  43 #include <sys/stack.h>
  44 #include <sys/cpuvar.h>


  54 #include <sys/sysconf.h>
  55 #include <sys/task.h>
  56 #include <sys/project.h>
  57 #include <sys/errorq_impl.h>
  58 #include <sys/cred_impl.h>
  59 #include <sys/zone.h>
  60 #include <sys/panic.h>
  61 #include <regex.h>
  62 #include <sys/port_impl.h>
  63 
  64 #include "avl.h"
  65 #include "bio.h"
  66 #include "bitset.h"
  67 #include "combined.h"
  68 #include "contract.h"
  69 #include "cpupart_mdb.h"
  70 #include "cred.h"
  71 #include "ctxop.h"
  72 #include "cyclic.h"
  73 #include "damap.h"
  74 #include "ddi_periodic.h"
  75 #include "devinfo.h"
  76 #include "findstack.h"
  77 #include "fm.h"
  78 #include "group.h"
  79 #include "irm.h"
  80 #include "kgrep.h"
  81 #include "kmem.h"
  82 #include "ldi.h"
  83 #include "leaky.h"
  84 #include "lgrp.h"
  85 #include "list.h"
  86 #include "log.h"
  87 #include "mdi.h"
  88 #include "memory.h"
  89 #include "mmd.h"
  90 #include "modhash.h"
  91 #include "ndievents.h"
  92 #include "net.h"
  93 #include "netstack.h"
  94 #include "nvpair.h"


3866 
3867         /* from cpupart.c */
3868         { "cpupart", "?[-v]", "print cpu partition info", cpupart },
3869 
3870         /* from cred.c */
3871         { "cred", ":[-v]", "display a credential", cmd_cred },
3872         { "credgrp", ":[-v]", "display cred_t groups", cmd_credgrp },
3873         { "credsid", ":[-v]", "display a credsid_t", cmd_credsid },
3874         { "ksidlist", ":[-v]", "display a ksidlist_t", cmd_ksidlist },
3875 
3876         /* from cyclic.c */
3877         { "cyccover", NULL, "dump cyclic coverage information", cyccover },
3878         { "cycid", "?", "dump a cyclic id", cycid },
3879         { "cycinfo", "?", "dump cyc_cpu info", cycinfo },
3880         { "cyclic", ":", "developer information", cyclic },
3881         { "cyctrace", "?", "dump cyclic trace buffer", cyctrace },
3882 
3883         /* from damap.c */
3884         { "damap", ":", "display a damap_t", damap, damap_help },
3885 
3886         /* from ddi_periodic.c */
3887         { "ddi_periodic", "?[-v]", "dump ddi_periodic_impl_t info", dprinfo },
3888 
3889         /* from devinfo.c */
3890         { "devbindings", "?[-qs] [device-name | major-num]",
3891             "print devinfo nodes bound to device-name or major-num",
3892             devbindings, devinfo_help },
3893         { "devinfo", ":[-qs]", "detailed devinfo of one node", devinfo,
3894             devinfo_help },
3895         { "devinfo_audit", ":[-v]", "devinfo configuration audit record",
3896             devinfo_audit },
3897         { "devinfo_audit_log", "?[-v]", "system wide devinfo configuration log",
3898             devinfo_audit_log },
3899         { "devinfo_audit_node", ":[-v]", "devinfo node configuration history",
3900             devinfo_audit_node },
3901         { "devinfo2driver", ":", "find driver name for this devinfo node",
3902             devinfo2driver },
3903         { "devnames", "?[-vm] [num]", "print devnames array", devnames },
3904         { "dev2major", "?<dev_t>", "convert dev_t to a major number",
3905             dev2major },
3906         { "dev2minor", "?<dev_t>", "convert dev_t to a minor number",
3907             dev2minor },
3908         { "devt", "?<dev_t>", "display a dev_t's major and minor numbers",