microsoft / microsoft/ebpf-for-windows

NMR test to track deregistering of client or provider

Open
#2,342 0 comments 0 reactions 0 assignees View on GitHub
cleanup help wanted triaged
Dominant language
C
Stars
3.6k
Forks
311
Avg merge
6d 10h
Merged PRs (30d)
21

Description

This issue is the follow up of [issue 2048](https://github.com/microsoft/ebpf-for-windows/issues/2048)
Deregistration of client / or provider  ( which is different from registration failing) and this mock needs to implemented in which needs to implemented in nmr::bind which most likely needs to be implemented in kernel tests.
ClientAttachProvider -> NmrClientAttachProvider -> ProviderAttachClient – and after this provider either of the client or provider detaches. In which case NMR calls detach callbacks on both client and provider. The mock NMR implementation for this (_nmr::bind) is NOT doing this. So this is one change we can take in mock NMR. But for testing this, we have to run threads in parallel which will call ebpf_provider_load/unload and ebpf_extension_load/unload in parallel.

Contributor guide

Open the contributing guide

Research direction

Start with the mock NMR implementation in nmr::bind and the kernel tests that exercise ClientAttachProvider, NmrClientAttachProvider, and ProviderAttachClient. Trace provider and client attach and detach callbacks, then run parallel provider and extension load/unload operations. Done means the mock invokes both detach callbacks and the NMR test covers deregistration during concurrent operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.