Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1438219
| From | Lv Zheng <lv.zheng@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/4] ACPI / debugger: Add AML debugger documentation |
| Date | 2016-07-07 09:20 +0200 |
| Message-ID | <rSbLk-3Kd-13@gated-at.bofh.it> (permalink) |
| References | <rRwyt-24B-5@gated-at.bofh.it> <rSbLj-3Kd-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch adds AML debugger documentation. Signed-off-by: Lv Zheng <lv.zheng@intel.com> --- Documentation/acpi/aml-debugger.txt | 56 +++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/acpi/aml-debugger.txt diff --git a/Documentation/acpi/aml-debugger.txt b/Documentation/acpi/aml-debugger.txt new file mode 100644 index 0000000..2f1c184 --- /dev/null +++ b/Documentation/acpi/aml-debugger.txt @@ -0,0 +1,56 @@ +The AML Debugger + +Copyright (C) 2016, Intel Corporation +Author: Lv Zheng <lv.zheng@intel.com> + + +Abstract: + +This document describes the usage of the AML debugger embedded in the Linux +kernel. + +1. Build the debugger + + The following kernel configuration items are required to enable the AML + debugger interface from the Linux kernel: + CONFIG_ACPI_DEBUGGER=y + CONFIG_ACPI_DEBUGGER_USER=m + The userspace utlities can be built from the kernel source tree using + the following commands: + # cd tools + # make acpi + The built userspace tool can be found at: + tools/acpi/power/acpi/acpidbg/acpidbg + You can install it to the system directories using the following + command: + # make install + +2. Start the userspace debugger interface + + After booting the kernel with the debugger built-in, developers can + start the debugger with the following commands: + # mount -t debugfs none /sys/kernel/debug + # modprobe acpi_dbg + # tools/acpi/power/acpi/acpidbg/acpidbg + Now you have entered the interactive AML debugger environment, where + you can execute the debugger functionalities by typing the debugger + commands. + You can start to use it from typing "help" command and can download + <ACPICA Overview and Programmer Reference> from the following site: + https://acpica.org/documentation + And find detailed command reference in "Chapter 12. ACPICA Debugger + Reference". + +3. Stop the userspace debugger interface + + You can type the Ctrl+C, quit, exit to end the interactive debugger + interface. And unload the module with the following commands: + # rmmod acpi_dbg + The module unloading may fail if there is an acpidbg instance running. + +4. Run the debugger in a script + + It will be very useful to have the ability to run the AML debugger in + a test script. "acpidbg" supports this in a special "batch" mode. For + example, the following command outputs the entire ACPI namespace: + # acpidbg -b "namespace" -- 1.7.10
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/5] ACPI: ACPI documentations and trivial fixes Lv Zheng <lv.zheng@intel.com> - 2016-07-05 13:20 +0200
[PATCH v2 3/4] ACPI / button: Add SW_ACPI_LID for new usage model Lv Zheng <lv.zheng@intel.com> - 2016-07-07 09:20 +0200
Re: [PATCH v2 3/4] ACPI / button: Add SW_ACPI_LID for new usage model Benjamin Tissoires <benjamin.tissoires@gmail.com> - 2016-07-08 11:30 +0200
Re: [PATCH v2 3/4] ACPI / button: Add SW_ACPI_LID for new usage model Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-08 20:00 +0200
[PATCH v2 0/4] ACPI: ACPI documentation Lv Zheng <lv.zheng@intel.com> - 2016-07-07 09:20 +0200
[PATCH v2 1/4] ACPI: Add documentation describing ACPICA release automation Lv Zheng <lv.zheng@intel.com> - 2016-07-07 09:20 +0200
[PATCH v2 4/4] ACPI / button: Add document for ACPI control method lid device restrictions Lv Zheng <lv.zheng@intel.com> - 2016-07-07 09:20 +0200
Re: [PATCH v2 4/4] ACPI / button: Add document for ACPI control method lid device restrictions Benjamin Tissoires <benjamin.tissoires@gmail.com> - 2016-07-08 11:20 +0200
Re: [PATCH v2 4/4] ACPI / button: Add document for ACPI control method lid device restrictions Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-08 20:00 +0200
[PATCH v2 2/4] ACPI / debugger: Add AML debugger documentation Lv Zheng <lv.zheng@intel.com> - 2016-07-07 09:20 +0200
csiph-web