File: winsock-etw.ps1

package info (click to toggle)
golang-github-linuxkit-virtsock 0.0~git20170720.0.0416e3d-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 424 kB
  • ctags: 444
  • sloc: ansic: 1,435; makefile: 81; sh: 7
file content (21 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# A quick and dirty script to run ETW tracing on Winsock and other
# relevant providers

# Use
# logman query providers
# to see all providers and:
# logman query providers "Windows Kernel Trace"
# to get details about the flags

param([string]$outFile = "winsock.etl")

$session = "MyWinSockTrace"

logman start -ets $session -o $outFile -p Microsoft-Windows-Winsock-AFD

# logman query -ets $session

Write-Host "Tracing. Press any key to stop..."
$x = [System.Console]::ReadKey().Key.ToString()

logman stop -ets $session