]> asedeno.scripts.mit.edu Git - linux.git/commit
coresight: etm4x: Add view comparator settings API to sysfs.
authorMike Leach <mike.leach@linaro.org>
Mon, 4 Nov 2019 18:12:47 +0000 (11:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2019 20:57:56 +0000 (21:57 +0100)
commita578427de5b2bb7ac52f807505a6bea7fff93d4b
tree7f8e733b99a908c7e991049dfcd54c3213a271ba
parent3e12d3b01324a077a6313327d414a698584ef8c3
coresight: etm4x: Add view comparator settings API to sysfs.

Currently it is not possible to view the current settings of a given
address comparator without knowing what type it is set to. For example, if
a comparator is set as an addr_start comparator, attempting to read
addr_stop for the same index will result in an error.

addr_cmp_view is added to allow the user to see the current settings of
the indexed address comparator without resorting to trial and error when
the set type is not known.

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