Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7125ad6b authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

scsi: ufs-debug: add debugfs capability to collect query statistics



This patch adds a new debugfs capability to collect query statistics.
It counts how many times each IDN (index) was sent to device for each
query opcode.

A usage example:
1. to clean current query statistics:
   echo 1 > /d/ufshcd0/stats/query_stats

2. to dump the current query statistics:
   cat /d/ufshcd0/stats/query_stats

This capability is always on, and can not be turned off.

Change-Id: I46ec405aae480c0dc161dca015b407bde6335cf7
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent faf66608
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment