From 39e50995162ab5a6e3ac9e86b746b17b442e749f Mon Sep 17 00:00:00 2001 From: Maor Dickman Date: Tue, 17 Sep 2024 10:22:10 +0300 Subject: [PATCH] Revert "Revert "Add mlx5_core plugin"" Reenable mlx5_core plugin as the mlx5 driver was fixed and it doesn't crash from doca 2.8 version. This reverts commit 732995a2a0b29f761314997536c972ed4a84c0a8. Signed-off-by: Maor Dickman --- sos/report/plugins/mlx5_core.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 sos/report/plugins/mlx5_core.py diff --git a/sos/report/plugins/mlx5_core.py b/sos/report/plugins/mlx5_core.py new file mode 100644 index 0000000000..77c272c44f --- /dev/null +++ b/sos/report/plugins/mlx5_core.py @@ -0,0 +1,28 @@ +# Copyright (C) 2024 Nvidia Corporation, +# This file is part of the sos project: https://github.com/sosreport/sos +# +# This copyrighted material is made available to anyone wishing to use, +# modify, copy, or redistribute it subject to the terms and conditions of +# version 2 of the GNU General Public License. +# +# See the LICENSE file in the source distribution for further information. + +from sos.report.plugins import Plugin, IndependentPlugin + + +class Mlx5_core(Plugin, IndependentPlugin): + """The mlx5_core plugin is aimed at collecting debug information related to + Mellenox 5th generation network adapters core driver + """ + short_desc = 'Mellanox 5th generation network adapters (ConnectX series)\ + core driver' + plugin_name = 'mlx5_core' + profiles = ('hardware', ) + + def setup(self): + self.add_copy_spec([ + '/sys/kernel/debug/mlx5/0000:*/*', + ]) + + +# vim: set et ts=4 sw=4 :