Loading drivers/coresight/Kconfig +37 −0 Original line number Diff line number Diff line Loading @@ -179,6 +179,15 @@ config CORESIGHT_AUDIO_ETM on audio processor via sysfs by configuring the required CoreSight components. config CORESIGHT_AUDIO_ETM_DEFAULT_ENABLE bool "Turn on audio processor ETM tracing by default" help Turns on CoreSight audio processor ETM tracing by default. Otherwise, tracing is disabled by default but can be enabled via sysfs. If unsure, say 'N' here to avoid potential power and performance penalty. config CORESIGHT_MODEM_ETM bool "Modem processor ETM trace support" help Loading @@ -187,6 +196,15 @@ config CORESIGHT_MODEM_ETM on modem processor via sysfs by configuring the required CoreSight components. config CORESIGHT_MODEM_ETM_DEFAULT_ENABLE bool "Turn on modem processor ETM tracing by default" help Turns on CoreSight modem processor ETM tracing by default. Otherwise, tracing is disabled by default but can be enabled via sysfs. If unsure, say 'N' here to avoid potential power and performance penalty. config CORESIGHT_WCN_ETM bool "Wireless subsystem processor ETM trace support" help Loading @@ -195,6 +213,16 @@ config CORESIGHT_WCN_ETM turning on ETM tracing on wireless subsystem via sysfs by configuring the required CoreSight components. config CORESIGHT_WCN_ETM_DEFAULT_ENABLE bool "Turn on wireless subsystem processor ETM tracing by default" help Turns on CoreSight wireless subsystem processor ETM tracing by default. Otherwise, tracing is disabled by default but can be enabled via sysfs. If unsure, say 'N' here to avoid potential power and performance penalty. config CORESIGHT_RPM_ETM bool "RPM processor ETM trace support" help Loading @@ -203,6 +231,15 @@ config CORESIGHT_RPM_ETM tracing on RPM processor via sysfs by configuring the required CoreSight components. config CORESIGHT_RPM_ETM_DEFAULT_ENABLE bool "Turn on RPM processor ETM tracing by default" help Turns on CoreSight RPM processor ETM tracing by default. Otherwise, tracing is disabled by default but can be enabled via sysfs. If unsure, say 'N' here to avoid potential power and performance penalty. endif config CORESIGHT_QPDI Loading drivers/coresight/coresight-audio-etm.c +12 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,15 @@ #include <linux/coresight.h> #include "coresight-qmi.h" #ifdef CONFIG_CORESIGHT_AUDIO_ETM_DEFAULT_ENABLE static int boot_enable = 1; #else static int boot_enable; #endif module_param_named( boot_enable, boot_enable, int, S_IRUGO ); struct audio_etm_drvdata { struct device *dev; struct coresight_device *csdev; Loading Loading @@ -292,6 +301,9 @@ static int audio_etm_probe(struct platform_device *pdev) goto err1; } dev_info(dev, "Audio ETM initialized\n"); if (boot_enable) coresight_enable(drvdata->csdev); return 0; err1: qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID, Loading drivers/coresight/coresight-modem-etm.c +12 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,15 @@ #include <linux/coresight.h> #include "coresight-qmi.h" #ifdef CONFIG_CORESIGHT_MODEM_ETM_DEFAULT_ENABLE static int boot_enable = 1; #else static int boot_enable; #endif module_param_named( boot_enable, boot_enable, int, S_IRUGO ); struct modem_etm_drvdata { struct device *dev; struct coresight_device *csdev; Loading Loading @@ -292,6 +301,9 @@ static int modem_etm_probe(struct platform_device *pdev) goto err1; } dev_info(dev, "Modem ETM initialized\n"); if (boot_enable) coresight_enable(drvdata->csdev); return 0; err1: qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID, Loading drivers/coresight/coresight-rpm-etm.c +13 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,15 @@ #include <linux/coresight.h> #include "coresight-qmi.h" #ifdef CONFIG_CORESIGHT_RPM_ETM_DEFAULT_ENABLE static int boot_enable = 1; #else static int boot_enable; #endif module_param_named( boot_enable, boot_enable, int, S_IRUGO ); struct rpm_etm_drvdata { struct device *dev; struct coresight_device *csdev; Loading Loading @@ -292,6 +301,10 @@ static int rpm_etm_probe(struct platform_device *pdev) goto err1; } dev_info(dev, "RPM ETM initialized\n"); if (boot_enable) coresight_enable(drvdata->csdev); return 0; err1: qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID, Loading drivers/coresight/coresight-wcn-etm.c +12 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,15 @@ #include <linux/coresight.h> #include "coresight-qmi.h" #ifdef CONFIG_CORESIGHT_WCN_ETM_DEFAULT_ENABLE static int boot_enable = 1; #else static int boot_enable; #endif module_param_named( boot_enable, boot_enable, int, S_IRUGO ); struct wcn_etm_drvdata { struct device *dev; struct coresight_device *csdev; Loading Loading @@ -292,6 +301,9 @@ static int wcn_etm_probe(struct platform_device *pdev) goto err1; } dev_info(dev, "Wireless ETM initialized\n"); if (boot_enable) coresight_enable(drvdata->csdev); return 0; err1: qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID, Loading Loading
drivers/coresight/Kconfig +37 −0 Original line number Diff line number Diff line Loading @@ -179,6 +179,15 @@ config CORESIGHT_AUDIO_ETM on audio processor via sysfs by configuring the required CoreSight components. config CORESIGHT_AUDIO_ETM_DEFAULT_ENABLE bool "Turn on audio processor ETM tracing by default" help Turns on CoreSight audio processor ETM tracing by default. Otherwise, tracing is disabled by default but can be enabled via sysfs. If unsure, say 'N' here to avoid potential power and performance penalty. config CORESIGHT_MODEM_ETM bool "Modem processor ETM trace support" help Loading @@ -187,6 +196,15 @@ config CORESIGHT_MODEM_ETM on modem processor via sysfs by configuring the required CoreSight components. config CORESIGHT_MODEM_ETM_DEFAULT_ENABLE bool "Turn on modem processor ETM tracing by default" help Turns on CoreSight modem processor ETM tracing by default. Otherwise, tracing is disabled by default but can be enabled via sysfs. If unsure, say 'N' here to avoid potential power and performance penalty. config CORESIGHT_WCN_ETM bool "Wireless subsystem processor ETM trace support" help Loading @@ -195,6 +213,16 @@ config CORESIGHT_WCN_ETM turning on ETM tracing on wireless subsystem via sysfs by configuring the required CoreSight components. config CORESIGHT_WCN_ETM_DEFAULT_ENABLE bool "Turn on wireless subsystem processor ETM tracing by default" help Turns on CoreSight wireless subsystem processor ETM tracing by default. Otherwise, tracing is disabled by default but can be enabled via sysfs. If unsure, say 'N' here to avoid potential power and performance penalty. config CORESIGHT_RPM_ETM bool "RPM processor ETM trace support" help Loading @@ -203,6 +231,15 @@ config CORESIGHT_RPM_ETM tracing on RPM processor via sysfs by configuring the required CoreSight components. config CORESIGHT_RPM_ETM_DEFAULT_ENABLE bool "Turn on RPM processor ETM tracing by default" help Turns on CoreSight RPM processor ETM tracing by default. Otherwise, tracing is disabled by default but can be enabled via sysfs. If unsure, say 'N' here to avoid potential power and performance penalty. endif config CORESIGHT_QPDI Loading
drivers/coresight/coresight-audio-etm.c +12 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,15 @@ #include <linux/coresight.h> #include "coresight-qmi.h" #ifdef CONFIG_CORESIGHT_AUDIO_ETM_DEFAULT_ENABLE static int boot_enable = 1; #else static int boot_enable; #endif module_param_named( boot_enable, boot_enable, int, S_IRUGO ); struct audio_etm_drvdata { struct device *dev; struct coresight_device *csdev; Loading Loading @@ -292,6 +301,9 @@ static int audio_etm_probe(struct platform_device *pdev) goto err1; } dev_info(dev, "Audio ETM initialized\n"); if (boot_enable) coresight_enable(drvdata->csdev); return 0; err1: qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID, Loading
drivers/coresight/coresight-modem-etm.c +12 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,15 @@ #include <linux/coresight.h> #include "coresight-qmi.h" #ifdef CONFIG_CORESIGHT_MODEM_ETM_DEFAULT_ENABLE static int boot_enable = 1; #else static int boot_enable; #endif module_param_named( boot_enable, boot_enable, int, S_IRUGO ); struct modem_etm_drvdata { struct device *dev; struct coresight_device *csdev; Loading Loading @@ -292,6 +301,9 @@ static int modem_etm_probe(struct platform_device *pdev) goto err1; } dev_info(dev, "Modem ETM initialized\n"); if (boot_enable) coresight_enable(drvdata->csdev); return 0; err1: qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID, Loading
drivers/coresight/coresight-rpm-etm.c +13 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,15 @@ #include <linux/coresight.h> #include "coresight-qmi.h" #ifdef CONFIG_CORESIGHT_RPM_ETM_DEFAULT_ENABLE static int boot_enable = 1; #else static int boot_enable; #endif module_param_named( boot_enable, boot_enable, int, S_IRUGO ); struct rpm_etm_drvdata { struct device *dev; struct coresight_device *csdev; Loading Loading @@ -292,6 +301,10 @@ static int rpm_etm_probe(struct platform_device *pdev) goto err1; } dev_info(dev, "RPM ETM initialized\n"); if (boot_enable) coresight_enable(drvdata->csdev); return 0; err1: qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID, Loading
drivers/coresight/coresight-wcn-etm.c +12 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,15 @@ #include <linux/coresight.h> #include "coresight-qmi.h" #ifdef CONFIG_CORESIGHT_WCN_ETM_DEFAULT_ENABLE static int boot_enable = 1; #else static int boot_enable; #endif module_param_named( boot_enable, boot_enable, int, S_IRUGO ); struct wcn_etm_drvdata { struct device *dev; struct coresight_device *csdev; Loading Loading @@ -292,6 +301,9 @@ static int wcn_etm_probe(struct platform_device *pdev) goto err1; } dev_info(dev, "Wireless ETM initialized\n"); if (boot_enable) coresight_enable(drvdata->csdev); return 0; err1: qmi_svc_event_notifier_unregister(CORESIGHT_QMI_SVC_ID, Loading