diff options
author | Kenneth Koski <mechaxl@gmail.com> | 2015-12-14 13:41:52 -0600 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-05-27 17:51:09 +0100 |
commit | e94514bf2d02a08157eaf685baa622fe26987c21 (patch) | |
tree | dca0c096f73515787077e53412275aafa803d3e1 | |
parent | 6db395239b1a300d0e66f0fb87ed51afc159d0d4 (diff) | |
download | sos-e94514bf2d02a08157eaf685baa622fe26987c21.tar.gz |
[ntb] Adding support for NTB
sosreport currently lacks support for collecting information
about PCI-E Non-transparent bridge hardware. This pull request
adds support for collecting that information. For more
information about NTB, see this page:
https://github.com/jonmason/ntb/wiki
Closes #701.
Signed-off-by: Kenneth Koski <mechaxl@gmail.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/ntb.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sos/plugins/ntb.py b/sos/plugins/ntb.py new file mode 100644 index 00000000..da9d1726 --- /dev/null +++ b/sos/plugins/ntb.py @@ -0,0 +1,35 @@ +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +from sos.plugins import Plugin, RedHatPlugin + + +class Ntb(Plugin, RedHatPlugin): + """Linux PCI-Express Non-Transparent Bridge + """ + + plugin_name = 'ntb' + profiles = ('hardware', ) + + def setup(self): + # NTB is hardwired at PCI Bus 0, device 3, function 0 on Intel + # processors (see page 8 in + # http://download.intel.com/design/intarch/papers/323328.pdf). + self.add_copy_spec([ + '/sys/kernel/debug/ntb_hw_intel/0000:*/info', + '/sys/kernel/debug/ntb_transport/0000:*/qp*/stats' + ]) + + +# vim: set et ts=4 sw=4 : |