File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (C) 2023 Nvidia Corporation, Majd Dibbiny <[email protected] >
2
+ # This file is part of the sos project: https://github.com/sosreport/sos
3
+ #
4
+ # This copyrighted material is made available to anyone wishing to use,
5
+ # modify, copy, or redistribute it subject to the terms and conditions of
6
+ # version 2 of the GNU General Public License.
7
+ #
8
+ # See the LICENSE file in the source distribution for further information.
9
+
10
+ from sos .report .plugins import Plugin , IndependentPlugin
11
+
12
+
13
+ class Rdma (Plugin , IndependentPlugin ):
14
+
15
+ short_desc = 'RDMA plugin collects status, statistics and resources of all\
16
+ the RDMA devices in the system'
17
+
18
+ plugin_name = "rdma"
19
+ profiles = ('hardware' ,)
20
+ packages = ('rdma' ,)
21
+
22
+ def setup (self ):
23
+
24
+ rdma_cmds = [
25
+ "dev show" ,
26
+ "link show" ,
27
+ "system show" ,
28
+ "statistic show"
29
+ ]
30
+
31
+ rdma_rsc_obj = [
32
+ "qp" ,
33
+ "cm_id" ,
34
+ "cq" ,
35
+ "pd" ,
36
+ "mr" ,
37
+ "ctx" ,
38
+ "srq"
39
+ ]
40
+
41
+ self .add_cmd_output ([f"rdma { cmd } -d" for cmd in rdma_cmds ])
42
+
43
+ self .add_cmd_output ([f"rdma resource show { rsc } -d"
44
+ for rsc in rdma_rsc_obj ])
You can’t perform that action at this time.
0 commit comments