summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/stm/dummy_stm.c
Commit message (Collapse)AuthorAgeFilesLines
* stm class: dummy_stm: Make nr_dummies parameter read-onlyAlexander Shishkin2016-04-081-9/+5
| | | | | | | | | Changing nr_dummies after the module has been loaded doesn't actually change anything, so just make it read-only. Reported-by: Alan Cox <alan.cox@intel.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Laurent Fert <laurent.fert@intel.com>
* stm class: dummy_stm: Add link callback for fault injectionAlexander Shishkin2016-02-201-0/+14
| | | | | | | | | | | STM device's link callback has the power to abort master/channel assignment by returning a negative error code. Use this in dummy stm device to optionally abort assigning certain channel IDs. This is useful as fault injection into the stm class core, for testing purposes. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* stm class: dummy_stm: Create multiple devicesAlexander Shishkin2016-02-201-9/+48
| | | | | | | | | | | STM framework should be able to handle multiple STM devices at a time, each one with its own master allocation policy. This patch changes dummy_stm driver to create multiple STM sinks to help testing the framework. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* stm class: dummy_stm: Add dummy driver for testing stm classAlexander Shishkin2015-10-041-0/+66
This is a simple module that pretends to be an stm device and discards all the data that comes in. Useful for testing stm class and its users. Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
OpenPOWER on IntegriCloud