Skip to content

Kprobes#31

Open
zestrada wants to merge 5 commits intomainfrom
kprobes
Open

Kprobes#31
zestrada wants to merge 5 commits intomainfrom
kprobes

Conversation

@zestrada
Copy link
Contributor

@zestrada zestrada commented Jan 7, 2026

This adds the kernel side of portal support for kprobes

Copy link

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 pull request adds kernel-side support for kprobes (kernel probes) to the portal infrastructure, enabling dynamic instrumentation of kernel functions similar to the existing uprobe support.

  • Adds registration and unregistration operations for kprobes in the portal operation list
  • Implements kprobe/kretprobe handlers with PID and process name filtering capabilities
  • Introduces hypercall constants for kprobe enter/return events and debug macro support

Reviewed changes

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

File Description
src/portal/portal_op_list.h Adds REGISTER_KPROBE and UNREGISTER_KPROBE operations to the portal operation enumeration
src/portal/portal_kprobe.c New file implementing complete kprobe lifecycle management including registration, filtering, handlers, and hash table tracking
src/igloo_hypercall_consts.h Defines IGLOO_HYP_KPROBE_ENTER and IGLOO_HYP_KPROBE_RETURN hypercall constants
src/igloo_debug.h Adds kprobe debug flag and igloo_debug_kprobe macro for conditional debug logging

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments