aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorMike Leach <[email protected]>2020-07-16 11:57:43 -0600
committerGreg Kroah-Hartman <[email protected]>2020-07-21 15:48:40 +0200
commit0336bdfd7354edfa3db0e01675b5df224516e3e9 (patch)
treee21b96c1572654eebe592e0c80fd1f7ba594d7d0 /lib/test_overflow.c
parentd021f5c5ff679432c5e9faee0fd7350db2efb97c (diff)
coresight: Add default sink selection to CoreSight base
Adds a method to select a suitable sink connected to a given source. In cases where no sink is defined, the coresight_find_default_sink routine can search from a given source, through the child connections until a suitable sink is found. The suitability is defined in by the sink coresight_dev_subtype on the CoreSight device, and the distance from the source by counting connections. Higher value subtype is preferred - where these are equal, shorter distance from source is used as a tie-break. This allows for default sink to be discovered were none is specified (e.g. perf command line) Signed-off-by: Mike Leach <[email protected]> Suggested-by: Suzuki K Poulose <[email protected]> Reviewed-by: Leo Yan <[email protected]> Reviewed-by: Suzuki K Poulose <[email protected]> Signed-off-by: Mathieu Poirier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions