Skip to content

Commit

Permalink
tetragon: Add action field to tracepoint event
Browse files Browse the repository at this point in the history
Adding action field to tracepoint event, so it's available
in the event in case the action is triggered.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
  • Loading branch information
olsajiri committed Oct 7, 2023
1 parent 04bb1d7 commit 191488f
Show file tree
Hide file tree
Showing 10 changed files with 129 additions and 54 deletions.
1 change: 1 addition & 0 deletions api/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,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 |
| action | [KprobeAction](#tetragon-KprobeAction) | | Action performed when the kprobe matched. |



Expand Down
14 changes: 14 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.

49 changes: 31 additions & 18 deletions api/v1/tetragon/tetragon.pb.go

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

2 changes: 2 additions & 0 deletions api/v1/tetragon/tetragon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ message ProcessTracepoint {
// Arguments definition of the observed tracepoint.
// TODO: once we implement all we want, rename KprobeArgument to GenericArgument
repeated KprobeArgument args = 6;
// Action performed when the kprobe matched.
KprobeAction action = 7;
}

message ProcessUprobe {
Expand Down

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

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

1 change: 1 addition & 0 deletions docs/content/en/docs/reference/grpc-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,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 |
| action | [KprobeAction](#tetragon-KprobeAction) | | Action performed when the kprobe matched. |

<a name="tetragon-ProcessUprobe"></a>

Expand Down

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

Loading

0 comments on commit 191488f

Please sign in to comment.