Re: [RFC PATCH 26/26] UBIFS: include FS to compilation



Christoph Hellwig wrote:
On Mon, Apr 28, 2008 at 02:23:26PM +0300, Adrian Hunter wrote:
But these don't make much sense to me. Why would you want to be able
to compile out printks at this granularity? Why not enable all of them
when CONFIG_UBIFS_FS_DEBUG is enabled?
Well, its just more convenient for us. If I know the bug is somewhere in
the journal, I enable the journal messages - less flooding. We may
lessen the amount, but it is still handy to have some classes of
prints separate.

We will think how to lessen the amount and granularity of this.

note that this last line was _not_ quoted in my mail.

Christoph Hellwig wrote:
It's everything but convenient :) Please make it one config option to
compile in all debug code and then have a module option to select the
verbosity level at runtime.
Surely that judgement should be made by people who actually debug UBIFS.

You have gone off on a tangent. The original context was discussing the
need for granulated debug messages. I have restored the context above.

I think you haven't read my statement at all. Please look at the quoted
bit above. There is nothing against having different
vebosity/granularity levels, quite to the contrary. I just told you
that a run-time selection of them is everything but convenient and they
should rather be at runtime.

You seem to have mistakenly inferred I was impugning your judgement. That
was not the point.

No, the point was that you didn't read my message and/or assumes just
because I'm not 100% on your line of reasoning I'm against you.

Coming back to your issue of a mount-time option for debug messages. I am
not sure any other file systems do that. In general I would say having to
switch on the debug config option and also change either the kernel command
line or init scripts, seems in fact much less convenient.

It means you can be debug different bits without recompiling which is a
very good thing. Especially if you're debugging moves from one area to
another.

At one stage Artem had set up sysfs entries for UBIFS so that he could change
debugging options via sysfs on the fly, without even unmounting. But he said
he didn't find it that useful and removed it all.

For myself, recompiling UBIFS only takes 25 seconds so changing config options
is not a big deal.

However I have no problem adding a mount option, although I suspect we might
end up being asked to remove it.

I hope to spend some time on UBIFS debug message handling this week. I would
like to be able to control verbosity, but not overcomplicate matters. We plan
to post UBIFS again next week when Artem returns from holiday.
--
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/



Relevant Pages

  • Re: [RFC PATCH 26/26] UBIFS: include FS to compilation
    ... We will think how to lessen the amount and granularity of this. ... compile in all debug code and then have a module option to select the ... switch on your brain and notice that a runtime/boottime switch is always ... that switching on all the debug messages is not exactly ...
    (Linux-Kernel)
  • Re: [RFC PATCH 26/26] UBIFS: include FS to compilation
    ... We will think how to lessen the amount and granularity of this. ... compile in all debug code and then have a module option to select the ... verbosity level at runtime. ... Surely that judgement should be made by people who actually debug UBIFS. ...
    (Linux-Kernel)
  • Re: [RFC PATCH 26/26] UBIFS: include FS to compilation
    ... have 430 separate debug printks sprinkled around in UBIFS. ... As I said, we found it very useful in JFFS2, ... the debug tracing code prints out human-readable ... don't see a good reason why the different logging levels are not ...
    (Linux-Kernel)
  • Re: WinCE boot up
    ... Debug messages are output without intervention from the CE drivers. ... it was possible to sent the debug output to the screen as ... The hardware which I have does not have the serial port, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Unable to get debug message which is in kernel
    ... kernel image on to the target and I have ensured that ARMInit function ... I don't get the debug message " ARMInit done" printed on the ... and I get the debug messages which are in bootloader code but I don't ... I take it that you have no JTAG debugger? ...
    (microsoft.public.windowsce.platbuilder)

Loading