Re: [PATCH 2/7] dynamic debug v2 - nfs conversion

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <jbaron@...>, <linux-kernel@...>, <joe@...>, <greg@...>, <nick@...>, <randy.dunlap@...>
Date: Tuesday, July 15, 2008 - 7:44 pm

On Tue, 2008-07-15 at 16:24 -0700, Andrew Morton wrote:

Since rpcdebug + the sysctl interface are well established interfaces
that are probably scripted all over the place by administrators who are
using it to as a debugging tool, I'd say that any interface breakages
need a managed transition period.

IOW: I'd say that any changes are going to need a transition period
where a compatibility mode can be compiled in and where both interfaces
work. It doesn't have to be too sophisticated, perhaps just something
along the lines of

+#  define ifdebug(fac)          if (dynamic_dbg_enabled(TYPE_FLAG,   \
+                                                       RPCDBG_##fac,\
+                                                       rpc_debug) || \
+					unlikely(rpc_debug & RPCDBG_##fac))
+# define dfprintk(fac, args...) do { ifdebug(fac) printk(args); } while(0)

So that scripts can choose either interface, and still continue to operate.
Please also note the 'special' command

	echo "n" >/proc/sys/sunrpc/rpc_debug

(where "n" is an integer) which always triggers a listing of the
currently executing rpc calls (see net/sunrpc/sysctl.c:proc_dodebug())
in addition to enabling/disabling debugging.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/7] dynamic debug v2 - nfs conversion, Jason Baron, (Tue Jul 15, 5:32 pm)
Re: [PATCH 2/7] dynamic debug v2 - nfs conversion, Trond Myklebust, (Tue Jul 15, 6:30 pm)
Re: [PATCH 2/7] dynamic debug v2 - nfs conversion, Andrew Morton, (Tue Jul 15, 6:43 pm)
Re: [PATCH 2/7] dynamic debug v2 - nfs conversion, Trond Myklebust, (Tue Jul 15, 6:56 pm)
Re: [PATCH 2/7] dynamic debug v2 - nfs conversion, Trond Myklebust, (Tue Jul 15, 7:15 pm)
Re: [PATCH 2/7] dynamic debug v2 - nfs conversion, Andrew Morton, (Tue Jul 15, 7:24 pm)
Re: [PATCH 2/7] dynamic debug v2 - nfs conversion, Trond Myklebust, (Tue Jul 15, 7:44 pm)
Re: [PATCH 2/7] dynamic debug v2 - nfs conversion, Jason Baron, (Wed Jul 16, 3:58 pm)
Re: [PATCH 2/7] dynamic debug v2 - nfs conversion, Andrew Morton, (Tue Jul 15, 7:08 pm)