microsoft / microsoft/ebpf-for-windows

Test bpf_get_current_pid_tgid must test for sample and sock_addr prog types

Open
#5,402 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.