From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-00010702.pphosted.com (mx0a-00010702.pphosted.com [148.163.156.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A429D21A1349E for ; Thu, 4 May 2017 14:53:12 -0700 (PDT) Received: from pps.filterd (m0098781.ppops.net [127.0.0.1]) by mx0a-00010702.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v44Lp919030167; Thu, 4 May 2017 16:53:12 -0500 Received: from ni.com (skprod2.natinst.com [130.164.80.23]) by mx0a-00010702.pphosted.com with ESMTP id 2a72m587tu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 May 2017 16:53:11 -0500 Received: from us-aus-exch1.ni.corp.natinst.com (us-aus-exch1.ni.corp.natinst.com [130.164.68.11]) by us-aus-skprod2.natinst.com (8.16.0.17/8.16.0.17) with ESMTPS id v44LrAIM001512 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 4 May 2017 16:53:10 -0500 Received: from us-aus-exhub1.ni.corp.natinst.com (130.164.68.41) by us-aus-exch1.ni.corp.natinst.com (130.164.68.11) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Thu, 4 May 2017 16:53:10 -0500 Received: from jmw-lm181.ni.corp.natinst.com (130.164.49.7) by us-aus-exhub1.ni.corp.natinst.com (130.164.68.41) with Microsoft SMTP Server id 15.0.1156.6 via Frontend Transport; Thu, 4 May 2017 16:53:10 -0500 From: Jeff Westfahl To: CC: Jeff Westfahl , Ruiyu Ni , "Jaben Carsey" Date: Thu, 4 May 2017 16:53:01 -0500 Message-ID: <1493934784-30012-1-git-send-email-jeff.westfahl@ni.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-05-04_14:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=30 priorityscore=1501 malwarescore=0 suspectscore=4 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=30 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705040308 Subject: [PATCH 0/3] ShellPkg/HandleParsingLib: Show LoadedImageProtocol info X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2017 21:53:12 -0000 Content-Type: text/plain In the old shell, 'dh -v' showed some useful information about the file path associated with a LoadedImageProtocol that is no longer shown in the modern shell. For example, with the old shell: Handle D3 (3A552218) Image (3A54C918) File:MicrocodeUpdate ParentHandle..: 3A666398 SystemTable...: 3D2A8F18 DeviceHandle..: 3B1C8098 FilePath......: FvFile(F3331DE6-4A55-44E4-B767-7453F7A1A021) ImageBase.....: 3D650000 - 3D655540 ImageSize.....: 5540 CodeType......: RT_code DataType......: RT_data compared to the new shell: D3: 3A552218 LoadedImage Revision......: 0x00001000 ParentHandle..: 3A666398 SystemTable...: 3D2A8F18 DeviceHandle..: 3B1C8098 FilePath......: 3A552298 OptionsSize...: 0 LoadOptions...: 0 ImageBase.....: 3D650000 ImageSize.....: 5540 CodeType......: EfiRuntimeServicesCode DataType......: EfiRuntimeServicesData Unload........: 0 Here is the output for the same handle with this series applied: D3: 3A552218 LoadedImage Name..........: MicrocodeUpdate Revision......: 0x00001000 ParentHandle..: 3A666398 SystemTable...: 3D2A8F18 DeviceHandle..: 3B1C8098 FilePath......: FvFile(F3331DE6-4A55-44E4-B767-7453F7A1A021) OptionsSize...: 0 LoadOptions...: 0 ImageBase.....: 3D650000 ImageSize.....: 5540 CodeType......: EfiRuntimeServicesCode DataType......: EfiRuntimeServicesData Unload........: 0 Cc: Ruiyu Ni Cc: Jaben Carsey Jeff Westfahl (3): ShellPkg/HandleParsingLib: Show LoadedImageProtocol file path as text ShellPkg/HandleParsingLib: Open LoadedImageProtocol first ShellPkg/HandleParsingLib: Show LoadedImageProtocol file name .../UefiHandleParsingLib/UefiHandleParsingLib.c | 111 +++++++++++++++++++-- .../UefiHandleParsingLib/UefiHandleParsingLib.uni | 4 +- 2 files changed, 104 insertions(+), 11 deletions(-) -- 2.7.4