coresight: etm4x: implementing user/kernel mode tracing
[deliverable/linux.git] / drivers / hwtracing / coresight / coresight-etm4x-sysfs.c
index a996db7ef2fcf97911cf31200181b47fa03ccc5a..0e80ec6684022f265e88f11b0e33fd6d84660d09 100644 (file)
@@ -440,6 +440,9 @@ static ssize_t mode_store(struct device *dev,
        else
                config->vinst_ctrl &= ~BIT(11);
 
+       if (config->mode & (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER))
+               etm4_config_trace_mode(config);
+
        spin_unlock(&drvdata->spinlock);
 
        return size;
This page took 0.02679 seconds and 5 git commands to generate.