Skip to content

Reduce redundant eBPF error logs - #5551

Open
Anurag Saxena (saxena-anurag) wants to merge 4 commits into
microsoft:mainfrom
saxena-anurag:user/anusa/tracing_improvements
Open

Reduce redundant eBPF error logs#5551
Anurag Saxena (saxena-anurag) wants to merge 4 commits into
microsoft:mainfrom
saxena-anurag:user/anusa/tracing_improvements

Conversation

@saxena-anurag

@saxena-anurag Anurag Saxena (saxena-anurag) commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Description

This PR reduces the ERROR level messages generated for eBPF for 2 of the expected flows.

Enumeration completion and nonmatching provider candidates are now not reported as errors. Actual validation, attachment, and unexpected operation failures continue to be logged at error severity.

Changes

Enumeration completion

Treat the following equivalent results as normal completion for enumeration operations:

  • EBPF_NO_MORE_KEYS
  • STATUS_NO_MORE_MATCHES
  • ERROR_NO_MORE_MATCHES

The suppression is scoped to known enumeration operations. The same result remains an error for non-enumeration operations.

Updated paths include:

  • Map-key enumeration
  • Link-ID enumeration
  • Map-ID enumeration
  • Program-ID enumeration
  • Kernel protocol dispatch
  • User-mode DeviceIoControl handling
  • Public eBPF API result propagation

Program-information provider discovery

Reduce the severity of mismatch GUID messages in program info provider callback (both general and program type specific) to VERBOSE.

Expected Impact

In the analyzed production sample:

  • 1,677 of 1,911 records, or 87.76%, represented normal enumeration completion.
  • 234 records, or 12.24%, represented expected provider candidate mismatches.

These changes remove expected enumeration completion and provider discovery from the production error stream while preserving actionable failures.

Testing

Manually ran the scenarios and validated that the traces are now being emitted at VERBOSE level.

Notes

The API behavior and returned status values are unchanged. This PR changes only the severity and duplication of telemetry for expected control-flow results.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This pull request isn't linked to any GitHub issue. Please reference an issue with a keyword such as Fixes #123, Closes #456, etc., so the work can be tracked.

@saxena-anurag Anurag Saxena (saxena-anurag) changed the title User/anusa/tracing improvements Reduce error telemetry for expected eBPF enumeration and provider discovery Sep 2, 2026
@saxena-anurag Anurag Saxena (saxena-anurag) changed the title Reduce error telemetry for expected eBPF enumeration and provider discovery Reduce redundant eBPF error logs Sep 2, 2026
@saxena-anurag
Anurag Saxena (saxena-anurag) marked this pull request as ready for review September 2, 2026 22:14
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

This pull request isn't linked to any GitHub issue. Please reference an issue with a keyword such as Fixes #123, Closes #456, etc., so the work can be tracked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants