forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mlxtrace] Add mft-fwtrace-cfg.deb which contains fwtrace_cfg files f…
…or the mlxtrace utility (sonic-net#15960) Backport of sonic-net#15961 Why I did it Added the fwtrace config files in order to be able to call mlxstrace utility during show techsupport dump. Work item tracking Microsoft ADO (number only): How I did it Added fwtrace config files. Added path to these files to sai.profile for each mlnx device. How to verify it Execute the show techsupport command and check if mlxstrace output is in system dump.
- Loading branch information
1 parent
4f403c9
commit adb43ff
Showing
63 changed files
with
239,973 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3420.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3700.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn3700c-r0/ACS-MSN3700C/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3700c.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-C64/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D100C12S2/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_2x10g_100x50g_12x100g.xml | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D112C8/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_112x50g_8x100g.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D24C52/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_24x50g_52x100g.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C49S1/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_1x10g_28x50g_49x100g.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C50/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_28x50g_52x100g.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4410.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4600.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn4600c-r0/ACS-MSN4600C/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4600C.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn4600c-r0/Mellanox-SN4600C-C64/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4600C.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn4600c-r0/Mellanox-SN4600C-D100C12S2/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4600c_100x50g_12x100g_2x10g.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn4600c-r0/Mellanox-SN4600C-D112C8/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4600c_112x50g_8x100g.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn4600c-r0/Mellanox-SN4600C-D48C40/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4600c_48x50g_40x100g.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4700.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn4700-r0/Mellanox-SN4700-A96C8V8/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4700_8x200g_8x100g_96x25g.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/sonic/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn4700-r0/Mellanox-SN4700-C128/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4700_128x100g.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/sonic/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-mlnx_msn4700-r0/Mellanox-SN4700-V48C32/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4700_32x100g_48x200g.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/sonic/mft/fwtrace_cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4800.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_5600.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-nvidia_sn5600_simx-r0/ACS-SN5600/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_5600.xml | ||
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps | ||
SAI_DUMP_STORE_AMOUNT=10 | ||
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# DPKG FRK | ||
|
||
SPATH := $($(MFT_FWTRACE_CFG)_SRC_PATH) | ||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/mft-fwtrace-cfg.mk $(PLATFORM_PATH)/mft-fwtrace-cfg.dep | ||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST) | ||
DEP_FILES += $(shell git ls-files -- $(SPATH)) | ||
|
||
$(MFT_FWTRACE_CFG)_CACHE_MODE := GIT_CONTENT_SHA | ||
$(MFT_FWTRACE_CFG)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) | ||
$(MFT_FWTRACE_CFG)_DEP_FILES := $(DEP_FILES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. | ||
# Apache-2.0 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
MFT_FWTRACE_CFG = mft-fwtrace-cfg-$(MFT_VERSION)-$(MFT_REVISION).deb | ||
$(MFT_FWTRACE_CFG)_SRC_PATH = $(PLATFORM_PATH)/mft-fwtrace-cfg | ||
SONIC_MAKE_DEBS += $(MFT_FWTRACE_CFG) | ||
|
||
export MFT_FWTRACE_CFG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mft-fwtrace-cfg (1.0.0) STABLE; urgency=low | ||
|
||
* Initial release. | ||
|
||
-- Vadym Hlushko <vadymh@nvidia.com> Mon, 24 Jul 2023 12:03:04 +0300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Package: mft-fwtrace-cfg | ||
Version: 1.0.0 | ||
Section: utils | ||
Priority: optional | ||
Architecture: all | ||
Maintainer: Vadym Hlushko <vadymh@nvidia.com> | ||
Description: fwtrace_cfg files for the mlxtrace utility from the MFT debian package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. | ||
# Apache-2.0 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
.ONESHELL: | ||
SHELL = /bin/bash | ||
.SHELLFLAGS += -e | ||
|
||
MAIN_TARGET = $(MFT_FWTRACE_CFG) | ||
|
||
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : | ||
dpkg -b . $(MAIN_TARGET) | ||
mv $(MAIN_TARGET) $(DEST)/ |
Oops, something went wrong.