diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-10-24 19:03:11 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-10-24 19:03:11 +0000 |
commit | 10612891ccfa100a71738a827aadd5b135879edb (patch) | |
tree | fa3ff67f14db50bf34eafcb805facbb686204817 /sys/arch | |
parent | e3fcc41a3926cc2c8d0187c6fd466bd6833532e8 (diff) |
Hook brand new trace function into ddb. Now users can send useful traces
without enabling acpi debug. Usage "machine acpi trace".
ok jordan
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/db_interface.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/i386/db_interface.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/db_interface.c b/sys/arch/amd64/amd64/db_interface.c index 34a82ed05da..89c4bc59bc4 100644 --- a/sys/arch/amd64/amd64/db_interface.c +++ b/sys/arch/amd64/amd64/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.9 2006/03/08 21:04:57 marco Exp $ */ +/* $OpenBSD: db_interface.c,v 1.10 2006/10/24 19:03:10 marco Exp $ */ /* $NetBSD: db_interface.c,v 1.1 2003/04/26 18:39:27 fvdl Exp $ */ /* @@ -380,6 +380,7 @@ struct db_command db_acpi_cmds[] = { { "disasm", db_acpi_disasm, CS_OWN, NULL }, { "showval", db_acpi_showval, CS_OWN, NULL }, { "tree", db_acpi_tree, 0, NULL }, + { "trace", db_acpi_trace, 0, NULL }, { NULL, NULL, 0, NULL } }; #endif /* NACPI > 0 */ diff --git a/sys/arch/i386/i386/db_interface.c b/sys/arch/i386/i386/db_interface.c index 765e44560cf..23e175a6ca2 100644 --- a/sys/arch/i386/i386/db_interface.c +++ b/sys/arch/i386/i386/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.21 2006/09/19 11:06:33 jsg Exp $ */ +/* $OpenBSD: db_interface.c,v 1.22 2006/10/24 19:03:10 marco Exp $ */ /* $NetBSD: db_interface.c,v 1.22 1996/05/03 19:42:00 christos Exp $ */ /* @@ -325,6 +325,7 @@ struct db_command db_acpi_cmds[] = { { "disasm", db_acpi_disasm, CS_OWN, NULL }, { "showval", db_acpi_showval, CS_OWN, NULL }, { "tree", db_acpi_tree, 0, NULL }, + { "trace", db_acpi_trace, 0, NULL }, { NULL, NULL, 0, NULL } }; #endif /* NACPI > 0 */ |