关于ADK、SDK、WDK、WPT、WPR、WPA、WinDBG、poolmon

2023-10-18 13:35:02 浏览数 (1)

结论先行:

1、

WPT(Windows Performance Toolkit )由Windows Performance Recorder(WPR)和Windows Performance Analyzer(WPA)组成;

Windows ADK包含WPT,不包含WinDBG。

2、适用win7的sdk7.1 wdk7.1安装上后有一些功能失效了,那部分功能需要联网更新一些东西到本地,由于win7在2020.1.14已过期,微软把相关的资源下掉了,公网已经请求不到,所以功能失效。

Windows SDK包含了WinDBG、WPT(sdk7.1包含windbg和wpa,不包含wpr),但不包含poolmon

云服务器上WPT(wpr和wpa)跟实体物理机上的表现可能会有差异(云服务器使用wpr在开机、重启阶段采集数据时可能会报错);

SDK7.1区分x86和x64,64位系统得用64位的GRMSDKX_EN_DVD.iso;

SDK7.1里面的performance工具只有wpa、没有wpr,Win7/2008r2 为了使用wpr,只能用sdk8.1,低版本的sdk不包含wpr,高版本的又不支持Win7/2008r2。

3、

Windows WDK包含了WinDBG和poolmon,但不包含WPT。

一、WPT

WPT(Windows Performance Toolkit )由Windows Performance Recorder(WPR)和Windows Performance Analyzer(WPA)组成

1、Win10在 2014年10月1日 面世,Win10没出来之前的WPT版本有:

WPT v5.0 (from ADK/SDK 8.0)

WPT v5.1.0 (from ADK/SDK 8.1)

WPT v5.1.1 (from ADK/SDK 8.1 Update 1)

2、Win10出来后,WPT兼容Win8/2012后的系统,不再兼容Win7/2008R2

①Win7/2008R2要用WPT,只能用Windows 8.1 SDK

②Win10版(≥win10 2004)的winsdksetup.exe和adksetup.exe不适用2008R2和2012R2系统。

使用winsdksetup.exe和adksetup.exe(<win10 2004的)都能在≥2012R2系统上安装Windows Performance Toolkit(含wpr.exe命令)。

2008R2或Win7只能使用Windows 8.1 SDK,云服务器上WPT(wpr和wpa)跟实体物理机上的表现可能会有差异。

③2012R2不要使用适用Win10/Win11的ADK和SDK

不要被https://docs.microsoft.com/zh-cn/windows-hardware/get-started/adk-install#other-adk-downloads 里面的这部分误导,

我在2012R2上用[ADK for Windows 10 版本 2004]安装WPT后,执行WPR会报错,Windows8.1/2012R2的WPT最好用下面的

老版Windows 8.1 SDK

https://developer.microsoft.com/zh-cn/windows/downloads/sdk-archive/

https://go.microsoft.com/fwlink/p/?LinkId=323507

https://download.microsoft.com/download/B/0/C/B0C80BA3-8AD6-4958-810B-6882485230B5/standalonesdk/sdksetup.exe

如果安装windows performance toolkit (WPT=WPR WPA=Recorder Analyzer) 报错无法定位程序输入点,参考我这篇文档

https://cloud.tencent.com/developer/article/2059673

二、ADK/SDK/WDK的区别

a.Windows 评估和部署工具包 (Windows ADK)

adksetup.exe

新版ADK:https://docs.microsoft.com/zh-cn/windows-hardware/get-started/adk-install

老版Windows8.1 ADK:http://download.microsoft.com/download/6/A/E/6AEA92B0-A412-4622-983E-5B305D2EBE56/adk/adksetup.exe (链接已过期)

Windows ADK包含WPT,不包含WinDBG

b.Windows SDK(Microsoft Windows Software Development Kit)

winsdksetup.exe

https://developer.microsoft.com/zh-cn/windows/downloads/windows-sdk/

The Windows SDK contains a set of tools, code samples, documentation, compilers, headers, and libraries that developers can use to create applications that run on Microsoft Windows.

Windows SDK包含了WinDBG、WPT(sdk7.1包含windbg和wpa,不包含wpr),但不包含poolmon

SDK注意事项:

①新版Windows SDK

②老版Windows SDK7.1

SDK7.1区分x86和x64,64位系统得用64位的GRMSDKX_EN_DVD.iso

x64 ISO File Name: GRMSDKX_EN_DVD.iso

http://download.microsoft.com/download/F/1/0/F10113F5-B750-4969-A255-274341AC6BCE/GRMSDKX_EN_DVD.iso

x86 ISO File Name: GRMSDK_EN_DVD.iso

http://download.microsoft.com/download/F/1/0/F10113F5-B750-4969-A255-274341AC6BCE/GRMSDK_EN_DVD.iso

