headers: call per-scrape native functions with SyscallN (#2746)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2026-10-16 10:33:18 +02:00
committed by GitHub
parent 4cd3e5411d
commit b1b2888e0f
9 changed files with 148 additions and 12 deletions
@@ -54,3 +54,11 @@ func TestGetOwnerPIDOfTCPPort(t *testing.T) {
require.NoError(t, err)
require.EqualValues(t, os.Getpid(), pid)
}
func BenchmarkGetTCPConnectionStates(b *testing.B) {
b.ReportAllocs()
for b.Loop() {
_, _ = iphlpapi.GetTCPConnectionStates(windows.AF_INET)
}
}