From 45fbff65b1213333f0999e4b93e9b08b46a2386a Mon Sep 17 00:00:00 2001 From: Luis Gerhorst <luis.gerhorst@fau.de> Date: Tue, 10 Jul 2018 16:41:45 +0200 Subject: [PATCH] ifdef around pmccntr struct / read --- include/linux/measuremore.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/measuremore.h b/include/linux/measuremore.h index 6b6546b..18f2a12 100644 --- a/include/linux/measuremore.h +++ b/include/linux/measuremore.h @@ -3,6 +3,8 @@ #include <linux/debugfs.h> +#ifdef CONFIG_MEASUREMORE_TIMESTAMP_TYPE_PMCCNTR + struct pmccntr_timestamp { volatile uint32_t value; /* Additional information such as overflow counter could go here if @@ -15,6 +17,8 @@ struct pmccntr_timestamp { #define pmccntr_read(var) \ asm volatile ("mrc p15, 0, %0, c9, c13, 0\n\t" : "=r" (var)) +#endif /* CONFIG_MEASUREMORE_TIMESTAMP_TYPE_PMCCNTR */ + struct checkpoint_record { const char *name; #ifdef CONFIG_MEASUREMORE_TIMESTAMP_TYPE_PMCCNTR -- GitLab