summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2022-05-07 01:54:08 +0300
committerHans de Goede <hdegoede@redhat.com>2022-05-12 16:35:29 +0300
commit51af802fc05152e84727a4293ccaa7e7e1b64d7e (patch)
treee91d043ead3ecfeda7943e6e2ee9ac0ee8a830b2 /drivers/platform
parent6f33a92b92f9cc37f31137cd5a2060ec714d486b (diff)
downloadlinux-51af802fc05152e84727a4293ccaa7e7e1b64d7e.tar.xz
trace: platform/x86/intel/ifs: Add trace point to track Intel IFS operations
Add tracing support which may be useful for debugging systems that fail to complete In Field Scan tests. Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20220506225410.1652287-11-tony.luck@intel.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel/ifs/runtest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel/ifs/runtest.c b/drivers/platform/x86/intel/ifs/runtest.c
index 7efcce35e0e9..b2ca2bb4501f 100644
--- a/drivers/platform/x86/intel/ifs/runtest.c
+++ b/drivers/platform/x86/intel/ifs/runtest.c
@@ -17,6 +17,9 @@
* core will update results of the test.
*/
+#define CREATE_TRACE_POINTS
+#include <trace/events/intel_ifs.h>
+
/* Max retries on the same chunk */
#define MAX_IFS_RETRIES 5
@@ -191,6 +194,8 @@ static void ifs_test_core(int cpu, struct device *dev)
status.data = msrvals[1];
+ trace_ifs_status(cpu, activate, status);
+
/* Some cases can be retried, give up for others */
if (!can_restart(status))
break;