Skip to content

Commit

Permalink
Add FW dump with new SAI implementation (sonic-net#1338)
Browse files Browse the repository at this point in the history
Remove mst dump

Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
  • Loading branch information
shlomibitton committed Jan 3, 2021
1 parent 3fa55a4 commit b10622e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -519,11 +519,12 @@ collect_mellanox() {
${CMD_PREFIX}docker exec syncd tar Ccf $(dirname $sai_dump_filename) - $(basename $sai_dump_filename) | tar Cxf /tmp/ -
save_file $sai_dump_filename sai_sdk_dump true

local mst_dump_filename="/tmp/mstdump"
local max_dump_count="3"
for i in $(seq 1 $max_dump_count); do
${CMD_PREFIX}/usr/bin/mstdump /dev/mst/mt*conf0 > "${mst_dump_filename}${i}"
save_file "${mst_dump_filename}${i}" mstdump true
file_list_string=$(${CMD_PREFIX}docker exec -it syncd ls -l /tmp | grep sdkdump | awk '{print $9}' | tr -d '\r')
file_list_array=( $file_list_string )
for element in "${file_list_array[@]}"
do
docker cp syncd:/tmp/$element /tmp
save_file /tmp/$element sai_sdk_dump true
done
}

Expand Down

0 comments on commit b10622e

Please sign in to comment.