Skip to content

Commit 8cfb0cd

Browse files
Lv Zhengrafaeljw
Lv Zheng
authored andcommitted
ACPI / debugger: Add IO interface to access debugger functionalities
This patch adds /sys/kernel/debug/acpi/acpidbg, which can be used by userspace programs to access ACPICA debugger functionalities. Known issue: 1. IO flush support acpi_os_notify_command_complete() and acpi_os_wait_command_ready() can be used by acpi_dbg module to implement .flush() filesystem operation. While this patch doesn't go that far. It then becomes userspace tool's duty now to flush old commands before executing new batch mode commands. Signed-off-by: Lv Zheng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 8a2a250 commit 8cfb0cd

File tree

8 files changed

+887
-17
lines changed

8 files changed

+887
-17
lines changed

drivers/acpi/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ config ACPI_CCA_REQUIRED
5858
bool
5959

6060
config ACPI_DEBUGGER
61-
bool "AML debugger interface (EXPERIMENTAL)"
61+
bool "AML debugger interface"
6262
select ACPI_DEBUG
63+
depends on DEBUG_FS
6364
help
6465
Enable in-kernel debugging of AML facilities: statistics, internal
6566
object dump, single step control method execution.

drivers/acpi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ acpi-y += sysfs.o
5050
acpi-y += property.o
5151
acpi-$(CONFIG_X86) += acpi_cmos_rtc.o
5252
acpi-$(CONFIG_DEBUG_FS) += debugfs.o
53+
acpi-$(CONFIG_ACPI_DEBUGGER) += acpi_dbg.o
5354
acpi-$(CONFIG_ACPI_NUMA) += numa.o
5455
acpi-$(CONFIG_ACPI_PROCFS_POWER) += cm_sbs.o
5556
acpi-y += acpi_lpat.o

0 commit comments

Comments
 (0)