Skip to content

Commit

Permalink
api: add a policy_name field to kprobe, tracepoint and uprobe events
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mtardy committed Oct 11, 2023
1 parent 08b79a9 commit 62c7971
Show file tree
Hide file tree
Showing 12 changed files with 643 additions and 438 deletions.
3 changes: 3 additions & 0 deletions api/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ https://github.com/opencontainers/runtime-spec/blob/main/config.md#createcontain
| return | [KprobeArgument](#tetragon-KprobeArgument) | | Return value definition of the observed kprobe. |
| action | [KprobeAction](#tetragon-KprobeAction) | | Action performed when the kprobe matched. |
| stack_trace | [StackTraceEntry](#tetragon-StackTraceEntry) | repeated | Kernel stack trace to the call. |
| policy_name | [string](#string) | | Name of the Tracing Policy that created that kprobe. |



Expand Down Expand Up @@ -824,6 +825,7 @@ loader sensor event triggered for loaded binary/library
| subsys | [string](#string) | | Subsystem of the tracepoint. |
| event | [string](#string) | | Event of the subsystem. |
| args | [KprobeArgument](#tetragon-KprobeArgument) | repeated | Arguments definition of the observed tracepoint. TODO: once we implement all we want, rename KprobeArgument to GenericArgument |
| policy_name | [string](#string) | | Name of the policy that created that tracepoint. |



Expand All @@ -842,6 +844,7 @@ loader sensor event triggered for loaded binary/library
| parent | [Process](#tetragon-Process) | | |
| path | [string](#string) | | |
| symbol | [string](#string) | | |
| policy_name | [string](#string) | | Name of the policy that created that uprobe. |



Expand Down
39 changes: 39 additions & 0 deletions api/v1/tetragon/codegen/eventchecker/eventchecker.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 62c7971

Please sign in to comment.