Easy inspection of ACPI AML opcodes w/o need for CONFIG_ACPI_DEBUG and the ACPI debug tweaks.
I've written a SystemTap script that allows one to trace the execution
of the ACPI AML code without the need to build a kernel with
CONFIG_ACPI_DEBUG and do all that messy debug_level and debug_layer
configuration to get the correct kind of debug out of the kernel.
To run, install systemtap and a relevant kernel .ddeb (do you need to
reboot after installing this?)
Then download the script and run with:
sudo ./stap -g
and wait for the "Starting ACPI debugger." message
If you exercise AML code (e.g. hit volume keys) the opcodes are dumped
to your terminal in real-time. Apart from being a handy tool for
debugging AML issues, it's a neat demo of what can be done with
Caveat: This has been tested on Oneiric. You mileage may vary.
Oh, and if you want to see the AML code from your firmware, you can dump
this quite easily using:
sudo fwts --disassemble-aml
kernel-team mailing list