[sos-devel] [PATCH] acpitables plugin

Jan Holcapek jholcape at redhat.com
Mon Jul 18 12:49:03 UTC 2011


Simplistic plugin to collect ACPI tables.

BZ https://bugzilla.redhat.com/show_bug.cgi?id=691999

~Jan Holcapek

---
 sos/plugins/acpitables.py |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 sos/plugins/acpitables.py

diff --git a/sos/plugins/acpitables.py b/sos/plugins/acpitables.py
new file mode 100644
index 0000000..c6d5086
--- /dev/null
+++ b/sos/plugins/acpitables.py
@@ -0,0 +1,23 @@
+'''sos plugin collecting ACPI tables'''
+
+## 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.
+
+import sos.plugintools
+
+class acpitables(sos.plugintools.PluginBase):
+	'''ACPI Tables'''
+	def setup(self):
+		self.addCopySpec('/sys/firmware/acpi/tables/')
+		return
-- 
1.7.6




More information about the sos-devel mailing list