aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorHao Chen <[email protected]>2021-05-20 10:21:34 +0800
committerDavid S. Miller <[email protected]>2021-05-20 15:01:03 -0700
commitb5a0b70d77b9be91b8e6dfa5dd3b39ea9cf6be4c (patch)
tree947c9fdce5e5520e1961a1ec8cc52e15be5fb65e /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parente44c495d95e0dd3a5513f72a830639a72b4c14f1 (diff)
net: hns3: refactor dump fd tcam of debugfs
Currently, the debugfs command for fd tcam is implemented by "echo xxxx > cmd", and record the information in dmesg. It's unnecessary and heavy. To improve it, create a single file "fd_tcam" for it, and query it by command "cat fd_tcam", return the result to userspace, rather than record in dmesg. The display style is below: $ cat fd_tcam read result tcam key x(31): 00000000 00000000 00000000 08000000 00000600 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 read result tcam key y(31): 00000000 00000000 00000000 f7ff0000 0000f900 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0000fff8 Signed-off-by: Hao Chen <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions