summaryrefslogtreecommitdiff
path: root/drivers/base/trace.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-05-17 15:29:46 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-15 17:14:36 +0200
commit09705dcb63d269000595284b5dd7f5c938d647b9 (patch)
treeea54f02454e42ee068b88ee891041574758ae76c /drivers/base/trace.c
parenta7f1d03b6046cf44f1dd702aeaad3b5e4d7b33a5 (diff)
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.c10
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"