From patchwork Sat Oct 6 20:09:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 1559901 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 35C333FD56 for ; Sat, 6 Oct 2012 20:20:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932235Ab2JFUUn (ORCPT ); Sat, 6 Oct 2012 16:20:43 -0400 Received: from mail-qa0-f46.google.com ([209.85.216.46]:59199 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932156Ab2JFUUi (ORCPT ); Sat, 6 Oct 2012 16:20:38 -0400 Received: by mail-qa0-f46.google.com with SMTP id c26so1240550qad.19 for ; Sat, 06 Oct 2012 13:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:reply-to:organization; bh=sOnI5cQVLOb0J1P6rpgWL0mEX08s0fOnC/4chYb9BNE=; b=cGf9p/4nT7rIhixCcFYGZX+XAAS2pWvbLEuGA05QJPO7zAfOJJK+HIRFtoz1Xg5zgd Im2I+QRp/lKiwVe+lSdFm9VVJUB0uwvFAb+VevADBF2X3NJkKVtk4aL2WBJGGYH6FWf7 i8/GfQXYuBYJPS7ztiLuAoVH8OS7G4OLPWdWaAIPqPoqqGV3742Ah32/R4Kt3AOzrt8s IdIiL1j8ltt6LqbJR+wmdVjG6RtgnLGxxu63geu0loLs6m+Cgmrv+z6YRREk9p6J1IQA tbWs5jwOQdKw2Ud+9VvCYhovgXiCoCoTDLTFziTlIxMyvPwottKJewFel1lG5Um4G9OM o/Zg== Received: by 10.224.191.130 with SMTP id dm2mr22556960qab.98.1349554837870; Sat, 06 Oct 2012 13:20:37 -0700 (PDT) Received: from x980.localdomain6 (pool-74-104-146-186.bstnma.fios.verizon.net. [74.104.146.186]) by mx.google.com with ESMTPS id x19sm13470740qeq.12.2012.10.06.13.20.23 (version=SSLv3 cipher=OTHER); Sat, 06 Oct 2012 13:20:30 -0700 (PDT) From: Len Brown To: linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown Subject: [PATCH 36/49] tools/power/acpi/acpidump: create acpidump(8), local make install targets Date: Sat, 6 Oct 2012 16:09:57 -0400 Message-Id: <0e7cc27935cda92c7a39a00791d0d4bbffeab117.1349554106.git.len.brown@intel.com> X-Mailer: git-send-email 1.8.0.rc0.18.gf84667d In-Reply-To: <1349554210-29978-1-git-send-email-lenb@kernel.org> References: <1349554210-29978-1-git-send-email-lenb@kernel.org> In-Reply-To: References: Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Len Brown Signed-off-by: Len Brown --- tools/power/acpi/Makefile | 4 +++ tools/power/acpi/acpidump.8 | 59 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 tools/power/acpi/acpidump.8 diff --git a/tools/power/acpi/Makefile b/tools/power/acpi/Makefile index dad79a6..6b9cf7a 100644 --- a/tools/power/acpi/Makefile +++ b/tools/power/acpi/Makefile @@ -12,3 +12,7 @@ CLEANFILES= $(PROG) clean : rm -f $(CLEANFILES) $(patsubst %.c,%.o, $(SRCS)) *~ +install : + install acpidump /usr/bin/acpidump + install acpidump.8 /usr/share/man/man8 + diff --git a/tools/power/acpi/acpidump.8 b/tools/power/acpi/acpidump.8 new file mode 100644 index 0000000..adfa991 --- /dev/null +++ b/tools/power/acpi/acpidump.8 @@ -0,0 +1,59 @@ +.TH ACPIDUMP 8 +.SH NAME +acpidump \- Dump system's ACPI tables to an ASCII file. +.SH SYNOPSIS +.ft B +.B acpidump > acpidump.out +.SH DESCRIPTION +\fBacpidump \fP dumps the systems ACPI tables to an ASCII file +appropriate for attaching to a bug report. + +Subsequently, they can be processed by utilities in the ACPICA package. +.SS Options +no options worth worrying about. +.PP +.SH EXAMPLE + +.nf +# acpidump > acpidump.out + +$ acpixtract -a acpidump.out + Acpi table [DSDT] - 15974 bytes written to DSDT.dat + Acpi table [FACS] - 64 bytes written to FACS.dat + Acpi table [FACP] - 116 bytes written to FACP.dat + Acpi table [APIC] - 120 bytes written to APIC.dat + Acpi table [MCFG] - 60 bytes written to MCFG.dat + Acpi table [SSDT] - 444 bytes written to SSDT1.dat + Acpi table [SSDT] - 439 bytes written to SSDT2.dat + Acpi table [SSDT] - 439 bytes written to SSDT3.dat + Acpi table [SSDT] - 439 bytes written to SSDT4.dat + Acpi table [SSDT] - 439 bytes written to SSDT5.dat + Acpi table [RSDT] - 76 bytes written to RSDT.dat + Acpi table [RSDP] - 20 bytes written to RSDP.dat + +$ iasl -d *.dat +... +.fi +creates *.dsl, a human readable form which can be edited +and compiled using iasl. + + +.SH NOTES + +.B "acpidump " +must be run as root. + +.SH REFERENCES +ACPICA: https://acpica.org/ + +.SH FILES +.ta +.nf +/dev/mem +/sys/firmware/acpi/tables/dynamic/* +.fi + +.PP +.SH AUTHOR +.nf +Written by Len Brown