diff options
| author | Jim Cromie <[email protected]> | 2022-09-04 15:40:50 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-09-07 17:04:49 +0200 |
| commit | 3fc95d80a536e49e38ba4f79ca60cb4e64f99b3b (patch) | |
| tree | f9138e7f36245d5a6e479831942e545ad8e13014 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
| parent | ca90fca7f7b51830dfb95bf655210a1c84588f15 (diff) | |
dyndbg: add __pr_debug_cls for testing
For selftest purposes, add __pr_debug_cls(class, fmt, ...)
I didn't think we'd need to define this, since DRM effectively has it
already in drm_dbg, drm_devdbg. But test_dynamic_debug needs it in
order to demonstrate all the moving parts.
Note the __ prefix; its not intended for general use, at least until a
need emerges. ISTM the drm.debug model (macro wrappers inserting enum
const 1st arg) is the baseline approach.
That said, nouveau might want it for easy use in its debug macros. TBD.
NB: it does require a builtin-constant class, __pr_debug_cls(i++, ...)
is disallowed by compiler.
Signed-off-by: Jim Cromie <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions