Merge remote-tracking branch 'char-misc/char-misc-next'
[deliverable/linux.git] / drivers / hwtracing / coresight / coresight-etm-perf.h
index 87f5a134eb6f6b1cf0e540e78fd19fdcc7adc95d..3ffc9feb2d646e17f4304e2f53bae4976778be5c 100644 (file)
 #ifndef _CORESIGHT_ETM_PERF_H
 #define _CORESIGHT_ETM_PERF_H
 
+#include "coresight-priv.h"
+
 struct coresight_device;
 
+/*
+ * In both ETMv3 and v4 the maximum number of address comparator implentable
+ * is 8.  The actual number is implementation specific and will be checked
+ * when filters are applied.
+ */
+#define ETM_ADDR_CMP_MAX       8
+
+/**
+ * struct etm_filter - single instruction range or start/stop configuration.
+ * @start_addr:        The address to start tracing on.
+ * @stop_addr: The address to stop tracing on.
+ * @type:      Is this a range or start/stop filter.
+ */
+struct etm_filter {
+       unsigned long start_addr;
+       unsigned long stop_addr;
+       enum etm_addr_type type;
+};
+
+/**
+ * struct etm_filters - set of filters for a session
+ * @etm_filter:        All the filters for this session.
+ * @nr_filters:        Number of filters
+ * @ssstatus:  Status of the start/stop logic.
+ */
+struct etm_filters {
+       struct etm_filter       etm_filter[ETM_ADDR_CMP_MAX];
+       unsigned int            nr_filters;
+       bool                    ssstatus;
+};
+
+
 #ifdef CONFIG_CORESIGHT
 int etm_perf_symlink(struct coresight_device *csdev, bool link);
 
This page took 0.027397 seconds and 5 git commands to generate.