summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAvri Altman <avri.altman@wdc.com>2021-07-12 12:50:31 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-08-01 16:05:14 -0400
commitc76a188856413f0a40585a7bc6801c755a4c0c8d (patch)
tree8a1841fb75bd37386c208adfc3c6ee17fb5bcb79 /tools/perf/scripts/python
parent8becf4db1e01d6ae2bb9f9877537dffee89b8308 (diff)
downloadlinux-c76a188856413f0a40585a7bc6801c755a4c0c8d.tar.gz
linux-c76a188856413f0a40585a7bc6801c755a4c0c8d.zip
scsi: ufs: ufshpb: Add reads counter
In host control mode, reads are the major source of activation trials. Keep track of those reads counters, for both active as well inactive regions. We reset the read counter upon write - we are only interested in "clean" reads. Keep those counters normalized, as we are using those reads as a comparative score, to make various decisions. If during consecutive normalizations an active region has exhaust its reads - inactivate it. While at it, protect the {active,inactive}_count stats by adding them into the applicable handler. Link: https://lore.kernel.org/r/20210712095039.8093-5-avri.altman@wdc.com Reviewed-by: Daejun Park <daejun7.park@samsung.com> Signed-off-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions