Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions docs/content/en/docs/concepts/tracing-policy/argument_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ List of described data types:
- [`bpf_attr`](#bpf_attr)
- [`perf_event`](#perf_event)
- [`bpf_map`](#bpf_map)
- [`bpf_prog`](#bpf_prog)
- [`user_namespace`](#user_namespace)
- [`capability`](#capability)
- [`kiocb`](#kiocb)
Expand Down Expand Up @@ -144,6 +145,10 @@ TBD

TBD

## `bpf_prog`

TBD

## `user_namespace`

TBD
Expand Down Expand Up @@ -193,7 +198,7 @@ TBD
The `linux_binprm` data type represents kernel `struct linux_binprm` object
and retrieves the `struct linux_binprm::file` full path.

See general path limitations in [path retrieval limits](#pathlimits))
See general path limitations in [path retrieval limits](#pathlimits).

## `data_loc`

Expand All @@ -216,7 +221,7 @@ TBD
The `file` data type represents kernel `struct file` object and retrieves
the file's full path.

See general path limitations in [path retrieval limits](#pathlimits))
See general path limitations in [path retrieval limits](#pathlimits).

## `dentry`

Expand All @@ -227,18 +232,19 @@ This stems from the fact that with just `struct dentry` tetragon does not have
mount information and does not have enough data to pass through main point within
the path.

See general path limitations in [path retrieval limits](#pathlimits))
See general path limitations in [path retrieval limits](#pathlimits).

## `path`

The `path` data type represents kernel `struct path` object retrieves
the related path.

<a name="pathlimits"></a>

{{< caution >}}
Full path retrieval is available only on kernels `v5.3` and later.

On older kernels, there's a limit of 256 path components, which means
we can retrieve up to the maximum path length (4096 bytes), but only
with 256 path entries (directories and file name).
{{< /caution >}}

32 changes: 16 additions & 16 deletions docs/content/en/docs/reference/tracing-policy.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,20 @@ spec:
enum:
- auto
- int
- sint8
- int8
- uint8
- sint16
- int16
- uint16
- uint32
- sint32
- int32
- ulong
- uint64
- size_t
- long
- sint64
- int64
- char_buf
- char_iovec
Expand All @@ -204,6 +211,7 @@ spec:
- kiocb
- iov_iter
- cred
- const_buf
- load_info
- module
- syscall64
Expand Down Expand Up @@ -282,13 +290,20 @@ spec:
enum:
- auto
- int
- sint8
- int8
- uint8
- sint16
- int16
- uint16
- uint32
- sint32
- int32
- ulong
- uint64
- size_t
- long
- sint64
- int64
- char_buf
- char_iovec
Expand All @@ -311,6 +326,7 @@ spec:
- kiocb
- iov_iter
- cred
- const_buf
- load_info
- module
- syscall64
Expand Down Expand Up @@ -402,13 +418,20 @@ spec:
enum:
- auto
- int
- sint8
- int8
- uint8
- sint16
- int16
- uint16
- uint32
- sint32
- int32
- ulong
- uint64
- size_t
- long
- sint64
- int64
- char_buf
- char_iovec
Expand All @@ -431,6 +454,7 @@ spec:
- kiocb
- iov_iter
- cred
- const_buf
- load_info
- module
- syscall64
Expand Down Expand Up @@ -1150,13 +1174,20 @@ spec:
enum:
- auto
- int
- sint8
- int8
- uint8
- sint16
- int16
- uint16
- uint32
- sint32
- int32
- ulong
- uint64
- size_t
- long
- sint64
- int64
- char_buf
- char_iovec
Expand All @@ -1179,6 +1210,7 @@ spec:
- kiocb
- iov_iter
- cred
- const_buf
- load_info
- module
- syscall64
Expand Down Expand Up @@ -1935,13 +1967,20 @@ spec:
enum:
- auto
- int
- sint8
- int8
- uint8
- sint16
- int16
- uint16
- uint32
- sint32
- int32
- ulong
- uint64
- size_t
- long
- sint64
- int64
- char_buf
- char_iovec
Expand All @@ -1964,6 +2003,7 @@ spec:
- kiocb
- iov_iter
- cred
- const_buf
- load_info
- module
- syscall64
Expand Down Expand Up @@ -2664,13 +2704,20 @@ spec:
enum:
- auto
- int
- sint8
- int8
- uint8
- sint16
- int16
- uint16
- uint32
- sint32
- int32
- ulong
- uint64
- size_t
- long
- sint64
- int64
- char_buf
- char_iovec
Expand All @@ -2693,6 +2740,7 @@ spec:
- kiocb
- iov_iter
- cred
- const_buf
- load_info
- module
- syscall64
Expand Down Expand Up @@ -2792,13 +2840,20 @@ spec:
enum:
- auto
- int
- sint8
- int8
- uint8
- sint16
- int16
- uint16
- uint32
- sint32
- int32
- ulong
- uint64
- size_t
- long
- sint64
- int64
- char_buf
- char_iovec
Expand All @@ -2821,6 +2876,7 @@ spec:
- kiocb
- iov_iter
- cred
- const_buf
- load_info
- module
- syscall64
Expand Down Expand Up @@ -3504,13 +3560,20 @@ spec:
enum:
- auto
- int
- sint8
- int8
- uint8
- sint16
- int16
- uint16
- uint32
- sint32
- int32
- ulong
- uint64
- size_t
- long
- sint64
- int64
- char_buf
- char_iovec
Expand All @@ -3533,6 +3596,7 @@ spec:
- kiocb
- iov_iter
- cred
- const_buf
- load_info
- module
- syscall64
Expand Down
Loading
Loading