ShellPkg/DP: Add more check for input parameters
[mirror_edk2.git] / ShellPkg / DynamicCommand / DpDynamicCommand / Dp.uni
CommitLineData
e329f98b
JJ
1// *++\r
2//\r
3// (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.<BR>\r
115eae65 4// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
e329f98b
JJ
5// (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
6// This program and the accompanying materials\r
7// are licensed and made available under the terms and conditions of the BSD License\r
8// which accompanies this distribution. The full text of the license may be found at\r
9// http://opensource.org/licenses/bsd-license.php\r
ba0014b9 10//\r
e329f98b
JJ
11// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13//\r
14//\r
15// Module Name:\r
16//\r
17// DpStrings.uni\r
18//\r
19// Abstract:\r
20//\r
21// String definitions for the Shell dp command\r
22//\r
23// Revision History:\r
24//\r
25// --*/\r
26\r
27/=#\r
28\r
29#langdef en-US "English"\r
30\r
31#string STR_DP_UP #language en-US "UP"\r
32#string STR_DP_DOWN #language en-US "DOWN"\r
33#string STR_DP_DASHES #language en-US "-------------------------------------------------------------------------------\n"\r
34#string STR_DP_SECTION_HEADER #language en-US "\n==[ %s ]========\n"\r
35#string STR_DP_INVALID_ARG #language en-US "Invalid argument(s)\n"\r
728f8950
DB
36#string STR_DP_TOO_MANY #language en-US "Too many arguments\n"\r
37#string STR_DP_TOO_FEW #language en-US "Too few arguments\n"\r
38#string STR_DP_INVALID_NUM_ARG #language en-US "Invalid argument(s), the value of %H%s%N must be numbers\n"\r
39#string STR_DP_INVALID_RANGE #language en-US "Invalid argument(s), the value of %H%s%N must be between %H%d%N and %H%d%N\n"\r
40#string STR_DP_CONFLICT_ARG #language en-US "Invalid argument(s), %H%s%N can not be used together with %H%s%N\n"\r
41#string STR_DP_NO_RAW_ALL #language en-US "Invalid argument(s), -n flag must use with -A or -R\n"\r
e329f98b
JJ
42#string STR_DP_HANDLES_ERROR #language en-US "Locate all handles error - %r\n"\r
43#string STR_DP_ERROR_NAME #language en-US "Unknown driver name"\r
ef224032 44#string STR_PERF_PROPERTY_NOT_FOUND #language en-US "Performance property not found\n"\r
e329f98b
JJ
45#string STR_DP_BUILD_REVISION #language en-US "\nDP Build Version: %d.%d\n"\r
46#string STR_DP_KHZ #language en-US "System Performance Timer Frequency: %,8d (KHz)\n"\r
47#string STR_DP_TIMER_PROPERTIES #language en-US "System Performance Timer counts %s from 0x%Lx to 0x%Lx\n"\r
48#string STR_DP_VERBOSE_THRESHOLD #language en-US "Measurements less than %,Ld microseconds are not displayed.\n"\r
49#string STR_DP_SECTION_PHASES #language en-US "Major Phases"\r
50#string STR_DP_SEC_PHASE #language en-US " SEC Phase Duration: %L8d (us)\n"\r
51#string STR_DP_PHASE_BDSTO #language en-US " BDS Timeout: %L8d (ms) included in BDS Duration\n"\r
52#string STR_DP_PHASE_DURATION #language en-US "%5a Phase Duration: %L8d (ms)\n"\r
53#string STR_DP_TOTAL_DURATION #language en-US "Total Duration: %L8d (ms)\n"\r
54#string STR_DP_SECTION_DRIVERS #language en-US "Drivers by Handle"\r
55#string STR_DP_HANDLE_SECTION #language en-US "Index: Handle Driver Name Description Time(us)\n"\r
56#string STR_DP_HANDLE_VARS #language en-US "%5d: [%3x] %36s %11s %L8d\n"\r
57#string STR_DP_HANDLE_SECTION2 #language en-US "Index: Handle Driver Name Description Time(us) ID\n"\r
58#string STR_DP_HANDLE_VARS2 #language en-US "%5d: [%3x] %36s %11s %L8d %5d\n"\r
59#string STR_DP_SECTION_PEIMS #language en-US "PEIMs"\r
115eae65
DB
60#string STR_DP_PEIM_SECTION #language en-US "Index: Instance GUID Token Time(us)\n"\r
61#string STR_DP_PEIM_VARS #language en-US "%5d: %g PEIM %L8d\n"\r
62#string STR_DP_PEIM_SECTION2 #language en-US "Index: Instance GUID Token Time(us) ID\n"\r
63#string STR_DP_PEIM_VARS2 #language en-US "%5d: %g PEIM %L8d %5d\n"\r
e329f98b
JJ
64#string STR_DP_SECTION_GENERAL #language en-US "General"\r
65#string STR_DP_GLOBAL_SECTION #language en-US "Index Name Description Time(us)\n"\r
66#string STR_DP_GLOBAL_VARS #language en-US "%5d:%25s %31s %L8d\n"\r
67#string STR_DP_GLOBAL_SECTION2 #language en-US "Index Name Description Time(us) ID\n"\r
68#string STR_DP_GLOBAL_VARS2 #language en-US "%5d:%25s %31s %L8d %5d\n"\r
69#string STR_DP_SECTION_CUMULATIVE #language en-US "Cumulative"\r
70#string STR_DP_CUMULATIVE_SECT_1 #language en-US "(Times in microsec.) Cumulative Average Shortest Longest\n"\r
71#string STR_DP_CUMULATIVE_SECT_2 #language en-US " Name Count Duration Duration Duration Duration\n"\r
72#string STR_DP_CUMULATIVE_STATS #language en-US "%11a %8d %L10d %L10d %L10d %L10d\n"\r
73#string STR_DP_SECTION_STATISTICS #language en-US "Statistics"\r
74#string STR_DP_STATS_NUMTRACE #language en-US "There were %d measurements taken, of which:\n"\r
75#string STR_DP_STATS_NUMINCOMPLETE #language en-US "%,8d are incomplete.\n"\r
76#string STR_DP_STATS_NUMPHASES #language en-US "%,8d are major execution phases.\n"\r
77#string STR_DP_STATS_NUMHANDLES #language en-US "%,8d have non-NULL handles, %d are NULL.\n"\r
78#string STR_DP_STATS_NUMPEIMS #language en-US "%,8d are PEIMs.\n"\r
79#string STR_DP_STATS_NUMGLOBALS #language en-US "%,8d are general measurements.\n"\r
80#string STR_DP_STATS_NUMPROFILE #language en-US "%,8d are profiling records.\n"\r
e329f98b
JJ
81#string STR_DP_SECTION_ALL #language en-US "Sequential Trace Records"\r
82#string STR_DP_ALL_HEADR #language en-US "\nIndex Handle Module Token Time(us)\n"\r
83#string STR_DP_ALL_VARS #language en-US "%5d:%3s0x%08p %36s %13s %L8d\n"\r
84#string STR_DP_ALL_DASHES2 #language en-US "-------------------------------------------------------------------------------------\n"\r
85#string STR_DP_ALL_HEADR2 #language en-US "\nIndex Handle Module Token Time(us) ID\n"\r
86#string STR_DP_ALL_VARS2 #language en-US "%5d:%3s0x%08p %36s %13s %L8d %5d\n"\r
87#string STR_DP_SECTION_RAWTRACE #language en-US "RAW Trace"\r
e329f98b
JJ
88#string STR_DP_RAW_DASHES #language en-US "---------------------------------------------------------------------------------------------------------------------------\n"\r
89#string STR_DP_RAW_VARS #language en-US "%5d: %16LX %16LX %16LX %31a %31a\n"\r
90#string STR_DP_RAW_HEADR #language en-US "\nIndex Handle Start Count End Count Token Module\n"\r
91#string STR_DP_RAW_DASHES2 #language en-US "---------------------------------------------------------------------------------------------------------------------------------\n"\r
92#string STR_DP_RAW_VARS2 #language en-US "%5d: %16LX %16LX %16LX %31a %31a %5d\n"\r
93#string STR_DP_RAW_HEADR2 #language en-US "\nIndex Handle Start Count End Count Token Module ID\n"\r
94#string STR_DP_INCOMPLETE #language en-US " I "\r
95#string STR_DP_COMPLETE #language en-US " "\r
96#string STR_ALIT_UNKNOWN #language en-US "Unknown"\r
4109d0d7
DB
97#string STR_DP_GET_ACPI_TABLE_FAIL #language en-US "Fail to get ACPI Table\n"\r
98#string STR_DP_GET_ACPI_FPDT_FAIL #language en-US "Fail to get Firmware Performance Data Table (FPDT) in ACPI Table\n"\r
e329f98b
JJ
99\r
100#string STR_GET_HELP_DP #language en-US ""\r
101".TH dp 0 "Display performance metrics"\r\n"\r
102".SH NAME\r\n"\r
103"Displays performance metrics that are stored in memory.\r\n"\r
104".SH SYNOPSIS\r\n"\r
5a56c049 105"DP [-b] [-v] [-x] [-s | -A | -R] [-t value] [-n count] [-c [token]][-i] [-?]\r\n"\r
e329f98b
JJ
106".SH OPTIONS\r\n"\r
107" \r\n"\r
108" -b - Displays on multiple pages\r\n"\r
109" -v - Displays additional information\r\n"\r
110" -x - Prevents display of individual measurements for cumulative items\r\n"\r
111" -s - Displays summary information only\r\n"\r
112" -A - Displays all measurements in a list\r\n"\r
113" -R - Displays all measurements in raw format\r\n"\r
e329f98b
JJ
114" -t VALUE - Sets display threshold to VALUE microseconds\r\n"\r
115" -n COUNT - Limits display to COUNT lines in All and Raw modes\r\n"\r
116" -i - Displays identifier\r\n"\r
ba0014b9 117" -c TOKEN - Display pre-defined and custom cumulative data\r\n"\r
e329f98b
JJ
118" Pre-defined cumulative token are:\r\n"\r
119" 1. LoadImage:\r\n"\r
120" 2. StartImage:\r\n"\r
121" 3. DB:Start:\r\n"\r
122" 4. DB:Support:\r\n"\r
123" -? - Displays DP help information\r\n"\r
124".SH DESCRIPTION\r\n"\r
125" \r\n"\r
126"NOTES:\r\n"\r
127" 1. Displays Performance metrics that are stored in memory.\r\n"\r
128".SH RETURNVALUES\r\n"\r
129" \r\n"\r
130"RETURN VALUES:\r\n"\r
131" SHELL_SUCCESS The action was completed as requested.\r\n"\r
132" SHELL_NOT_FOUND The requested option was not found.\r\n"\r
133" SHELL_INVALID_PARAMETER One of the passed in parameters was incorrectly formatted or its value was out of bounds.\r\n"\r
134" SHELL_UNSUPPORTED The action as requested was unsupported.\r\n"\r
135" SHELL_OUT_OF_RESOURCES There was insufficient free space for the request to be completed.\r\n"\r