FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 06-23-2011, 02:57 PM
Colin Ian King
 
Default Easy inspection of ACPI AML opcodes w/o need for CONFIG_ACPI_DEBUG and the ACPI debug tweaks.

Hi there,

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.

The script is in my pmdebug git repo:

http://kernel.ubuntu.com/git?p=cking/pmdebug.git;a=blob;f=systemtap/amltrace/amltrace.stp;h=80f9915a1bc4e022021823748c31d3510cd a4a56;hb=279d2852ad5336e7bb667cde3cad71856d23c2cc

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
SystemTap.

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


Colin


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 08:49 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org