Skip to content

Add PANDA header files to container/debian package#1617

Merged
lacraig2 merged 2 commits intodevfrom
headers
Jan 15, 2026
Merged

Add PANDA header files to container/debian package#1617
lacraig2 merged 2 commits intodevfrom
headers

Conversation

@AndrewQuijano
Copy link
Copy Markdown
Collaborator

@AndrewQuijano AndrewQuijano commented Nov 30, 2025

Your checklist for this pull request

  • I've documented or updated the documentation of every API function and struct in this PR.
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

When installing PANDA, I also want to make sure the header files are included. This should make it easier for anyone who wants to write stuff in C++ with PANDA.

Additionally, regarding LAVA, I plan to relocate the hypercall struct to include it/ so PANDA can ensure that the struct is synchronized between LAVA and PANDA.
...

Test plan

Here is a screenshot confirming the Debian package now has the header files:
image

...

Closing issues

N/A
...

@github-actions github-actions bot added the Build label Nov 30, 2025
@AndrewQuijano AndrewQuijano force-pushed the headers branch 2 times, most recently from 24472e1 to 863bbb5 Compare November 30, 2025 03:21
@AndrewQuijano AndrewQuijano marked this pull request as ready for review December 8, 2025 20:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the LAVA hypercall struct to a shared header file and adds PANDA header files to the container/debian package, making it easier for developers to write C++ code with PANDA.

  • Extracts PandaHypercallStruct and related definitions from taint2_hypercalls.h to a new shared header panda/include/panda/lava_hypercall_struct.h
  • Updates build and packaging configurations to install header files from panda/include/ during installation
  • Updates plugin includes to reference the new centralized header location

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
panda/include/panda/lava_hypercall_struct.h New shared header file containing LAVA hypercall struct definitions, enabling synchronization between PANDA and LAVA
panda/plugins/taint2/taint2_hypercalls.h Removes struct definition (now in shared header) and adds documentation comment pointing to new location
panda/plugins/taint2/taint2_hypercalls.cpp Adds include for new shared header file
panda/plugins/pri_taint/pri_taint.cpp Updates include path from plugin-specific to shared header location
Makefile Adds installation step to recursively copy header files from panda/include/ to installation prefix
Dockerfile Adds header files to debian package by copying from build stage to package-root

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lacraig2
Copy link
Copy Markdown
Member

👍 Rebase and I'll merge.

@lacraig2 lacraig2 enabled auto-merge (rebase) January 15, 2026 17:46
@lacraig2 lacraig2 merged commit 25b0412 into dev Jan 15, 2026
4 of 5 checks passed
@lacraig2 lacraig2 deleted the headers branch January 15, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants