aslxrefout.c (4b49587c3dd54aed8eb103d838a89ca79484a9b6) aslxrefout.c (6f1f1a6395c91c5a845727d7313921a6fe3d297b)
1/******************************************************************************
2 *
3 * Module Name: aslxrefout.c - support for optional cross-reference file
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 234 unchanged lines hidden (view full) ---

243OtCreateXrefFile (
244 void)
245{
246 ASL_XREF_INFO XrefInfo;
247
248
249 /* Build cross-reference output file if requested */
250
1/******************************************************************************
2 *
3 * Module Name: aslxrefout.c - support for optional cross-reference file
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 234 unchanged lines hidden (view full) ---

243OtCreateXrefFile (
244 void)
245{
246 ASL_XREF_INFO XrefInfo;
247
248
249 /* Build cross-reference output file if requested */
250
251 if (!Gbl_CrossReferenceOutput)
251 if (!AslGbl_CrossReferenceOutput)
252 {
253 return;
254 }
255
256 memset (&XrefInfo, 0, sizeof (ASL_XREF_INFO));
257
258 /* Cross-reference output file, part 2 (Method invocations) */
259
260 OtPrintHeaders ("Part 2: Method Reference Map "
261 "(Invocations of each user-defined control method)");
262
252 {
253 return;
254 }
255
256 memset (&XrefInfo, 0, sizeof (ASL_XREF_INFO));
257
258 /* Cross-reference output file, part 2 (Method invocations) */
259
260 OtPrintHeaders ("Part 2: Method Reference Map "
261 "(Invocations of each user-defined control method)");
262
263 TrWalkParseTree (Gbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,
263 TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,
264 OtXrefWalkPart2, NULL, &XrefInfo);
265
266 /* Cross-reference output file, part 3 (All other object refs) */
267
268 OtPrintHeaders ("Part 3: Full Object Reference Map "
269 "(Methods that reference each object in namespace");
270
264 OtXrefWalkPart2, NULL, &XrefInfo);
265
266 /* Cross-reference output file, part 3 (All other object refs) */
267
268 OtPrintHeaders ("Part 3: Full Object Reference Map "
269 "(Methods that reference each object in namespace");
270
271 TrWalkParseTree (Gbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,
271 TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,
272 OtXrefWalkPart3, NULL, &XrefInfo);
273
274 /* Cross-reference summary */
275
276 FlPrintFile (ASL_FILE_XREF_OUTPUT, "\n\nObject Summary\n");
277
278 FlPrintFile (ASL_FILE_XREF_OUTPUT,
279 "\nTotal methods: %u\n",

--- 335 unchanged lines hidden (view full) ---

615 "\n[%5u] %-40s %s Declaration (%u args)\n",
616 Op->Asl.LogicalLineNumber, ParentPath,
617 AcpiUtGetTypeName (Node->Type), Node->ArgCount);
618
619 XrefInfo->TotalUserMethods++;
620 XrefInfo->ThisMethodInvocations = 0;
621 XrefInfo->MethodOp = Op;
622
272 OtXrefWalkPart3, NULL, &XrefInfo);
273
274 /* Cross-reference summary */
275
276 FlPrintFile (ASL_FILE_XREF_OUTPUT, "\n\nObject Summary\n");
277
278 FlPrintFile (ASL_FILE_XREF_OUTPUT,
279 "\nTotal methods: %u\n",

--- 335 unchanged lines hidden (view full) ---

615 "\n[%5u] %-40s %s Declaration (%u args)\n",
616 Op->Asl.LogicalLineNumber, ParentPath,
617 AcpiUtGetTypeName (Node->Type), Node->ArgCount);
618
619 XrefInfo->TotalUserMethods++;
620 XrefInfo->ThisMethodInvocations = 0;
621 XrefInfo->MethodOp = Op;
622
623 (void) TrWalkParseTree (Gbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,
623 (void) TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,
624 OtXrefAnalysisWalkPart2, NULL, XrefInfo);
625
626 if (!XrefInfo->ThisMethodInvocations)
627 {
628 FlPrintFile (ASL_FILE_XREF_OUTPUT,
629 " Zero invocations of this method in this module\n");
630 XrefInfo->TotalUnreferenceUserMethods++;
631 }

--- 150 unchanged lines hidden (view full) ---

782 Op->Asl.LogicalLineNumber, ParentPath,
783 AcpiUtGetTypeName (Node->Type));
784 ACPI_FREE (ParentPath);
785
786 XrefInfo->MethodOp = Op;
787 XrefInfo->ThisObjectReferences = 0;
788 XrefInfo->TotalObjects = 0;
789
624 OtXrefAnalysisWalkPart2, NULL, XrefInfo);
625
626 if (!XrefInfo->ThisMethodInvocations)
627 {
628 FlPrintFile (ASL_FILE_XREF_OUTPUT,
629 " Zero invocations of this method in this module\n");
630 XrefInfo->TotalUnreferenceUserMethods++;
631 }

--- 150 unchanged lines hidden (view full) ---

782 Op->Asl.LogicalLineNumber, ParentPath,
783 AcpiUtGetTypeName (Node->Type));
784 ACPI_FREE (ParentPath);
785
786 XrefInfo->MethodOp = Op;
787 XrefInfo->ThisObjectReferences = 0;
788 XrefInfo->TotalObjects = 0;
789
790 (void) TrWalkParseTree (Gbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,
790 (void) TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,
791 OtXrefAnalysisWalkPart3, NULL, XrefInfo);
792
793 if (!XrefInfo->ThisObjectReferences)
794 {
795 FlPrintFile (ASL_FILE_XREF_OUTPUT,
796 " Zero references to this object in this module\n");
797 XrefInfo->TotalUnreferencedObjects++;
798 }

--- 124 unchanged lines hidden ---
791 OtXrefAnalysisWalkPart3, NULL, XrefInfo);
792
793 if (!XrefInfo->ThisObjectReferences)
794 {
795 FlPrintFile (ASL_FILE_XREF_OUTPUT,
796 " Zero references to this object in this module\n");
797 XrefInfo->TotalUnreferencedObjects++;
798 }

--- 124 unchanged lines hidden ---