OpenCloudOS-Kernel/drivers/hwtracing/coresight
Kim Phillips 22a550a306 coresight: etm4x: Allow etm4x to be built as a module
Allow to build coresight-etm4x as a module, for ease of development.

- Kconfig becomes a tristate, to allow =m
- append -core to source file name to allow module to
  be called coresight-etm4x by the Makefile
- add an etm4_remove function, for module unload
- add a MODULE_DEVICE_TABLE for autoloading on boot
- delay advertising the per-cpu etmdrvdata
- protect etmdrvdata[] by modifying it on relevant CPU

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Suzuki K Poulose <Suzuki.Poulose@arm.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Russell King <linux@armlinux.org.uk>
Tested-by: Mike Leach <mike.leach@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Kim Phillips <kim.phillips@arm.com>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200928163513.70169-11-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-09-28 19:47:41 +02:00
..
Kconfig coresight: etm4x: Allow etm4x to be built as a module 2020-09-28 19:47:41 +02:00
Makefile coresight: etm4x: Allow etm4x to be built as a module 2020-09-28 19:47:41 +02:00
coresight-catu.c coresight: catu: Use CS_AMBA_ID macro for id table 2020-07-21 15:48:38 +02:00
coresight-catu.h coresight: catu: Cleanup device specific data 2019-06-19 20:29:14 +02:00
coresight-cpu-debug.c coresight: cpu_debug: Define MODULE_DEVICE_TABLE 2020-09-28 19:47:40 +02:00
coresight-cti-platform.c Char/Misc driver patches for 5.8-rc1 2020-06-07 10:59:32 -07:00
coresight-cti-sysfs.c coresight: Include required headers in C files 2020-05-19 16:31:18 +02:00
coresight-cti.c coresight: cti: Write regsiters directly in cti_enable_hw() 2020-09-17 18:46:04 +02:00
coresight-cti.h coresight: Include required headers in C files 2020-05-19 16:31:18 +02:00
coresight-etb10.c coresight: Add coresight prefix to barrier_pkt 2020-09-28 19:47:40 +02:00
coresight-etm-cp14.c coresight: Moving framework and drivers to SPDX identifier 2018-05-14 16:19:59 +02:00
coresight-etm-perf.c coresight: etm: perf: Fix warning caused by etm_setup_aux failure 2020-09-28 19:47:41 +02:00
coresight-etm-perf.h coresight: Use IS_ENABLED for CONFIGs that may be modules 2020-09-28 19:47:40 +02:00
coresight-etm.h coresight: etm: Clean up device specific data 2019-06-19 20:29:14 +02:00
coresight-etm3x-core.c coresight: etm3x: Allow etm3x to be built as a module 2020-09-28 19:47:41 +02:00
coresight-etm3x-sysfs.c coresight: etm: Clean up device specific data 2019-06-19 20:29:14 +02:00
coresight-etm4x-core.c coresight: etm4x: Allow etm4x to be built as a module 2020-09-28 19:47:41 +02:00
coresight-etm4x-sysfs.c coresight: etm4x: Fix mis-usage of nr_resource in sysfs interface 2020-09-17 18:46:05 +02:00
coresight-etm4x.h coresight: etm4x: Fix number of resources check for ETM 4.3 and above 2020-09-17 18:46:05 +02:00
coresight-funnel.c coresight: funnel: Fix missing spin_lock_init() 2019-11-19 19:18:15 +01:00
coresight-platform.c coresight: fix offset by one error in counting ports 2020-09-17 18:46:04 +02:00
coresight-priv.h coresight: Add coresight prefix to barrier_pkt 2020-09-28 19:47:40 +02:00
coresight-replicator.c coresight: replicator: Reset replicator if context is lost 2020-07-21 15:48:38 +02:00
coresight-stm.c coresight: stm: Allow to build coresight-stm as a module 2020-09-28 19:47:40 +02:00
coresight-sysfs.c coresight: Export global symbols 2020-09-28 19:47:40 +02:00
coresight-tmc-etf.c coresight: Add coresight prefix to barrier_pkt 2020-09-28 19:47:40 +02:00
coresight-tmc-etr.c coresight: Export global symbols 2020-09-28 19:47:40 +02:00
coresight-tmc.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
coresight-tmc.h coresight: tmc: Add shutdown callback for TMC ETR 2020-07-21 15:48:39 +02:00
coresight-tpiu.c coresight: Use platform agnostic names 2019-06-20 07:56:13 +02:00
coresight.c coresight: Add try_get_module() in coresight_grab_device() 2020-09-28 19:47:40 +02:00