]> git.baikalelectronics.ru Git - kernel.git/commit
devres: Enable trace events
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 May 2021 12:29:46 +0000 (15:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 15:14:36 +0000 (17:14 +0200)
commitcdef57bc9ed93676fdac928b74f708ef479daec9
treeea54f02454e42ee068b88ee891041574758ae76c
parent49bf51664a036bc677dcf0242088ac18bd5a0e3a
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>
drivers/base/Makefile
drivers/base/devres.c
drivers/base/trace.c [new file with mode: 0644]
drivers/base/trace.h [new file with mode: 0644]
include/linux/device.h