diff options
| author | Guangbin Huang <huangguangbin2@huawei.com> | 2021-05-20 05:21:40 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-05-21 01:01:03 +0300 |
| commit | 95b195869b7d1eb7a1f837f024db31cd6fc07981 (patch) | |
| tree | 63e281f393b6440f31e6d65924141800f9de5d3b /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 28d3bada7d42e324ee8558e6d22c3d768a87af7b (diff) | |
| download | linux-95b195869b7d1eb7a1f837f024db31cd6fc07981.tar.xz | |
net: hns3: refactor dump qos buf cfg of debugfs
Currently, user gets qos buffer config by implementing debugfs command
"echo dump qos buf cfg > cmd", this command will dump info in dmesg.
It's unnecessary and heavy.
To optimize it, create a single file "qos_buf_cfg" in tm directory
and use cat command to get info. It will return info to userspace,
rather than record in dmesg.
The display style is below:
$ cat qos_buf_cfg
tx_packet_buf_tc_0: 0x120
tx_packet_buf_tc_1: 0x120
tx_packet_buf_tc_2: 0x120
tx_packet_buf_tc_3: 0x120
tx_packet_buf_tc_4: 0x0
tx_packet_buf_tc_5: 0x0
tx_packet_buf_tc_6: 0x0
tx_packet_buf_tc_7: 0x0
......
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.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
