[PATCH v4 21/21] dyndbg-doc: add classmap info to howto
jim.cromie at gmail.com
jim.cromie at gmail.com
Fri Jul 14 17:34:37 UTC 2023
On Thu, Jul 13, 2023 at 1:13 PM Randy Dunlap <rdunlap at infradead.org> wrote:
>
>
>
> On 7/13/23 09:36, Jim Cromie wrote:
> > Add some basic info on classmap usage and api
> >
> > Signed-off-by: Jim Cromie <jim.cromie at gmail.com>
> > ---
> > .../admin-guide/dynamic-debug-howto.rst | 64 ++++++++++++++++++-
> > 1 file changed, 63 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/admin-guide/dynamic-debug-howto.rst b/Documentation/admin-guide/dynamic-debug-howto.rst
> > index 8dc668cc1216..878750ce8c1d 100644
> > --- a/Documentation/admin-guide/dynamic-debug-howto.rst
> > +++ b/Documentation/admin-guide/dynamic-debug-howto.rst
>
> > @@ -374,3 +373,66 @@ just a shortcut for ``print_hex_dump(KERN_DEBUG)``.
> > For ``print_hex_dump_debug()``/``print_hex_dump_bytes()``, format string is
> > its ``prefix_str`` argument, if it is constant string; or ``hexdump``
> > in case ``prefix_str`` is built dynamically.
> > +
> > +Dynamic Debug classmaps
> > +=======================
> > +
> > +Dyndbg generally selects *prdbg* callsites using structural info:
> > +module, file, function, line. Using classmaps, user modules can
> > +organize/select pr_debug()s as they like.
> > +
> > +- classes coordinates/spans multiple modules
> > +- complements the mod,file,func attrs
> > +- keeps pr_debug's 0-off-cost JUMP_LABEL goodness
> > +- isolates from other class'd and un-class'd pr_debugs()
> > + (one doesnt mix 2 clients bank accounts)
>
> doesn't
>
thanks Randy,
got this, and the rest.
More information about the dri-devel
mailing list