summaryrefslogtreecommitdiff
path: root/usr/src/man/man8/acpixtract.8
blob: 76fd0150e796067a338c44ca41e2baa62685f1b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
.\" This file and its contents are supplied under the terms of the
.\" Common Development and Distribution License ("CDDL"), version 1.0.
.\" You may only use this file in accordance with the terms of version
.\" 1.0 of the CDDL.
.\"
.\" A full copy of the text of the CDDL should have accompanied this
.\" source.  A copy of the CDDL is also available via the Internet at
.\" http://www.illumos.org/license/CDDL.
.\"
.\"
.\" Copyright (c) 2017, Joyent, Inc.
.\"
.Dd May 12, 2017
.Dt ACPIXTRACT 8
.Os
.Sh NAME
.Nm acpixtract
.Nd extract binary ACPI tables from a dump file
.Sh SYNOPSIS
.Nm
.Op Fl ahlmv
.Op Fl s Ar signature
.Ar file
.Sh DESCRIPTION
The
.Nm
utility extracts the binary data from a dump of the system's Advanced
Configuration and Power Interface (ACPI) tables.
The dump is usually obtained via the
.Xr acpidump 8
command.
The resulting binary file(s) are represented in the ACPI
.Sy ASL
assembly language.
For each table extracted, a corresponding
.Em table.dat
file will be created.
.Sh OPTIONS
The following options are supported:
.Bl -tag -width Ds
.It Fl a
Extract all of the tables found.
By default only the
.Sy DSDT
and
.Sy SSDT
tables will be extracted.
.It Fl h
Display the usage message and exit.
.It Fl l
List tables only, do not extract.
.It Fl m
Make a single file for all of the
.Sy DSDT
and
.Sy SSDT
tables.
.It Fl s Ar signature
Get the table with the specified signature.
.It Fl v
Print the version.
.El
.Sh EXAMPLES
.Sy Example 1
Extract all ACPI tables
.Pp
The following example extracts all of the individual ACPI tables from a
previously created dump of the ACPI tables from a running system.
Such a dump can be created with the
.Xr acpidump 8
utility.
Extracted tables can then be inspected or disassembled by the
iasl utility on any platform.
.Bd -literal -offset width
# acpixtract -a acpi.dat

Intel ACPI Component Architecture
ACPI Binary Table Extraction Utility version 20160527-32
Copyright (c) 2000 - 2016 Intel Corporation

Acpi table [RSDP] -      36 bytes written to rsdp.dat
Acpi table [RSDT] -     128 bytes written to rsdt.dat
Acpi table [XSDT] -     220 bytes written to xsdt.dat
Acpi table [DSDT] -  213221 bytes written to dsdt.dat
Acpi table [FACS] -      64 bytes written to facs.dat
Acpi table [FACP] -     268 bytes written to facp.dat
Acpi table [APIC] -     884 bytes written to apic.dat
Acpi table [FPDT] -      68 bytes written to fpdt.dat
Acpi table [FIDT] -     156 bytes written to fidt.dat
Acpi table [SPMI] -      65 bytes written to spmi.dat
Acpi table [MCFG] -      60 bytes written to mcfg.dat
Acpi table [UEFI] -      66 bytes written to uefi.dat
Acpi table [MCEJ] -     304 bytes written to mcej.dat
Acpi table [HPET] -      56 bytes written to hpet.dat
Acpi table [MSCT] -     144 bytes written to msct.dat
Acpi table [SLIT] -      48 bytes written to slit.dat
Acpi table [SRAT] -    4440 bytes written to srat.dat
Acpi table [WDDT] -      64 bytes written to wddt.dat
Acpi table [SSDT] -   94529 bytes written to ssdt1.dat
Acpi table [NITR] -     113 bytes written to nitr.dat
Acpi table [SSDT] -    9802 bytes written to ssdt2.dat
Acpi table [SSDT] -     100 bytes written to ssdt3.dat
Acpi table [PRAD] -     191 bytes written to prad.dat
Acpi table [DMAR] -     328 bytes written to dmar.dat
Acpi table [HEST] -     168 bytes written to hest.dat
Acpi table [BERT] -      48 bytes written to bert.dat
Acpi table [ERST] -     560 bytes written to erst.dat
Acpi table [EINJ] -     336 bytes written to einj.dat

28 binary ACPI tables extracted
.Ed
.Sh SEE ALSO
.Xr acpidump 8