ReactOS  0.4.14-dev-1007-g90d795b
utdebug.c
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Module Name: utdebug - Debug print/trace routines
4  *
5  *****************************************************************************/
6 
7 /*
8  * Copyright (C) 2000 - 2020, Intel Corp.
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  * 1. Redistributions of source code must retain the above copyright
15  * notice, this list of conditions, and the following disclaimer,
16  * without modification.
17  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18  * substantially similar to the "NO WARRANTY" disclaimer below
19  * ("Disclaimer") and any redistribution must be conditioned upon
20  * including a substantially similar Disclaimer requirement for further
21  * binary redistribution.
22  * 3. Neither the names of the above-listed copyright holders nor the names
23  * of any contributors may be used to endorse or promote products derived
24  * from this software without specific prior written permission.
25  *
26  * Alternatively, this software may be distributed under the terms of the
27  * GNU General Public License ("GPL") version 2 as published by the Free
28  * Software Foundation.
29  *
30  * NO WARRANTY
31  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41  * POSSIBILITY OF SUCH DAMAGES.
42  */
43 
44 #define EXPORT_ACPI_INTERFACES
45 
46 #include "acpi.h"
47 #include "accommon.h"
48 #include "acinterp.h"
49 
50 #define _COMPONENT ACPI_UTILITIES
51  ACPI_MODULE_NAME ("utdebug")
52 
53 
54 #ifdef ACPI_DEBUG_OUTPUT
55 
56 static ACPI_THREAD_ID AcpiGbl_PreviousThreadId = (ACPI_THREAD_ID) 0xFFFFFFFF;
57 static const char *AcpiGbl_FunctionEntryPrefix = "----Entry";
58 static const char *AcpiGbl_FunctionExitPrefix = "----Exit-";
59 
60 
61 /*******************************************************************************
62  *
63  * FUNCTION: AcpiUtInitStackPtrTrace
64  *
65  * PARAMETERS: None
66  *
67  * RETURN: None
68  *
69  * DESCRIPTION: Save the current CPU stack pointer at subsystem startup
70  *
71  ******************************************************************************/
72 
73 void
75  void)
76 {
77  ACPI_SIZE CurrentSp;
78 
79 
80  AcpiGbl_EntryStackPointer = &CurrentSp;
81 }
82 
83 
84 /*******************************************************************************
85  *
86  * FUNCTION: AcpiUtTrackStackPtr
87  *
88  * PARAMETERS: None
89  *
90  * RETURN: None
91  *
92  * DESCRIPTION: Save the current CPU stack pointer
93  *
94  ******************************************************************************/
95 
96 void
98  void)
99 {
100  ACPI_SIZE CurrentSp;
101 
102 
103  if (&CurrentSp < AcpiGbl_LowestStackPointer)
104  {
105  AcpiGbl_LowestStackPointer = &CurrentSp;
106  }
107 
108  if (AcpiGbl_NestingLevel > AcpiGbl_DeepestNesting)
109  {
110  AcpiGbl_DeepestNesting = AcpiGbl_NestingLevel;
111  }
112 }
113 
114 
115 /*******************************************************************************
116  *
117  * FUNCTION: AcpiUtTrimFunctionName
118  *
119  * PARAMETERS: FunctionName - Ascii string containing a procedure name
120  *
121  * RETURN: Updated pointer to the function name
122  *
123  * DESCRIPTION: Remove the "Acpi" prefix from the function name, if present.
124  * This allows compiler macros such as __FUNCTION__ to be used
125  * with no change to the debug output.
126  *
127  ******************************************************************************/
128 
129 static const char *
130 AcpiUtTrimFunctionName (
131  const char *FunctionName)
132 {
133 
134  /* All Function names are longer than 4 chars, check is safe */
135 
137  {
138  /* This is the case where the original source has not been modified */
139 
140  return (FunctionName + 4);
141  }
142 
144  {
145  /* This is the case where the source has been 'linuxized' */
146 
147  return (FunctionName + 5);
148  }
149 
150  return (FunctionName);
151 }
152 
153 
154 /*******************************************************************************
155  *
156  * FUNCTION: AcpiDebugPrint
157  *
158  * PARAMETERS: RequestedDebugLevel - Requested debug print level
159  * LineNumber - Caller's line number (for error output)
160  * FunctionName - Caller's procedure name
161  * ModuleName - Caller's module name
162  * ComponentId - Caller's component ID
163  * Format - Printf format field
164  * ... - Optional printf arguments
165  *
166  * RETURN: None
167  *
168  * DESCRIPTION: Print error message with prefix consisting of the module name,
169  * line number, and component ID.
170  *
171  ******************************************************************************/
172 
174 AcpiDebugPrint (
175  UINT32 RequestedDebugLevel,
177  const char *FunctionName,
178  const char *ModuleName,
180  const char *Format,
181  ...)
182 {
183  ACPI_THREAD_ID ThreadId;
184  va_list args;
185 #ifdef ACPI_APPLICATION
186  int FillCount;
187 #endif
188 
189  /* Check if debug output enabled */
190 
191  if (!ACPI_IS_DEBUG_ENABLED (RequestedDebugLevel, ComponentId))
192  {
193  return;
194  }
195 
196  /*
197  * Thread tracking and context switch notification
198  */
199  ThreadId = AcpiOsGetThreadId ();
200  if (ThreadId != AcpiGbl_PreviousThreadId)
201  {
202  if (ACPI_LV_THREADS & AcpiDbgLevel)
203  {
204  AcpiOsPrintf (
205  "\n**** Context Switch from TID %u to TID %u ****\n\n",
206  (UINT32) AcpiGbl_PreviousThreadId, (UINT32) ThreadId);
207  }
208 
209  AcpiGbl_PreviousThreadId = ThreadId;
210  AcpiGbl_NestingLevel = 0;
211  }
212 
213  /*
214  * Display the module name, current line number, thread ID (if requested),
215  * current procedure nesting level, and the current procedure name
216  */
217  AcpiOsPrintf ("%9s-%04d ", ModuleName, LineNumber);
218 
219 #ifdef ACPI_APPLICATION
220  /*
221  * For AcpiExec/iASL only, emit the thread ID and nesting level.
222  * Note: nesting level is really only useful during a single-thread
223  * execution. Otherwise, multiple threads will keep resetting the
224  * level.
225  */
226  if (ACPI_LV_THREADS & AcpiDbgLevel)
227  {
228  AcpiOsPrintf ("[%u] ", (UINT32) ThreadId);
229  }
230 
231  FillCount = 48 - AcpiGbl_NestingLevel -
232  strlen (AcpiUtTrimFunctionName (FunctionName));
233  if (FillCount < 0)
234  {
235  FillCount = 0;
236  }
237 
238  AcpiOsPrintf ("[%02d] %*s",
239  AcpiGbl_NestingLevel, AcpiGbl_NestingLevel + 1, " ");
240  AcpiOsPrintf ("%s%*s: ",
241  AcpiUtTrimFunctionName (FunctionName), FillCount, " ");
242 
243 #else
244  AcpiOsPrintf ("%-22.22s: ", AcpiUtTrimFunctionName (FunctionName));
245 #endif
246 
247  va_start (args, Format);
249  va_end (args);
250 }
251 
252 ACPI_EXPORT_SYMBOL (AcpiDebugPrint)
253 
254 
255 /*******************************************************************************
256  *
257  * FUNCTION: AcpiDebugPrintRaw
258  *
259  * PARAMETERS: RequestedDebugLevel - Requested debug print level
260  * LineNumber - Caller's line number
261  * FunctionName - Caller's procedure name
262  * ModuleName - Caller's module name
263  * ComponentId - Caller's component ID
264  * Format - Printf format field
265  * ... - Optional printf arguments
266  *
267  * RETURN: None
268  *
269  * DESCRIPTION: Print message with no headers. Has same interface as
270  * DebugPrint so that the same macros can be used.
271  *
272  ******************************************************************************/
273 
275 AcpiDebugPrintRaw (
276  UINT32 RequestedDebugLevel,
278  const char *FunctionName,
279  const char *ModuleName,
281  const char *Format,
282  ...)
283 {
284  va_list args;
285 
286 
287  /* Check if debug output enabled */
288 
289  if (!ACPI_IS_DEBUG_ENABLED (RequestedDebugLevel, ComponentId))
290  {
291  return;
292  }
293 
294  va_start (args, Format);
296  va_end (args);
297 }
298 
299 ACPI_EXPORT_SYMBOL (AcpiDebugPrintRaw)
300 
301 
302 /*******************************************************************************
303  *
304  * FUNCTION: AcpiUtTrace
305  *
306  * PARAMETERS: LineNumber - Caller's line number
307  * FunctionName - Caller's procedure name
308  * ModuleName - Caller's module name
309  * ComponentId - Caller's component ID
310  *
311  * RETURN: None
312  *
313  * DESCRIPTION: Function entry trace. Prints only if TRACE_FUNCTIONS bit is
314  * set in DebugLevel
315  *
316  ******************************************************************************/
317 
318 void
319 AcpiUtTrace (
321  const char *FunctionName,
322  const char *ModuleName,
324 {
325 
326  AcpiGbl_NestingLevel++;
328 
329  /* Check if enabled up-front for performance */
330 
332  {
333  AcpiDebugPrint (ACPI_LV_FUNCTIONS,
335  "%s\n", AcpiGbl_FunctionEntryPrefix);
336  }
337 }
338 
340 
341 
342 /*******************************************************************************
343  *
344  * FUNCTION: AcpiUtTracePtr
345  *
346  * PARAMETERS: LineNumber - Caller's line number
347  * FunctionName - Caller's procedure name
348  * ModuleName - Caller's module name
349  * ComponentId - Caller's component ID
350  * Pointer - Pointer to display
351  *
352  * RETURN: None
353  *
354  * DESCRIPTION: Function entry trace. Prints only if TRACE_FUNCTIONS bit is
355  * set in DebugLevel
356  *
357  ******************************************************************************/
358 
359 void
362  const char *FunctionName,
363  const char *ModuleName,
365  const void *Pointer)
366 {
367 
368  AcpiGbl_NestingLevel++;
370 
371  /* Check if enabled up-front for performance */
372 
374  {
375  AcpiDebugPrint (ACPI_LV_FUNCTIONS,
377  "%s %p\n", AcpiGbl_FunctionEntryPrefix, Pointer);
378  }
379 }
380 
381 
382 /*******************************************************************************
383  *
384  * FUNCTION: AcpiUtTraceStr
385  *
386  * PARAMETERS: LineNumber - Caller's line number
387  * FunctionName - Caller's procedure name
388  * ModuleName - Caller's module name
389  * ComponentId - Caller's component ID
390  * String - Additional string to display
391  *
392  * RETURN: None
393  *
394  * DESCRIPTION: Function entry trace. Prints only if TRACE_FUNCTIONS bit is
395  * set in DebugLevel
396  *
397  ******************************************************************************/
398 
399 void
402  const char *FunctionName,
403  const char *ModuleName,
405  const char *String)
406 {
407 
408  AcpiGbl_NestingLevel++;
410 
411  /* Check if enabled up-front for performance */
412 
414  {
415  AcpiDebugPrint (ACPI_LV_FUNCTIONS,
417  "%s %s\n", AcpiGbl_FunctionEntryPrefix, String);
418  }
419 }
420 
421 
422 /*******************************************************************************
423  *
424  * FUNCTION: AcpiUtTraceU32
425  *
426  * PARAMETERS: LineNumber - Caller's line number
427  * FunctionName - Caller's procedure name
428  * ModuleName - Caller's module name
429  * ComponentId - Caller's component ID
430  * Integer - Integer to display
431  *
432  * RETURN: None
433  *
434  * DESCRIPTION: Function entry trace. Prints only if TRACE_FUNCTIONS bit is
435  * set in DebugLevel
436  *
437  ******************************************************************************/
438 
439 void
442  const char *FunctionName,
443  const char *ModuleName,
445  UINT32 Integer)
446 {
447 
448  AcpiGbl_NestingLevel++;
450 
451  /* Check if enabled up-front for performance */
452 
454  {
455  AcpiDebugPrint (ACPI_LV_FUNCTIONS,
457  "%s %08X\n", AcpiGbl_FunctionEntryPrefix, Integer);
458  }
459 }
460 
461 
462 /*******************************************************************************
463  *
464  * FUNCTION: AcpiUtExit
465  *
466  * PARAMETERS: LineNumber - Caller's line number
467  * FunctionName - Caller's procedure name
468  * ModuleName - Caller's module name
469  * ComponentId - Caller's component ID
470  *
471  * RETURN: None
472  *
473  * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is
474  * set in DebugLevel
475  *
476  ******************************************************************************/
477 
478 void
479 AcpiUtExit (
481  const char *FunctionName,
482  const char *ModuleName,
484 {
485 
486  /* Check if enabled up-front for performance */
487 
489  {
490  AcpiDebugPrint (ACPI_LV_FUNCTIONS,
492  "%s\n", AcpiGbl_FunctionExitPrefix);
493  }
494 
495  if (AcpiGbl_NestingLevel)
496  {
497  AcpiGbl_NestingLevel--;
498  }
499 }
500 
502 
503 
504 /*******************************************************************************
505  *
506  * FUNCTION: AcpiUtStatusExit
507  *
508  * PARAMETERS: LineNumber - Caller's line number
509  * FunctionName - Caller's procedure name
510  * ModuleName - Caller's module name
511  * ComponentId - Caller's component ID
512  * Status - Exit status code
513  *
514  * RETURN: None
515  *
516  * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is
517  * set in DebugLevel. Prints exit status also.
518  *
519  ******************************************************************************/
520 
521 void
524  const char *FunctionName,
525  const char *ModuleName,
528 {
529 
530  /* Check if enabled up-front for performance */
531 
533  {
534  if (ACPI_SUCCESS (Status))
535  {
536  AcpiDebugPrint (ACPI_LV_FUNCTIONS,
538  "%s %s\n", AcpiGbl_FunctionExitPrefix,
540  }
541  else
542  {
543  AcpiDebugPrint (ACPI_LV_FUNCTIONS,
545  "%s ****Exception****: %s\n", AcpiGbl_FunctionExitPrefix,
547  }
548  }
549 
550  if (AcpiGbl_NestingLevel)
551  {
552  AcpiGbl_NestingLevel--;
553  }
554 }
555 
557 
558 
559 /*******************************************************************************
560  *
561  * FUNCTION: AcpiUtValueExit
562  *
563  * PARAMETERS: LineNumber - Caller's line number
564  * FunctionName - Caller's procedure name
565  * ModuleName - Caller's module name
566  * ComponentId - Caller's component ID
567  * Value - Value to be printed with exit msg
568  *
569  * RETURN: None
570  *
571  * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is
572  * set in DebugLevel. Prints exit value also.
573  *
574  ******************************************************************************/
575 
576 void
579  const char *FunctionName,
580  const char *ModuleName,
582  UINT64 Value)
583 {
584 
585  /* Check if enabled up-front for performance */
586 
588  {
589  AcpiDebugPrint (ACPI_LV_FUNCTIONS,
591  "%s %8.8X%8.8X\n", AcpiGbl_FunctionExitPrefix,
593  }
594 
595  if (AcpiGbl_NestingLevel)
596  {
597  AcpiGbl_NestingLevel--;
598  }
599 }
600 
602 
603 
604 /*******************************************************************************
605  *
606  * FUNCTION: AcpiUtPtrExit
607  *
608  * PARAMETERS: LineNumber - Caller's line number
609  * FunctionName - Caller's procedure name
610  * ModuleName - Caller's module name
611  * ComponentId - Caller's component ID
612  * Ptr - Pointer to display
613  *
614  * RETURN: None
615  *
616  * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is
617  * set in DebugLevel. Prints exit value also.
618  *
619  ******************************************************************************/
620 
621 void
624  const char *FunctionName,
625  const char *ModuleName,
627  UINT8 *Ptr)
628 {
629 
630  /* Check if enabled up-front for performance */
631 
633  {
634  AcpiDebugPrint (ACPI_LV_FUNCTIONS,
636  "%s %p\n", AcpiGbl_FunctionExitPrefix, Ptr);
637  }
638 
639  if (AcpiGbl_NestingLevel)
640  {
641  AcpiGbl_NestingLevel--;
642  }
643 }
644 
645 
646 /*******************************************************************************
647  *
648  * FUNCTION: AcpiUtStrExit
649  *
650  * PARAMETERS: LineNumber - Caller's line number
651  * FunctionName - Caller's procedure name
652  * ModuleName - Caller's module name
653  * ComponentId - Caller's component ID
654  * String - String to display
655  *
656  * RETURN: None
657  *
658  * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is
659  * set in DebugLevel. Prints exit value also.
660  *
661  ******************************************************************************/
662 
663 void
666  const char *FunctionName,
667  const char *ModuleName,
669  const char *String)
670 {
671 
672  /* Check if enabled up-front for performance */
673 
675  {
676  AcpiDebugPrint (ACPI_LV_FUNCTIONS,
678  "%s %s\n", AcpiGbl_FunctionExitPrefix, String);
679  }
680 
681  if (AcpiGbl_NestingLevel)
682  {
683  AcpiGbl_NestingLevel--;
684  }
685 }
686 
687 
688 /*******************************************************************************
689  *
690  * FUNCTION: AcpiTracePoint
691  *
692  * PARAMETERS: Type - Trace event type
693  * Begin - TRUE if before execution
694  * Aml - Executed AML address
695  * Pathname - Object path
696  * Pointer - Pointer to the related object
697  *
698  * RETURN: None
699  *
700  * DESCRIPTION: Interpreter execution trace.
701  *
702  ******************************************************************************/
703 
704 void
705 AcpiTracePoint (
707  BOOLEAN Begin,
708  UINT8 *Aml,
709  char *Pathname)
710 {
711 
713 
715 
716 #ifdef ACPI_USE_SYSTEM_TRACER
718 #endif
719 }
720 
721 ACPI_EXPORT_SYMBOL (AcpiTracePoint)
722 
723 
724 #endif
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2374
void AcpiUtTrackStackPtr(void)
void AcpiExTracePoint(ACPI_TRACE_EVENT_TYPE Type, BOOLEAN Begin, UINT8 *Aml, char *Pathname)
Definition: extrace.c:181
#define ACPI_SUCCESS(a)
Definition: acexcep.h:94
Type
Definition: Type.h:6
ACPI_THREAD_ID AcpiOsGetThreadId(void)
Definition: osl.c:217
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
void AcpiUtTraceStr(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *String)
void AcpiUtStatusExit(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, ACPI_STATUS Status)
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
Definition: fsrtlfuncs.h:898
void AcpiUtExit(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId)
#define ACPI_LV_FUNCTIONS
Definition: acoutput.h:117
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 ComponentId
Definition: acpixf.h:1274
static WCHAR String[]
Definition: stringtable.c:55
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char * ModuleName
Definition: acpixf.h:1274
UINT32 ACPI_STATUS
Definition: actypes.h:460
void AcpiUtPtrExit(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT8 *Ptr)
Definition: match.c:390
void AcpiUtValueExit(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT64 Value)
#define va_end(ap)
Definition: acmsvcex.h:90
const char * AcpiFormatException(ACPI_STATUS Status)
Definition: utexcep.c:70
unsigned int UINT32
#define ACPI_MODULE_NAME(Name)
Definition: acoutput.h:216
#define ACPI_EXPORT_SYMBOL(Symbol)
Definition: actypes.h:343
unsigned char BOOLEAN
char * va_list
Definition: acmsvcex.h:78
#define ACPI_LV_THREADS
Definition: acoutput.h:126
#define ACPI_FUNCTION_ENTRY()
Definition: acoutput.h:484
#define ACPI_INTERNAL_VAR_XFACE
Definition: acenv.h:338
ACPI_TRACE_EVENT_TYPE
Definition: actypes.h:1374
void AcpiUtTracePtr(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const void *Pointer)
void AcpiOsVprintf(const char *Format, va_list Args)
Definition: osl.c:865
void AcpiUtStrExit(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, const char *String)
void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf(const char *Format,...)
Definition: osl.c:851
#define ACPI_PREFIX_LOWER
Definition: acnames.h:87
Status
Definition: gdiplustypes.h:24
void AcpiUtTrace(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 LineNumber
Definition: acpixf.h:1216
#define ACPI_FORMAT_UINT64(i)
Definition: acmacros.h:71
#define ACPI_PREFIX_MIXED
Definition: acnames.h:86
void AcpiUtInitStackPtrTrace(void)
#define va_start(ap, A)
Definition: acmsvcex.h:91
void AcpiUtTraceU32(UINT32 LineNumber, const char *FunctionName, const char *ModuleName, UINT32 ComponentId, UINT32 Integer)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char * FunctionName
Definition: acpixf.h:1274
void AcpiOsTracePoint(ACPI_TRACE_EVENT_TYPE Type, BOOLEAN Begin, UINT8 *Aml, char *Pathname)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN Begin
Definition: acpixf.h:1297
#define ACPI_IS_DEBUG_ENABLED(Level, Component)
Definition: acoutput.h:490
unsigned long long UINT64
#define ACPI_CAST_PTR(t, p)
Definition: actypes.h:544
unsigned char UINT8
#define args
Definition: format.c:66
#define ACPI_THREAD_ID
Definition: actypes.h:144
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN UINT8 * Aml
Definition: acpixf.h:1297
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING Pathname
Definition: acpixf.h:700