Skip to content
Snippets Groups Projects
Commit f962ae60 authored by Robert Read's avatar Robert Read
Browse files

Update the subsystem and ptldebug arrays to reflect reality. Also add

support for just setting the debug and/or subsystem, which I often use
with -nv so I can see what the hex value of some set of levels is.
parent befc4acd
No related merge requests found
...@@ -85,34 +85,33 @@ ptldebug_names = { ...@@ -85,34 +85,33 @@ ptldebug_names = {
"ha" : (1 << 19), "ha" : (1 << 19),
"rpctrace" : (1 << 20), "rpctrace" : (1 << 20),
"vfstrace" : (1 << 21), "vfstrace" : (1 << 21),
"reada" : (1 << 22),
} }
subsystem_names = { subsystem_names = {
"undefined" : (0 << 24), "undefined" : (1 << 0),
"mdc" : (1 << 24), "mdc" : (1 << 1),
"mds" : (2 << 24), "mds" : (1 << 2),
"osc" : (3 << 24), "osc" : (1 << 3),
"ost" : (4 << 24), "ost" : (1 << 4),
"class" : (5 << 24), "class" : (1 << 5),
"obdfs" : (6 << 24), "log" : (1 << 6),
"llite" : (7 << 24), "llite" : (1 << 7),
"rpc" : (8 << 24), "rpc" : (1 << 8),
"ext2obd" : (9 << 24), "mgmt" : (1 << 9),
"portals" : (10 << 24), "portals" : (1 << 10),
"socknal" : (11 << 24), "socknal" : (1 << 11),
"qswnal" : (12 << 24), "qswnal" : (1 << 12),
"pinger" : (13 << 24), "pinger" : (1 << 13),
"filter" : (14 << 24), "filter" : (1 << 14),
"trace" : (15 << 24), "ptlbd" : (1 << 15),
"echo" : (16 << 24), "echo" : (1 << 16),
"ldlm" : (17 << 24), "ldlm" : (1 << 17),
"lov" : (18 << 24), "lov" : (1 << 18),
"gmnal" : (19 << 24), "gmnal" : (1 << 19),
"ptlrouter" : (20 << 24), "ptlrouter" : (1 << 20),
"cobd" : (21 << 24), "cobd" : (1 << 21),
"ptlbd" : (22 << 24), "ibnal" : (1 << 22),
"log" : (23 << 24),
"mgmt" : (24 << 24),
} }
...@@ -2547,6 +2546,10 @@ def main(): ...@@ -2547,6 +2546,10 @@ def main():
panic("--ldapurl requires --config name") panic("--ldapurl requires --config name")
dn = "config=%s,fs=lustre" % (config.config) dn = "config=%s,fs=lustre" % (config.config)
db = Lustre.LustreDB_LDAP('', {}, base=dn, url = config.ldapurl) db = Lustre.LustreDB_LDAP('', {}, base=dn, url = config.ldapurl)
elif config.ptldebug or config.subsystem:
sys_set_ptldebug(None)
sys_set_subsystem(None)
sys.exit(0)
else: else:
print 'Missing config file or ldap URL.' print 'Missing config file or ldap URL.'
print 'see lconf --help for command summary' print 'see lconf --help for command summary'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment