diff options
| author | Hao Chen <chenhao288@hisilicon.com> | 2021-05-20 05:21:33 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-05-21 01:01:03 +0300 |
| commit | e44c495d95e0dd3a5513f72a830639a72b4c14f1 (patch) | |
| tree | 27655f8202ba76c6bb023e1754d85c1fb299c9c3 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | d2f737cf21b87d4239987da69a3b14730c6a57ad (diff) | |
| download | linux-e44c495d95e0dd3a5513f72a830639a72b4c14f1.tar.xz | |
net: hns3: refactor queue info of debugfs
Currently, the debugfs command for queue info is implemented by
"echo xxxx > cmd", and record the information in dmesg. It's
unnecessary and heavy. To improve it, create two files
"rx_queue_info" and "tx_queue_info" for it, and query it
by command "cat rx_queue_info" and "cat tx_queue_info",
return the result to userspace, rather than record in dmesg.
The display style is below:
$ cat rx_queue_info
QUEUE_ID BD_NUM BD_LEN TAIL HEAD FBDNUM PKTNUM ...
0 0 0 0 0 0 0 ...
1 0 0 0 0 0 0 ...
2 0 0 0 0 0 0 ...
$ cat tx_queue_info
QUEUE_ID BD_NUM TC TAIL HEAD FBDNUM OFFSET PKTNUM ...
0 0 0 0 0 0 0 0 ...
1 0 0 0 0 0 0 0 ...
2 0 0 0 0 0 0 0 ...
Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
