diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-17 14:29:46 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-15 17:14:36 +0200 |
commit | 09705dcb63d269000595284b5dd7f5c938d647b9 (patch) | |
tree | ea54f02454e42ee068b88ee891041574758ae76c /drivers/base/Makefile | |
parent | devres: No need to call remove_nodes() when there none present (diff) | |
download | linux-09705dcb63d269000595284b5dd7f5c938d647b9.tar.xz linux-09705dcb63d269000595284b5dd7f5c938d647b9.zip |
devres: Enable trace events
In some cases the printf() mechanism is too heavy and can't be used.
For example, when debugging a race condition involving devres API.
When CONFIG_DEBUG_DEVRES is enabled I can't reproduce an issue, and
otherwise it's quite visible with a useful information being collected.
Enable trace events for devres part of the driver core.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210517122946.53161-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/Makefile')
-rw-r--r-- | drivers/base/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/Makefile b/drivers/base/Makefile index 8b93a7f291ec..ef8e44a7d288 100644 --- a/drivers/base/Makefile +++ b/drivers/base/Makefile @@ -30,3 +30,6 @@ obj-y += test/ ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG +# define_trace.h needs to know how to find our header +CFLAGS_trace.o := -I$(src) +obj-$(CONFIG_TRACING) += trace.o |