Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: add a policy_name field to kprobe, tracepoint and uprobe events #1574

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Oct 10, 2023

Fixes #1477, I had a few minutes and I decided to implement this. I tested it manually!

All the plumbing was actually done, it was only missing the faucet. The policy name was stored in the kprobe, tracepoint or uprobe tables entries. It's only for uprobe that we also needed to copy the policy name from the internal API event to the unix event. Then for all three, the missing piece was the copy from the unix event to the gRPC API event.

I decided on policy_name instead of tracing_policy_name but we can discuss that...

@mtardy mtardy added the release-note/minor This PR introduces a minor user-visible change label Oct 10, 2023
@mtardy mtardy requested a review from a team as a code owner October 10, 2023 18:07
@mtardy mtardy requested a review from jrfastab October 10, 2023 18:07
@netlify
Copy link

netlify bot commented Oct 10, 2023

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 136d918
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/65267b8b252fef0008acce3d
😎 Deploy Preview https://deploy-preview-1574--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

All the plumbing was actually done, it was only missing the faucet. The
policy name was stored in the kprobe, tracepoint or uprobe tables
entries. It's only for uprobe that we also needed to copy the policy
name from the internal API event to the unix event. Then for all three,
the missing piece was the copy form the unix event to the gRPC API
event.

Signed-off-by: Mahe Tardy <[email protected]>
@mtardy mtardy force-pushed the pr/mtardy/add-tracing-policy-name branch from 7d280bd to 136d918 Compare October 11, 2023 10:40
@mtardy mtardy merged commit 62c7971 into main Oct 11, 2023
34 checks passed
@mtardy mtardy deleted the pr/mtardy/add-tracing-policy-name branch October 11, 2023 13:45
@kkourt kkourt added release-note/major This PR introduces major new functionality and removed release-note/minor This PR introduces a minor user-visible change labels Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/major This PR introduces major new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enrich GetEventsResponse with new field tracing_policy_name
2 participants