Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1271144 > unrolled thread

enable dynamic debug - doubt

Started byMuni Sekhar <munisekharrms@gmail.com>
First post2015-11-17 13:50 +0100
Last post2015-11-19 09:50 +0100
Articles 4 — 3 participants

Back to article view | Back to linux.kernel


Contents

  enable dynamic debug - doubt Muni Sekhar <munisekharrms@gmail.com> - 2015-11-17 13:50 +0100
    Re: enable dynamic debug - doubt Andy Shevchenko <andy.shevchenko@gmail.com> - 2015-11-18 20:20 +0100
    Re: enable dynamic debug - doubt Peter Hurley <peter@hurleysoftware.com> - 2015-11-18 22:10 +0100
      Re: enable dynamic debug - doubt Muni Sekhar <munisekharrms@gmail.com> - 2015-11-19 09:50 +0100

#1271144 — enable dynamic debug - doubt

FromMuni Sekhar <munisekharrms@gmail.com>
Date2015-11-17 13:50 +0100
Subjectenable dynamic debug - doubt
Message-ID<qvNRU-54p-7@gated-at.bofh.it>
[ Please keep me in CC as I'm not subscribed to the list]

 Hello,

The behaviour of dynamic debug prints are controlled via writing to a
control file in the 'debugfs'
filesystem(<debugfs>/dynamic_debug/control).

Here I would like to know what order should the echo(for eg: echo -n
'module sdhci +p' > /sys/kernel/debug/dynamic_debug/control) be
applied in relation to the module load - before or after?


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

[toc] | [next] | [standalone]


#1272488

FromAndy Shevchenko <andy.shevchenko@gmail.com>
Date2015-11-18 20:20 +0100
Message-ID<qwgqR-7b9-7@gated-at.bofh.it>
In reply to#1271144
On Tue, Nov 17, 2015 at 2:40 PM, Muni Sekhar <munisekharrms@gmail.com> wrote:
> [ Please keep me in CC as I'm not subscribed to the list]
>
>  Hello,
>
> The behaviour of dynamic debug prints are controlled via writing to a
> control file in the 'debugfs'
> filesystem(<debugfs>/dynamic_debug/control).
>
> Here I would like to know what order should the echo(for eg: echo -n
> 'module sdhci +p' > /sys/kernel/debug/dynamic_debug/control) be
> applied in relation to the module load - before or after?

Just imagine how debugfs works. It has probes over the code where
*_dbg/debug() prints are used. Those special data structures are kept
in the specific part of the file / kernel. If there is no module, how
will kernel know that there is a portion of such data there?

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

[toc] | [prev] | [next] | [standalone]


#1272578

FromPeter Hurley <peter@hurleysoftware.com>
Date2015-11-18 22:10 +0100
Message-ID<qwi9k-8vZ-27@gated-at.bofh.it>
In reply to#1271144
On 11/17/2015 07:40 AM, Muni Sekhar wrote:
> [ Please keep me in CC as I'm not subscribed to the list]
> 
>  Hello,
> 
> The behaviour of dynamic debug prints are controlled via writing to a
> control file in the 'debugfs'
> filesystem(<debugfs>/dynamic_debug/control).

That's not the only method. You'll want to read
Documentation/dynamic-debug-howto.txt; specifically, "Debug Messages at
Module Initialization Time" for ways to enable dynamic debug messages at
module load time.

Regards,
Peter Hurley

> Here I would like to know what order should the echo(for eg: echo -n
> 'module sdhci +p' > /sys/kernel/debug/dynamic_debug/control) be
> applied in relation to the module load - before or after?


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

[toc] | [prev] | [next] | [standalone]


#1272937

FromMuni Sekhar <munisekharrms@gmail.com>
Date2015-11-19 09:50 +0100
Message-ID<qwt4J-6WM-9@gated-at.bofh.it>
In reply to#1272578
On Thu, Nov 19, 2015 at 2:38 AM, Peter Hurley <peter@hurleysoftware.com> wrote:
>
> On 11/17/2015 07:40 AM, Muni Sekhar wrote:
> > [ Please keep me in CC as I'm not subscribed to the list]
> >
> >  Hello,
> >
> > The behaviour of dynamic debug prints are controlled via writing to a
> > control file in the 'debugfs'
> > filesystem(<debugfs>/dynamic_debug/control).
>
> That's not the only method. You'll want to read
> Documentation/dynamic-debug-howto.txt; specifically, "Debug Messages at
> Module Initialization Time" for ways to enable dynamic debug messages at
> module load time.
>
> Regards,
> Peter Hurley
>
> > Here I would like to know what order should the echo(for eg: echo -n
> > 'module sdhci +p' > /sys/kernel/debug/dynamic_debug/control) be
> > applied in relation to the module load - before or after?
>
>



I just glanced through the Documentation/dynamic-debug-howto.txt and
now I am able to enable "Debug Messages at Module Initialization
Time".

Thanks Peter & Andy for the clarification.


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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web