summaryrefslogtreecommitdiff
path: root/source/components/executer/exdebug.c
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2014-07-18 14:35:40 -0700
committerRobert Moore <Robert.Moore@intel.com>2014-07-18 14:35:40 -0700
commita4060d7fcfffff15a3e1d3aee7ccfd5cf00b50a0 (patch)
tree62026b18bcbde4260f5ad5e67d29a5c0c18b73ac /source/components/executer/exdebug.c
parentb452ef99a5d4c172349e936d400524fdec0a9585 (diff)
downloadacpica-a4060d7fcfffff15a3e1d3aee7ccfd5cf00b50a0.tar.gz
Debug object: Add current value of Timer() to debug line prefix.
Simplifies timing of things like control method execution.
Diffstat (limited to 'source/components/executer/exdebug.c')
-rw-r--r--source/components/executer/exdebug.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/components/executer/exdebug.c b/source/components/executer/exdebug.c
index e374e1335..b7d47fdd5 100644
--- a/source/components/executer/exdebug.c
+++ b/source/components/executer/exdebug.c
@@ -154,6 +154,7 @@ AcpiExDoDebugObject (
UINT32 Index)
{
UINT32 i;
+ UINT32 Timer;
ACPI_FUNCTION_TRACE_PTR (ExDoDebugObject, SourceDesc);
@@ -168,12 +169,20 @@ AcpiExDoDebugObject (
}
/*
+ * We will emit the current timer value (in microseconds) with each
+ * debug output. Only need the lower 26 bits. This allows for 67
+ * million microseconds or 67 seconds before rollover.
+ */
+ Timer = (UINT32) (AcpiOsGetTimer () / 10); /* (100 nanoseconds to microseconds) */
+ Timer &= 0x03FFFFFF;
+
+ /*
* Print line header as long as we are not in the middle of an
* object display
*/
if (!((Level > 0) && Index == 0))
{
- AcpiOsPrintf ("[ACPI Debug] %*s", Level, " ");
+ AcpiOsPrintf ("[ACPI Debug %.8u] %*s", Timer, Level, " ");
}
/* Display the index for package output only */