uttrack.c (bf61c8840efe60fd8f91446860b63338fb424158) uttrack.c (1d1ea1b723d9f239f736b8cf284327cbbf9d15d1)
1/******************************************************************************
2 *
3 * Module Name: uttrack - Memory allocation tracking routines (debug only)
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.

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

598
599 /* Validate the descriptor type using Type field and length */
600
601 descriptor_type = 0; /* Not a valid descriptor type */
602
603 switch (ACPI_GET_DESCRIPTOR_TYPE
604 (descriptor)) {
605 case ACPI_DESC_TYPE_OPERAND:
1/******************************************************************************
2 *
3 * Module Name: uttrack - Memory allocation tracking routines (debug only)
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.

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

598
599 /* Validate the descriptor type using Type field and length */
600
601 descriptor_type = 0; /* Not a valid descriptor type */
602
603 switch (ACPI_GET_DESCRIPTOR_TYPE
604 (descriptor)) {
605 case ACPI_DESC_TYPE_OPERAND:
606
606 if (element->size ==
607 sizeof(union
608 acpi_operand_object))
609 {
610 descriptor_type =
611 ACPI_DESC_TYPE_OPERAND;
612 }
613 break;
614
615 case ACPI_DESC_TYPE_PARSER:
607 if (element->size ==
608 sizeof(union
609 acpi_operand_object))
610 {
611 descriptor_type =
612 ACPI_DESC_TYPE_OPERAND;
613 }
614 break;
615
616 case ACPI_DESC_TYPE_PARSER:
617
616 if (element->size ==
617 sizeof(union
618 acpi_parse_object)) {
619 descriptor_type =
620 ACPI_DESC_TYPE_PARSER;
621 }
622 break;
623
624 case ACPI_DESC_TYPE_NAMED:
618 if (element->size ==
619 sizeof(union
620 acpi_parse_object)) {
621 descriptor_type =
622 ACPI_DESC_TYPE_PARSER;
623 }
624 break;
625
626 case ACPI_DESC_TYPE_NAMED:
627
625 if (element->size ==
626 sizeof(struct
627 acpi_namespace_node))
628 {
629 descriptor_type =
630 ACPI_DESC_TYPE_NAMED;
631 }
632 break;
633
634 default:
628 if (element->size ==
629 sizeof(struct
630 acpi_namespace_node))
631 {
632 descriptor_type =
633 ACPI_DESC_TYPE_NAMED;
634 }
635 break;
636
637 default:
638
635 break;
636 }
637
638 /* Display additional info for the major descriptor types */
639
640 switch (descriptor_type) {
641 case ACPI_DESC_TYPE_OPERAND:
639 break;
640 }
641
642 /* Display additional info for the major descriptor types */
643
644 switch (descriptor_type) {
645 case ACPI_DESC_TYPE_OPERAND:
646
642 acpi_os_printf
643 ("%12.12s RefCount 0x%04X\n",
644 acpi_ut_get_type_name
645 (descriptor->object.common.
646 type),
647 descriptor->object.common.
648 reference_count);
649 break;
650
651 case ACPI_DESC_TYPE_PARSER:
647 acpi_os_printf
648 ("%12.12s RefCount 0x%04X\n",
649 acpi_ut_get_type_name
650 (descriptor->object.common.
651 type),
652 descriptor->object.common.
653 reference_count);
654 break;
655
656 case ACPI_DESC_TYPE_PARSER:
657
652 acpi_os_printf
653 ("AmlOpcode 0x%04hX\n",
654 descriptor->op.asl.
655 aml_opcode);
656 break;
657
658 case ACPI_DESC_TYPE_NAMED:
658 acpi_os_printf
659 ("AmlOpcode 0x%04hX\n",
660 descriptor->op.asl.
661 aml_opcode);
662 break;
663
664 case ACPI_DESC_TYPE_NAMED:
665
659 acpi_os_printf("%4.4s\n",
660 acpi_ut_get_node_name
661 (&descriptor->
662 node));
663 break;
664
665 default:
666 acpi_os_printf("%4.4s\n",
667 acpi_ut_get_node_name
668 (&descriptor->
669 node));
670 break;
671
672 default:
673
666 acpi_os_printf("\n");
667 break;
668 }
669 }
670 }
671
672 num_outstanding++;
673 }

--- 19 unchanged lines hidden ---
674 acpi_os_printf("\n");
675 break;
676 }
677 }
678 }
679
680 num_outstanding++;
681 }

--- 19 unchanged lines hidden ---