Dump performance data. @param[in] ImageHandle The image handle. @param[in] SystemTable The system table. @retval SHELL_SUCCESS Command completed successfully. @retval SHELL_INVALID_PARAMETER Command usage error. @retval SHELL_ABORTED The user aborts the operation. @retval value Unknown error. **/
| 686 | @retval value Unknown error. |
| 687 | **/ |
| 688 | SHELL_STATUS |
| 689 | RunDp ( |
| 690 | IN EFI_HANDLE ImageHandle, |
| 691 | IN EFI_SYSTEM_TABLE *SystemTable |
| 692 | ) |
| 693 | { |
| 694 | LIST_ENTRY *ParamPackage; |
| 695 | CONST CHAR16 *CmdLineArg; |
| 696 | EFI_STATUS Status; |
| 697 | |
| 698 | PERFORMANCE_PROPERTY *PerformanceProperty; |
| 699 | UINTN Number2Display; |
| 700 | |
| 701 | EFI_STRING StringPtr; |
| 702 | BOOLEAN SummaryMode; |
| 703 | BOOLEAN VerboseMode; |
| 704 | BOOLEAN AllMode; |
| 705 | BOOLEAN RawMode; |
| 706 | BOOLEAN TraceMode; |
| 707 | BOOLEAN ProfileMode; |
| 708 | BOOLEAN ExcludeMode; |
| 709 | BOOLEAN CumulativeMode; |
| 710 | CONST CHAR16 *CustomCumulativeToken; |
| 711 | PERF_CUM_DATA *CustomCumulativeData; |
| 712 | UINTN NameSize; |
| 713 | SHELL_STATUS ShellStatus; |
| 714 | TIMER_INFO TimerInfo; |
| 715 | |
| 716 | StringPtr = NULL; |
| 717 | SummaryMode = FALSE; |
| 718 | VerboseMode = FALSE; |
| 719 | AllMode = FALSE; |
| 720 | RawMode = FALSE; |
| 721 | TraceMode = FALSE; |
| 722 | ProfileMode = FALSE; |
| 723 | ExcludeMode = FALSE; |
| 724 | CumulativeMode = FALSE; |
| 725 | CustomCumulativeData = NULL; |
| 726 | ShellStatus = SHELL_SUCCESS; |
| 727 | |
| 728 | // |
| 729 | // initialize the shell lib (we must be in non-auto-init...) |
| 730 | // |
| 731 | Status = ShellInitialize(); |
| 732 | ASSERT_EFI_ERROR(Status); |
| 733 | |
| 734 | // |
| 735 | // DP dump performance data by parsing FPDT table in ACPI table. |
| 736 | // Folloing 3 steps are to get the measurement form the FPDT table. |
| 737 | // |
| 738 | |
| 739 | // |
| 740 | //1. Get FPDT from ACPI table. |
| 741 | // |
| 742 | Status = GetBootPerformanceTable (); |
| 743 | if (EFI_ERROR(Status)) { |
| 744 | return Status; |
| 745 | } |
no test coverage detected