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/trace.c | |
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/trace.c')
-rw-r--r-- | drivers/base/trace.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/base/trace.c b/drivers/base/trace.c new file mode 100644 index 000000000000..b24b0a309c4a --- /dev/null +++ b/drivers/base/trace.c @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Device core Trace Support + * Copyright (C) 2021, Intel Corporation + * + * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> + */ + +#define CREATE_TRACE_POINTS +#include "trace.h" |