OSDN Git Service

coresight: etm4x: Improve usability of sysfs - include/exclude addr.
authorMike Leach <mike.leach@linaro.org>
Mon, 4 Nov 2019 18:12:45 +0000 (11:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2019 20:57:55 +0000 (21:57 +0100)
commitc2431fed288a4a5771dc6470366c07fb42c691ef
tree64b77612af20cc538a084a86d0b958e1f9c484e8
parent1b6b0e087fc7c63ebaf9f78c69c7fdecb5fa8cd0
coresight: etm4x: Improve usability of sysfs - include/exclude addr.

Setting include / exclude on a range had to be done by setting
the bit in 'mode' before setting the range. However, setting this
bit also had the effect of altering the current range as well.

Changed to only set include / exclude setting of a range at the point of
setting that range. Either use a 3rd input parameter as the include exclude
value, or if not present use the current value of 'mode'. Do not change
current range when 'mode' changes.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20191104181251.26732-9-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c