open-src/xserver/xorg/sun-src/os/solaris/mdb/modules/mdb_module.c
changeset 1265 0b5cc5c013e4
parent 943 294f64612d23
equal deleted inserted replaced
1264:a3323e4f263f 1265:0b5cc5c013e4
     1 /*
     1 /*
     2  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
     3  *
     3  *
     4  * Permission is hereby granted, free of charge, to any person obtaining a
     4  * Permission is hereby granted, free of charge, to any person obtaining a
     5  * copy of this software and associated documentation files (the "Software"),
     5  * copy of this software and associated documentation files (the "Software"),
     6  * to deal in the Software without restriction, including without limitation
     6  * to deal in the Software without restriction, including without limitation
     7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
     7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
    32  * describing our walkers, and a function named _mdb_init to return a pointer
    32  * describing our walkers, and a function named _mdb_init to return a pointer
    33  * to our module information.
    33  * to our module information.
    34  */
    34  */
    35 
    35 
    36 static const mdb_dcmd_t dcmds[] = {
    36 static const mdb_dcmd_t dcmds[] = {
    37 	{ "client_pids", NULL, "client process list", client_pids },
    37 	{ "client_pids", "?[-w]", "client process list",
    38 	{ "inputdev_grabs", NULL, "inputdev grab list", inputdev_grabs },
    38 	  client_pids, client_pids_help },
       
    39 	{ "inputdev_grabs", "?", "inputdev grab list",
       
    40 	  inputdev_grabs, inputdev_grabs_help },
    39 	{ NULL }
    41 	{ NULL }
    40 };
    42 };
    41 
    43 
    42 static const mdb_walker_t walkers[] = {
    44 static const mdb_walker_t walkers[] = {
    43 	{ "client_walk", "walk list of clients connected to X server",
    45 	{ "client_walk", "walk list of clients connected to X server",