Re: [PATCH] 9p: remove CONFIG_NET_9P_DEBUG option

From: Eric Van Hensbergen
Date: Wed Aug 10 2011 - 08:25:23 EST


On Wed, Aug 10, 2011 at 4:13 AM, Aneesh Kumar K.V
<aneesh.kumar@xxxxxxxxxxxxxxxxxx> wrote:
>
> On Mon,  1 Aug 2011 07:14:44 -0500, Alex Ray <alexjray.ncsu@xxxxxxxxx> wrote:
>> Remove the CONFIG_NET_9P_DEBUG option, used to completely remove logging
>> functionality from v9fs.  Logging is (already) controlled with the
>> run-time debug= option, this gets rid of the compile-time option (which
>> was being misunderstood and misused).
>>
>> Signed-off-by: Alex Ray <ajray@xxxxxxxx>
>
> I see this merged to for-next.  Do we know whether enabling debug always have a
> performance impact ?.
>

No clue, but without any debug it makes it impossible for user's to
generate reasonable bug reports. If I understand the tracepoint
collection facility correctly, it incurs exactly the same overhead as
a DPRINT when the debug mount option is set to 0 (although tracepoints
are much lower overhead when actually collecting). Now, one could
make a case that we have too many DPRINT and need to cut back, but if
that's the case, let's just get around to it and cleanup a bit.

All that being said, I welcome anyone to send me performance with and
without CONFIG_NET_9P_DEBUG turned on to convince me differently.

-eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/