Skip to content

Commit

Permalink
Tracing: add (minimal) net_device type
Browse files Browse the repository at this point in the history
Packet-level kprobes often have a struct net_device as a parameter,
which describes the network device over which the function acts. We
currently cannot report or match on this type. This commit adds minimal
support for struct net_device, treating it's name (dev->name) as a
simple string that can be matched upon and reported. Simply specify the
arg type as 'net_device' and assume it is the string of its name.

Signed-off-by: Kevin Sheldrake <[email protected]>
  • Loading branch information
kevsecurity committed Mar 6, 2024
1 parent 3bf6f3b commit 8b4ae49
Show file tree
Hide file tree
Showing 27 changed files with 1,575 additions and 1,110 deletions.
17 changes: 17 additions & 0 deletions api/v1/README.md

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

73 changes: 73 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 8b4ae49

Please sign in to comment.