-
-
Notifications
You must be signed in to change notification settings - Fork 0
TEST-XSTAMP-PERF-001: Verify IOCTL_AVB_PHC_CROSSTIMESTAMP P50/P99 Latency #322
Copy link
Copy link
Closed
Labels
area:ioctldomain:ptpphase:07-verification-validationPhase 07: Verification & ValidationPhase 07: Verification & Validationpriority:p0Critical priority - must haveCritical priority - must havestatus:closedIssue closedIssue closedtest-type:integrationIntegration test - tests component interactionsIntegration test - tests component interactionstype:test-caseTest case (TEST) - verification and validationTest case (TEST) - verification and validation
Description
Metadata
Metadata
Assignees
Labels
area:ioctldomain:ptpphase:07-verification-validationPhase 07: Verification & ValidationPhase 07: Verification & Validationpriority:p0Critical priority - must haveCritical priority - must havestatus:closedIssue closedIssue closedtest-type:integrationIntegration test - tests component interactionsIntegration test - tests component interactionstype:test-caseTest case (TEST) - verification and validationTest case (TEST) - verification and validation
Requirement
Derived from #48 (REQ-F-IOCTL-XSTAMP-001) performance requirements:
Test Objective
Measure the round-trip latency of
IOCTL_AVB_PHC_CROSSTIMESTAMPfrom user-modeDeviceIoControlcall to return over 10,000 calls and verify P50 and P99 arewithin the budgets specified in REQ-F-IOCTL-XSTAMP-001.
Test Cases
TC-XSTAMP-PERF-001a: 10K calls — P50 < 8µs, P99 < 15µs
Preconditions: Driver loaded, handle open, adapter index 0 valid.
Steps:
a.
QueryPerformanceCounter(&t0)b.
DeviceIoControl(IOCTL_AVB_PHC_CROSSTIMESTAMP, &req, ...)c.
QueryPerformanceCounter(&t1)d. Assert
req.valid == 1e.
samples[i] = (t1 - t0) * 1e6 / qpc_freqsamples[]Acceptance Criteria:
P50 < 8µs(REQ-F-IOCTL-XSTAMP-001: IOCTL Latency P50 target)P99 < 15µs(REQ-F-IOCTL-XSTAMP-001: IOCTL Latency P99 target)Expected Status:⚠️ P99 may exceed 15µs under OS scheduling jitter — this is a known
measurement challenge for user-mode latency tests; note whether system was under load.
TC-XSTAMP-PERF-001b: Throughput > 80K ops/sec (single thread)
Steps:
IOCTL_AVB_PHC_CROSSTIMESTAMPin a tight loop for 1 secondcount > 80,000Acceptance Criterion:
ops/sec > 80,000TC-XSTAMP-PERF-001c: All 10K responses have valid == 1
Acceptance Criterion: No IOCTL fails during the latency run (driver stability)
Acceptance Criteria Summary
valid == 1for all responses (no silent failures)Implementation
tests/integration/ptp/ptp_ioctl_latency_test.cTraceability