Loading drivers/hwtracing/coresight/coresight-etm4x-sysfs.c +9 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,9 @@ static int etm4_set_mode_exclude(struct etmv4_drvdata *drvdata, bool exclude) idx = config->addr_idx; if (idx >= ETM_MAX_SINGLE_ADDR_CMP) return -EINVAL; /* * TRCACATRn.TYPE bit[1:0]: type of comparison * the trace unit performs Loading Loading @@ -955,6 +958,9 @@ static ssize_t addr_range_show(struct device *dev, spin_lock(&drvdata->spinlock); idx = config->addr_idx; if (idx >= ETM_MAX_SINGLE_ADDR_CMP) return -EINVAL; if (idx % 2 != 0) { spin_unlock(&drvdata->spinlock); return -EPERM; Loading Loading @@ -990,6 +996,9 @@ static ssize_t addr_range_store(struct device *dev, spin_lock(&drvdata->spinlock); idx = config->addr_idx; if (idx >= ETM_MAX_SINGLE_ADDR_CMP) return -EINVAL; if (idx % 2 != 0) { spin_unlock(&drvdata->spinlock); return -EPERM; Loading Loading
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c +9 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,9 @@ static int etm4_set_mode_exclude(struct etmv4_drvdata *drvdata, bool exclude) idx = config->addr_idx; if (idx >= ETM_MAX_SINGLE_ADDR_CMP) return -EINVAL; /* * TRCACATRn.TYPE bit[1:0]: type of comparison * the trace unit performs Loading Loading @@ -955,6 +958,9 @@ static ssize_t addr_range_show(struct device *dev, spin_lock(&drvdata->spinlock); idx = config->addr_idx; if (idx >= ETM_MAX_SINGLE_ADDR_CMP) return -EINVAL; if (idx % 2 != 0) { spin_unlock(&drvdata->spinlock); return -EPERM; Loading Loading @@ -990,6 +996,9 @@ static ssize_t addr_range_store(struct device *dev, spin_lock(&drvdata->spinlock); idx = config->addr_idx; if (idx >= ETM_MAX_SINGLE_ADDR_CMP) return -EINVAL; if (idx % 2 != 0) { spin_unlock(&drvdata->spinlock); return -EPERM; Loading