2 .\" Copyright (c) 2003 Nate Lawson
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer
10 .\" in this position and unchanged.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. The name of the author may not be used to endorse or promote products
15 .\" derived from this software without specific prior written permission.
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 .\" $FreeBSD: src/usr.sbin/acpi/acpidb/acpidb.8,v 1.2 2004/06/06 17:49:57 ru Exp $
29 .\" $DragonFly: src/usr.sbin/acpi/acpidb/acpidb.8,v 1.1 2004/07/05 00:22:43 dillon Exp $
36 .Nd ACPI DSDT debugger
43 utility is a debugger for the ACPI DSDT.
44 It can parse and execute various
45 AML methods and display the result.
47 .Ss General-Purpose Commands
48 .Bl -tag -width indent
50 Display list of current memory allocations
51 .It Ic Dump Ar Address | Namepath Op Cm Byte | Word | Dword | Qword
52 Display ACPI objects or memory
54 Enable ACPI (hardware) mode
56 Show various help screens
58 Display command history buffer
59 .It Ic Level Ar DebugLevel Op Cm console
60 Get/Set debug level for file or console
62 Current status of internal mutexes
63 .It Ic Quit No or Ic Exit
65 .It Ic Stats Op Cm Allocations | Memory | Misc | Objects | Tables
66 Display namespace and memory statistics
68 Display info about loaded ACPI tables
69 .It Ic Unload Ar TableSig Op Ar Instance
71 .It Ic !\& Ar CommandNumber
72 Execute command from history buffer
74 Execute last command again
76 .Ss Namespace Access Commands
77 .Bl -tag -width indent
78 .It Ic Event Cm F | G Ar Value
79 Generate AcpiEvent (Fixed/GPE)
81 Find ACPI name(s) with wildcards
85 Display list of loaded control methods
86 .It Ic Namespace Oo Ar Addr | Path Oc Op Ar Depth
87 Display loaded namespace tree/subtree
88 .It Ic Notify Ar NamePath Value
90 .It Ic Objects Ar ObjectType
91 Display all objects of the given type
92 .It Ic Owner Ar OwnerId Op Ar Depth
93 Display loaded namespace by object owner
94 .It Ic Prefix Op Ar NamePath
95 Set or Get current execution prefix
96 .It Ic References Ar Addr
97 Find all references to object at addr
99 Get and display resources
101 Delete namespace and all internal objects
102 .It Ic Thread Ar Threads Loops NamePath
103 Spawn threads to execute method(s)
105 .Ss Control Method Execution Commands
106 .Bl -tag -width indent
109 Display method arguments
110 .It Ic Breakpoint Ar AmlOffset
111 Set an AML execution breakpoint
113 Run to next control method invocation
114 .It Ic Debug Ar Namepath Op Ar Arguments
115 Single Step a control method
116 .It Ic Execute Ar Namepath Op Arguments
117 Execute control method
119 Allow method to run to completion
121 Display info about the current method
123 Step into (not over) a method call
124 .It Ic List Op OpcodeCount
125 Display method ASL statements
127 Display method local variables
129 Display method result stack
130 .It Ic Set Cm A | L Ar # Value
131 Set method data (Arguments/Locals)
133 Terminate control method
135 Display control method calling tree
137 Single step next AML opcode (over calls)
139 .Ss File I/O Commands
140 .Bl -tag -width indent
142 Close debug output file
143 .It Ic Open Ar Filename
144 Open a file for debug output
145 .It Ic Load Ar Filename
146 Load ACPI table from a file
155 utility first appeared in the
164 utility was written by
165 .An Mitsuru Iwasaki Aq iwasaki@FreeBSD.org
166 and uses Intel ACPI-CA for the backend.
167 This manual page was written by