xref: /freebsd-src/usr.sbin/acpi/acpidb/acpidb.8 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
18285491eSNate Lawson.\"-
28285491eSNate Lawson.\" Copyright (c) 2003 Nate Lawson
38285491eSNate Lawson.\" All rights reserved.
48285491eSNate Lawson.\"
58285491eSNate Lawson.\" Redistribution and use in source and binary forms, with or without
68285491eSNate Lawson.\" modification, are permitted provided that the following conditions
78285491eSNate Lawson.\" are met:
88285491eSNate Lawson.\" 1. Redistributions of source code must retain the above copyright
98285491eSNate Lawson.\"    notice, this list of conditions and the following disclaimer
108285491eSNate Lawson.\"    in this position and unchanged.
118285491eSNate Lawson.\" 2. Redistributions in binary form must reproduce the above copyright
128285491eSNate Lawson.\"    notice, this list of conditions and the following disclaimer in the
138285491eSNate Lawson.\"    documentation and/or other materials provided with the distribution.
148285491eSNate Lawson.\" 3. The name of the author may not be used to endorse or promote products
158285491eSNate Lawson.\"    derived from this software without specific prior written permission.
168285491eSNate Lawson.\"
178285491eSNate Lawson.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
188285491eSNate Lawson.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
198285491eSNate Lawson.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
208285491eSNate Lawson.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
218285491eSNate Lawson.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
228285491eSNate Lawson.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
238285491eSNate Lawson.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
248285491eSNate Lawson.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
258285491eSNate Lawson.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
268285491eSNate Lawson.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
278285491eSNate Lawson.\"
288285491eSNate Lawson.Dd August 7, 2003
298285491eSNate Lawson.Dt ACPIDB 8
308285491eSNate Lawson.Os
318285491eSNate Lawson.Sh NAME
328285491eSNate Lawson.Nm acpidb
338285491eSNate Lawson.Nd ACPI DSDT debugger
348285491eSNate Lawson.Sh SYNOPSIS
358285491eSNate Lawson.Nm
368285491eSNate Lawson.Ar input-file
378285491eSNate Lawson.Sh DESCRIPTION
388285491eSNate LawsonThe
398285491eSNate Lawson.Nm
40037ac99fSRuslan Ermilovutility is a debugger for the ACPI DSDT.
41037ac99fSRuslan ErmilovIt can parse and execute various
428285491eSNate LawsonAML methods and display the result.
438285491eSNate Lawson.Sh COMMANDS
448285491eSNate Lawson.Ss General-Purpose Commands
458285491eSNate Lawson.Bl -tag -width indent
468285491eSNate Lawson.It Ic Allocations
478285491eSNate LawsonDisplay list of current memory allocations
48037ac99fSRuslan Ermilov.It Ic Dump Ar Address | Namepath Op Cm Byte | Word | Dword | Qword
498285491eSNate LawsonDisplay ACPI objects or memory
508285491eSNate Lawson.It Ic EnableAcpi
518285491eSNate LawsonEnable ACPI (hardware) mode
528285491eSNate Lawson.It Ic Help
53037ac99fSRuslan ErmilovShow various help screens
548285491eSNate Lawson.It Ic History
558285491eSNate LawsonDisplay command history buffer
56037ac99fSRuslan Ermilov.It Ic Level Ar DebugLevel Op Cm console
578285491eSNate LawsonGet/Set debug level for file or console
588285491eSNate Lawson.It Ic Locks
598285491eSNate LawsonCurrent status of internal mutexes
60037ac99fSRuslan Ermilov.It Ic Quit No or Ic Exit
618285491eSNate LawsonExit the debugger
62037ac99fSRuslan Ermilov.It Ic Stats Op Cm Allocations | Memory | Misc | Objects | Tables
638285491eSNate LawsonDisplay namespace and memory statistics
648285491eSNate Lawson.It Ic Tables
658285491eSNate LawsonDisplay info about loaded ACPI tables
66037ac99fSRuslan Ermilov.It Ic Unload Ar TableSig Op Ar Instance
678285491eSNate LawsonUnload an ACPI table
68037ac99fSRuslan Ermilov.It Ic !\& Ar CommandNumber
698285491eSNate LawsonExecute command from history buffer
708285491eSNate Lawson.It Ic !!
718285491eSNate LawsonExecute last command again
728285491eSNate Lawson.El
738285491eSNate Lawson.Ss Namespace Access Commands
748285491eSNate Lawson.Bl -tag -width indent
75037ac99fSRuslan Ermilov.It Ic Event Cm F | G Ar Value
768285491eSNate LawsonGenerate AcpiEvent (Fixed/GPE)
778285491eSNate Lawson.It Ic Find Ar Name
78037ac99fSRuslan ErmilovFind ACPI name(s) with wildcards
79037ac99fSRuslan Ermilov.Ql ( ?\&
80037ac99fSRuslan Ermilovis wildcard)
818285491eSNate Lawson.It Ic Method
828285491eSNate LawsonDisplay list of loaded control methods
83037ac99fSRuslan Ermilov.It Ic Namespace Oo Ar Addr | Path Oc Op Ar Depth
848285491eSNate LawsonDisplay loaded namespace tree/subtree
85037ac99fSRuslan Ermilov.It Ic Notify Ar NamePath Value
868285491eSNate LawsonSend a notification
878285491eSNate Lawson.It Ic Objects Ar ObjectType
888285491eSNate LawsonDisplay all objects of the given type
89037ac99fSRuslan Ermilov.It Ic Owner Ar OwnerId Op Ar Depth
908285491eSNate LawsonDisplay loaded namespace by object owner
91037ac99fSRuslan Ermilov.It Ic Prefix Op Ar NamePath
928285491eSNate LawsonSet or Get current execution prefix
938285491eSNate Lawson.It Ic References Ar Addr
948285491eSNate LawsonFind all references to object at addr
958285491eSNate Lawson.It Ic Resources
968285491eSNate LawsonGet and display resources
978285491eSNate Lawson.It Ic Terminate
988285491eSNate LawsonDelete namespace and all internal objects
99037ac99fSRuslan Ermilov.It Ic Thread Ar Threads Loops NamePath
1008285491eSNate LawsonSpawn threads to execute method(s)
1018285491eSNate Lawson.El
1028285491eSNate Lawson.Ss Control Method Execution Commands
1038285491eSNate Lawson.Bl -tag -width indent
1048285491eSNate Lawson.It Ic Arguments
1058285491eSNate Lawson.Pq Ic Args
1068285491eSNate LawsonDisplay method arguments
1078285491eSNate Lawson.It Ic Breakpoint Ar AmlOffset
1088285491eSNate LawsonSet an AML execution breakpoint
1098285491eSNate Lawson.It Ic Call
1108285491eSNate LawsonRun to next control method invocation
111037ac99fSRuslan Ermilov.It Ic Debug Ar Namepath Op Ar Arguments
1128285491eSNate LawsonSingle Step a control method
1138285491eSNate Lawson.It Ic Execute Ar Namepath Op Arguments
1148285491eSNate LawsonExecute control method
1158285491eSNate Lawson.It Ic Go
1168285491eSNate LawsonAllow method to run to completion
1178285491eSNate Lawson.It Ic Information
1188285491eSNate LawsonDisplay info about the current method
1198285491eSNate Lawson.It Ic Into
1208285491eSNate LawsonStep into (not over) a method call
1218285491eSNate Lawson.It Ic List Op OpcodeCount
1228285491eSNate LawsonDisplay method ASL statements
1238285491eSNate Lawson.It Ic Locals
1248285491eSNate LawsonDisplay method local variables
1258285491eSNate Lawson.It Ic Results
1268285491eSNate LawsonDisplay method result stack
127037ac99fSRuslan Ermilov.It Ic Set Cm A | L Ar # Value
1288285491eSNate LawsonSet method data (Arguments/Locals)
1298285491eSNate Lawson.It Ic Stop
1308285491eSNate LawsonTerminate control method
1318285491eSNate Lawson.It Ic Tree
1328285491eSNate LawsonDisplay control method calling tree
1338285491eSNate Lawson.It Ic <Enter>
1348285491eSNate LawsonSingle step next AML opcode (over calls)
1358285491eSNate Lawson.El
1368285491eSNate Lawson.Ss File I/O Commands
1378285491eSNate Lawson.Bl -tag -width indent
1388285491eSNate Lawson.It Ic Close
1398285491eSNate LawsonClose debug output file
1408285491eSNate Lawson.It Ic Open Ar Filename
1418285491eSNate LawsonOpen a file for debug output
1428285491eSNate Lawson.It Ic Load Ar Filename
1438285491eSNate LawsonLoad ACPI table from a file
1448285491eSNate Lawson.El
1458285491eSNate Lawson.Sh SEE ALSO
1468285491eSNate Lawson.Xr acpi 4 ,
1478285491eSNate Lawson.Xr acpidump 8 ,
1488285491eSNate Lawson.Xr iasl 8
1498285491eSNate Lawson.Sh HISTORY
1508285491eSNate LawsonThe
1518285491eSNate Lawson.Nm
152037ac99fSRuslan Ermilovutility first appeared in the
153037ac99fSRuslan Ermilov.Nm acpicatools
154037ac99fSRuslan Ermilovport.
1558285491eSNate LawsonIt was imported for
1568285491eSNate Lawson.Fx 5.2 .
1578285491eSNate Lawson.Sh AUTHORS
1588285491eSNate Lawson.An -nosplit
1598285491eSNate LawsonThe
1608285491eSNate Lawson.Nm
1618285491eSNate Lawsonutility was written by
162*01c2b8acSBaptiste Daroussin.An Mitsuru Iwasaki Aq Mt iwasaki@FreeBSD.org
1638285491eSNate Lawsonand uses Intel ACPI-CA for the backend.
1648285491eSNate LawsonThis manual page was written by
1658285491eSNate Lawson.An Nate Lawson .
166