Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1250192
| From | Mathieu Poirier <mathieu.poirier@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH V2 00/30] Coresight integration with perf |
| Date | 2015-10-18 20:30 +0200 |
| Message-ID | <ql0St-4NE-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This patchset aims to integrate configuration and control of the Coresight tracers with the perf sub-system. The goal is to use PMUs to represent tracers and the auxiliary buffer enhancement to collect processor traces. As such a lot of work is done to move the current Coresight sysFS oriented configuration and control commands to perf's AUX API. For the time being the work concentrates on ETMv3 and ETB1.0 sink buffers. Work on ETMv4 and other type of sink buffers will follow once a foundation has been established. Best regards, Mathieu Changes since V1: * Fixed typos in typographical error in documentation. * Moved to a multi session support scheme. * Split static and dynamic tracer configuration. * Fixed configuration for user and kernel space tracing. * Using WARN_ON_ONCE() rather than WARN_ON(). * Implemented strategy to prevent tracers from being used simultaneously. * Changed sink_ops::unset_buffer() to sink_ops::reset_buffer(). * Moves ETM's sysFS interface from driver core to dedicated file. * Removed spinlock in "etm_cpu_id()". * Aggregated PMU driver pieces in a single patch. * Added user space changes and rebased everything to v4.3-rc5. Mathieu Poirier (30): coresight: etm3x: moving etm_readl/writel to header file coresight: etm3x: moving sysFS entries to dedicated file coresight: etm3x: unlocking tracers in default arch init coresight: etm3x: splitting struct etm_drvdata coresight: etm3x: set progbit to stop trace collection coresight: clearly labeling source operarions coresight: etm3x: moving etm_drvdata::enable to atomic field coresight: etm3x: implementing 'cpu_id()' API coresight: etm3x: changing default trace configuration coresight: etm3x: consolidating initial config coresight: etm3x: implementing user/kernel mode tracing coresight: etm3x: adding perf_get/set_config() API coresight: etm3x: implementing perf_enable/disable() API coresight: etm3x: implementing perf_start/stop() API coresight: making coresight_build_paths() public coresight: keeping track of enabled sink buffers perf: changing pmu::setup_aux() parameter to include event coresight: etb10: moving to local atomic operations coresight: etb10: implementing the setup_aux() API coresight: etb10: implementing buffer set/reset() API coresight: etb10: implementing buffer update API coresight: etm-perf: new PMU driver for ETM tracers coresight: updating documentation to reflect integration with perf perf tools: making function set_max_cpu_num() non static perf tools: adding perf_session to *info_prive_size() perf tools: making source devices path broadly accessible perf build: adding X86 auxiliary specific flags perf tools: making coresight PMU listable perf tools: adding coresight define for auxtrace perf tools: adding coresight etm PMU record capabilities Documentation/trace/coresight.txt | 138 +- arch/x86/kernel/cpu/perf_event_intel_bts.c | 4 +- arch/x86/kernel/cpu/perf_event_intel_pt.c | 5 +- drivers/hwtracing/coresight/Makefile | 4 +- drivers/hwtracing/coresight/coresight-etb10.c | 247 ++- drivers/hwtracing/coresight/coresight-etm-perf.c | 533 ++++++ drivers/hwtracing/coresight/coresight-etm-perf.h | 27 + drivers/hwtracing/coresight/coresight-etm.h | 151 +- .../hwtracing/coresight/coresight-etm3x-sysfs.c | 1442 ++++++++++++++++ drivers/hwtracing/coresight/coresight-etm3x.c | 1724 ++++---------------- drivers/hwtracing/coresight/coresight-etm4x.c | 8 +- drivers/hwtracing/coresight/coresight-priv.h | 4 + drivers/hwtracing/coresight/coresight.c | 27 +- include/linux/coresight.h | 51 +- include/linux/perf_event.h | 2 +- kernel/events/ring_buffer.c | 2 +- tools/perf/arch/arm/util/Build | 2 + tools/perf/arch/arm/util/auxtrace.c | 48 + tools/perf/arch/arm/util/cs_etm.c | 444 +++++ tools/perf/arch/arm/util/cs_etm.h | 37 + tools/perf/arch/arm/util/pmu.c | 18 + tools/perf/arch/x86/util/Build | 6 +- tools/perf/arch/x86/util/intel-bts.c | 4 +- tools/perf/arch/x86/util/intel-pt.c | 4 +- tools/perf/arch/x86/util/pmu.c | 2 +- tools/perf/builtin-inject.c | 2 +- tools/perf/builtin-record.c | 2 +- tools/perf/config/Makefile | 19 +- tools/perf/util/Build | 6 +- tools/perf/util/auxtrace.c | 8 +- tools/perf/util/auxtrace.h | 9 +- tools/perf/util/cpumap.c | 2 +- tools/perf/util/cpumap.h | 1 + tools/perf/util/intel-bts.h | 11 + tools/perf/util/intel-pt-decoder/Build | 2 +- tools/perf/util/intel-pt.h | 15 + tools/perf/util/pmu.c | 2 - tools/perf/util/pmu.h | 1 + 38 files changed, 3531 insertions(+), 1483 deletions(-) create mode 100644 drivers/hwtracing/coresight/coresight-etm-perf.c create mode 100644 drivers/hwtracing/coresight/coresight-etm-perf.h create mode 100644 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c create mode 100644 tools/perf/arch/arm/util/auxtrace.c create mode 100644 tools/perf/arch/arm/util/cs_etm.c create mode 100644 tools/perf/arch/arm/util/cs_etm.h create mode 100644 tools/perf/arch/arm/util/pmu.c -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH V2 00/30] Coresight integration with perf Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
[PATCH V2 18/30] coresight: etb10: moving to local atomic operations Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
[PATCH V2 30/30] perf tools: adding coresight etm PMU record capabilities Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
[PATCH V2 19/30] coresight: etb10: implementing the setup_aux() API Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
Re: [PATCH V2 19/30] coresight: etb10: implementing the setup_aux() API Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-10-19 15:50 +0200
Re: [PATCH V2 19/30] coresight: etb10: implementing the setup_aux() API Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-20 18:50 +0200
Re: [PATCH V2 19/30] coresight: etb10: implementing the setup_aux() API Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-10-20 13:50 +0200
[PATCH V2 07/30] coresight: etm3x: moving etm_drvdata::enable to atomic field Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
[PATCH V2 05/30] coresight: etm3x: set progbit to stop trace collection Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
[PATCH V2 22/30] coresight: etm-perf: new PMU driver for ETM tracers Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
Re: [PATCH V2 22/30] coresight: etm-perf: new PMU driver for ETM tracers Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-10-19 17:50 +0200
Re: [PATCH V2 22/30] coresight: etm-perf: new PMU driver for ETM tracers Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-20 18:50 +0200
Re: [PATCH V2 22/30] coresight: etm-perf: new PMU driver for ETM tracers Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-10-20 11:40 +0200
Re: [PATCH V2 22/30] coresight: etm-perf: new PMU driver for ETM tracers Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-20 21:20 +0200
[PATCH V2 25/30] perf tools: adding perf_session to *info_prive_size() Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
[PATCH V2 10/30] coresight: etm3x: consolidating initial config Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
[PATCH V2 26/30] perf tools: making source devices path broadly accessible Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
[PATCH V2 21/30] coresight: etb10: implementing buffer update API Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:30 +0200
[PATCH V2 15/30] coresight: making coresight_build_paths() public Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:40 +0200
[PATCH V2 08/30] coresight: etm3x: implementing 'cpu_id()' API Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:40 +0200
[PATCH V2 17/30] perf: changing pmu::setup_aux() parameter to include event Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:40 +0200
Re: [PATCH V2 17/30] perf: changing pmu::setup_aux() parameter to include event Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-10-19 15:40 +0200
[PATCH V2 06/30] coresight: clearly labeling source operarions Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:40 +0200
[PATCH V2 12/30] coresight: etm3x: adding perf_get/set_config() API Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:40 +0200
[PATCH V2 03/30] coresight: etm3x: unlocking tracers in default arch init Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:40 +0200
[PATCH V2 11/30] coresight: etm3x: implementing user/kernel mode tracing Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:40 +0200
[PATCH V2 09/30] coresight: etm3x: changing default trace configuration Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:40 +0200
[PATCH V2 01/30] coresight: etm3x: moving etm_readl/writel to header file Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:40 +0200
Re: [PATCH V2 01/30] coresight: etm3x: moving etm_readl/writel to header file Greg KH <gregkh@linuxfoundation.org> - 2015-10-19 20:40 +0200
[PATCH V2 13/30] coresight: etm3x: implementing perf_enable/disable() API Mathieu Poirier <mathieu.poirier@linaro.org> - 2015-10-18 20:40 +0200
csiph-web