diff options
| -rw-r--r-- | arch/arm/include/asm/hardware/coresight.h | 12 | ||||
| -rw-r--r-- | arch/arm/kernel/etm.c | 15 |
2 files changed, 15 insertions, 12 deletions
diff --git a/arch/arm/include/asm/hardware/coresight.h b/arch/arm/include/asm/hardware/coresight.h index 212e47828c79..d84605175fc4 100644 --- a/arch/arm/include/asm/hardware/coresight.h +++ b/arch/arm/include/asm/hardware/coresight.h | |||
| @@ -21,18 +21,6 @@ | |||
| 21 | #define TRACER_RUNNING BIT(TRACER_RUNNING_BIT) | 21 | #define TRACER_RUNNING BIT(TRACER_RUNNING_BIT) |
| 22 | #define TRACER_CYCLE_ACC BIT(TRACER_CYCLE_ACC_BIT) | 22 | #define TRACER_CYCLE_ACC BIT(TRACER_CYCLE_ACC_BIT) |
| 23 | 23 | ||
| 24 | struct tracectx { | ||
| 25 | unsigned int etb_bufsz; | ||
| 26 | void __iomem *etb_regs; | ||
| 27 | void __iomem *etm_regs; | ||
| 28 | unsigned long flags; | ||
| 29 | int ncmppairs; | ||
| 30 | int etm_portsz; | ||
| 31 | struct device *dev; | ||
| 32 | struct clk *emu_clk; | ||
| 33 | struct mutex mutex; | ||
| 34 | }; | ||
| 35 | |||
| 36 | #define TRACER_TIMEOUT 10000 | 24 | #define TRACER_TIMEOUT 10000 |
| 37 | 25 | ||
| 38 | #define etm_writel(t, v, x) \ | 26 | #define etm_writel(t, v, x) \ |
diff --git a/arch/arm/kernel/etm.c b/arch/arm/kernel/etm.c index 33c7077174db..a48d51257988 100644 --- a/arch/arm/kernel/etm.c +++ b/arch/arm/kernel/etm.c | |||
| @@ -30,6 +30,21 @@ | |||
| 30 | MODULE_LICENSE("GPL"); | 30 | MODULE_LICENSE("GPL"); |
| 31 | MODULE_AUTHOR("Alexander Shishkin"); | 31 | MODULE_AUTHOR("Alexander Shishkin"); |
| 32 | 32 | ||
| 33 | /* | ||
| 34 | * ETM tracer state | ||
| 35 | */ | ||
| 36 | struct tracectx { | ||
| 37 | unsigned int etb_bufsz; | ||
| 38 | void __iomem *etb_regs; | ||
| 39 | void __iomem *etm_regs; | ||
| 40 | unsigned long flags; | ||
| 41 | int ncmppairs; | ||
| 42 | int etm_portsz; | ||
| 43 | struct device *dev; | ||
| 44 | struct clk *emu_clk; | ||
| 45 | struct mutex mutex; | ||
| 46 | }; | ||
| 47 | |||
| 33 | static struct tracectx tracer; | 48 | static struct tracectx tracer; |
| 34 | 49 | ||
| 35 | static inline bool trace_isrunning(struct tracectx *t) | 50 | static inline bool trace_isrunning(struct tracectx *t) |
