]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPICA: Add support for printing AML arguments when trace point enabled
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 17 Apr 2025 03:10:36 +0000 (22:10 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Apr 2025 20:01:18 +0000 (22:01 +0200)
commitcde89fdfdf18211c4f9011c42796c1d9eace43da
treed5c72eeef2563024baed95f6ca77df6dd1af280b
parent0f8af0356a45547683a216e4921006a3c6a6d922
ACPICA: Add support for printing AML arguments when trace point enabled

When debug level is set to `ACPI_LV_TRACE_POINT` method start and
exit are emitted into the debug logs. This can be useful to understand
call paths, however none of the arguments for the method calls are
populated even when turning up other debug levels.

This can be useful for BIOSes that contain debug strings to see those
strings. When `ACPI_LV_TRACE_POINT` is set also output all of the arguments
for a given method call.

This enables this type of debugging:

```
extrace-0138 ex_trace_point        : Method Begin [0x0000000096b240c4:\M460] execution.
extrace-0173 ex_trace_args         :  "  POST CODE: %X  ACPI TIMER: %X  TIME: %d.%d ms\n", b0003f531a26a8b2, 0, 15e, 0, 0
extrace-0138 ex_trace_point        : Method End [0x0000000096b240c4:\M460] execution.
```

Link: https://github.com/acpica/acpica/commit/08219d91b5678ae2fae6e4f208df790a4e108c1c
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/20250417031040.514460-1-superm1@kernel.org
Link: https://github.com/acpica/acpica/pull/1012
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/acinterp.h
drivers/acpi/acpica/dsmthdat.c
drivers/acpi/acpica/extrace.c