microsoft / microsoft/ebpf-for-windows
Test bpf_get_current_pid_tgid must test for sample and sock_addr prog types
Open
@lakshk98 is already working on this.
Since Jun 29, 2026.
enhancement
tests
triaged
- Dominant language
- C
- Stars
- 3.6k
- Forks
- 311
- Avg merge
- 6d 10h
- Merged PRs (30d)
- 21
Description
Api test variation TEST_CASE("bpf_get_current_pid_tgid", "[helpers]") uses tests/sample/pidtgid.c program which is of type bind.
So it only tests the generic version of the helper function implemented in ebpf_core and not the sock_addr and sock_ops specific helpers implemented in netebpfext.
The tests must be modified to test for the following program types
sample
sock_addr
sock_ops
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.