SDK7.1里面的performance工具只有wpa、没有wpr,Win7/2008r2 为了使用wpr,只能用sdk8.1,低版本的sdk不包含wpr,高版本的又不支持Win7/2008r2

云服务器上WPT(wpr和wpa)跟实体物理机上的表现可能会有差异(使用wpr在开机阶段采集数据时可能会报错,由于重启是由关机和开机组成的,所以重启阶段采集数据时也可能报错)

开机或重启时用wpr采集数据的报错举例:

The instance name passed was not recognized as valid by a WMI data provider.

Error code: 0x80071069

The event provider properties does not match with the internal state.

Error code: 0xc5583008

③老版Windows 8.1 SDK

https://developer.microsoft.com/zh-cn/windows/downloads/sdk-archive/

https://go.microsoft.com/fwlink/p/?LinkId=323507

https://download.microsoft.com/download/B/0/C/B0C80BA3-8AD6-4958-810B-6882485230B5/standalonesdk/sdksetup.exe

c.Windows 驱动程序工具包 (WDK)

wdksetup.exe

https://docs.microsoft.com/zh-cn/windows-hardware/drivers/download-the-wdk

https://docs.microsoft.com/zh-cn/windows-hardware/drivers/other-wdk-downloads

Windows WDK包含了WinDBG和poolmon,但不包含WPT

poolmon.exe的位置C:Program Files (x86)Windows Kits10Toolsx64poolmon.exe

cd /d "C:Program Files (x86)Windows Kits10Toolsx64"执行poolmon

关于poolmon,参考https://cloud.tencent.com/developer/article/1871416

Windows WDK没有像上面2个(Windows ADK、Windows SDK)那样的选项,没有选项反而省事了,直接下一步 → 下一步 → ... → 直到完成安装

WDK各版本所适用的操作系统版本

WDK7.1.0

https://www.microsoft.com/download/confirmation.aspx?id=11800

https://download.microsoft.com/download/4/A/2/4A25C7D5-EFBE-4182-B6A9-AE6850409A78/GRMWDK_EN_7600_1.ISO

三、.NET Framework

1、.NET Framework主页

http://go.microsoft.com/fwlink/?LinkID=187668

2、在线安装版,感觉下载慢,不如直接下载离线版后再安装快

①在线安装 Web installer

https://go.microsoft.com/fwlink/?LinkId=2085155

https://dotnet.microsoft.com/download/dotnet-framework/thank-you/net48-web-installer

②离线安装 Offline installer

https://dotnet.microsoft.com/download/dotnet-framework/thank-you/net48-developer-pack-offline-installer

https://dotnet.microsoft.com/download/dotnet-framework/thank-you/net48-offline-installer

四、获取wpt和windbg轻便安装包

adksetup.exe 、winsdksetup.exe、wdksetup.exe需要联网安装,且安装wpt和windbg太重了,好在安装完成后可以在本地缓存里找到轻便的.msi安装包,这样就可以迁移到不支持上网的机器了

wpt和windbg安装包名称:

WPTx64 .msi

WPTx86 .msi

X64 Debuggers And Tools-x64_en-us.msi

X86 Debuggers And Tools-x86_en-us.msi

安装完成后在本地哪里能直接找到安装包(注意路径里的用户名)?以下5个路径

C:UsersAdministratorDownloadsWindows Kits8.0ADKInstallersWPTx64-x86_en-us.msi

C:UsersAdministratorDownloadsWindows Kits8.1ADKInstallersWPTx64-x86_en-us.msi

C:UsersAdministratorDownloadsWindows Kits10ADKInstallersWPTx64-x86_en-us.msi

C:UsersAdministratorDownloadsWindows Kits10WindowsSDKInstallersWPTx64 (DesktopEditions)-x86_en-us.msi

C:UsersAdministratorDownloadsWindows Kits10WindowsSDKInstallersWPTx86 (DesktopEditions)-x86_en-us.msi

C:Program Files (x86)Windows Kits10DebuggersRedist

C:Program Files (x86)Windows Kits10Windows Performance ToolkitRedistributablesWPTx64 (DesktopEditions)-x64_en-us.msi

C:Program Files (x86)Windows Kits10Windows Performance ToolkitRedistributablesWPTx86 (DesktopEditions)-x86_en-us.msi

C:Program Files (x86)Windows Kits10Windows Performance ToolkitRedistributables

C:Program Files (x86)Windows Kits10Windows Performance ToolkitRedistributablesWPTx64 (DesktopEditions)-x64_en-us.msi

C:Program Files (x86)Windows Kits10Windows Performance ToolkitRedistributablesWPTx86 (DesktopEditions)-x86_en-us.msi

另外,用搜索软件everything搜索 C:ProgramDataPackage Cache Debuggers .msi C:ProgramDataPackage Cache WPT .msi

0 人点赞