*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
+ * http://www.gnu.org/licenses/gpl-2.0.html
*
* GPL HEADER END
*/
#include <libcfs/util/ioctl.h>
#include <libcfs/util/param.h>
-#include <libcfs/user-time.h>
#include <libcfs/libcfs_debug.h>
#include <lnet/lnetctl.h>
}
strncpy(filename, argv[1], sizeof(filename));
} else {
- if (snprintf(filename, sizeof(filename), "%s"CFS_TIME_T".%u",
+ if (snprintf(filename, sizeof(filename), "%s%lu.%u",
LIBCFS_DEBUG_FILE_PATH_DEFAULT, time(NULL),
getpid())
>= sizeof(filename)) {
static struct mod_paths {
char *name, *path;
} mod_paths[] = {
- { "libcfs", "libcfs/libcfs" },
- { "lnet", "lnet/lnet" },
- { "ko2iblnd", "lnet/klnds/o2iblnd" },
- { "kgnilnd", "lnet/klnds/gnilnd"},
- { "ksocklnd", "lnet/klnds/socklnd" },
- { "obdclass", "lustre/obdclass" },
- { "llog_test", "lustre/obdclass" },
- { "ptlrpc_gss", "lustre/ptlrpc/gss" },
- { "ptlrpc", "lustre/ptlrpc" },
- { "gks", "lustre/sec/gks" },
- { "gkc", "lustre/sec/gks" },
- { "ost", "lustre/ost" },
- { "osc", "lustre/osc" },
- { "mds", "lustre/mds" },
- { "mdc", "lustre/mdc" },
- { "lustre", "lustre/llite" },
- { "llite_lloop", "lustre/llite" },
- { "ldiskfs", "ldiskfs" },
- { "obdecho", "lustre/obdecho" },
- { "ldlm", "lustre/ldlm" },
- { "obdfilter", "lustre/obdfilter" },
- { "lov", "lustre/lov" },
- { "lmv", "lustre/lmv" },
- { "lquota", "lustre/quota" },
- { "mgs", "lustre/mgs" },
- { "mgc", "lustre/mgc" },
- { "mdt", "lustre/mdt" },
- { "mdd", "lustre/mdd" },
- { "osd", "lustre/osd" },
- { "cmm", "lustre/cmm" },
- {"fid", "lustre/fid"},
- {"fld", "lustre/fld"},
- {"lod", "lustre/lod"},
- {"osp", "lustre/osp"},
- { "lfsck", "lustre/lfsck" },
- {NULL, NULL}
+ { .name = "libcfs", .path = "libcfs/libcfs" },
+ { .name = "lnet", .path = "lnet/lnet" },
+ { .name = "ko2iblnd", .path = "lnet/klnds/o2iblnd" },
+ { .name = "kgnilnd", .path = "lnet/klnds/gnilnd"},
+ { .name = "ksocklnd", .path = "lnet/klnds/socklnd" },
+ { .name = "obdclass", .path = "lustre/obdclass" },
+ { .name = "llog_test", .path = "lustre/obdclass" },
+ { .name = "ptlrpc_gss", .path = "lustre/ptlrpc/gss" },
+ { .name = "ptlrpc", .path = "lustre/ptlrpc" },
+ { .name = "gks", .path = "lustre/sec/gks" },
+ { .name = "gkc", .path = "lustre/sec/gks" },
+ { .name = "ost", .path = "lustre/ost" },
+ { .name = "osc", .path = "lustre/osc" },
+ { .name = "mds", .path = "lustre/mds" },
+ { .name = "mdc", .path = "lustre/mdc" },
+ { .name = "lustre", .path = "lustre/llite" },
+ { .name = "ldiskfs", .path = "ldiskfs" },
+ { .name = "obdecho", .path = "lustre/obdecho" },
+ { .name = "ldlm", .path = "lustre/ldlm" },
+ { .name = "obdfilter", .path = "lustre/obdfilter" },
+ { .name = "lov", .path = "lustre/lov" },
+ { .name = "lmv", .path = "lustre/lmv" },
+ { .name = "lquota", .path = "lustre/quota" },
+ { .name = "mgs", .path = "lustre/mgs" },
+ { .name = "mgc", .path = "lustre/mgc" },
+ { .name = "mdt", .path = "lustre/mdt" },
+ { .name = "mdd", .path = "lustre/mdd" },
+ { .name = "osd", .path = "lustre/osd" },
+ { .name = "cmm", .path = "lustre/cmm" },
+ { .name = "fid", .path = "lustre/fid"},
+ { .name = "fld", .path = "lustre/fld"},
+ { .name = "lod", .path = "lustre/lod"},
+ { .name = "osp", .path = "lustre/osp"},
+ { .name = "lfsck", .path = "lustre/lfsck" },
+ { .name = NULL }
};
int jt_dbg_modules(int argc, char **argv)