Skip to content

Commit 8492da6

Browse files
puwunmtardy
authored andcommitted
docs: update TracingPolicy selector limitations
Update the Limitations section in the selectors documentation: - Remove outdated warning banner referencing issue #709 - Correct Max Selectors from 8 to 5 (per MAX_SELECTORS in basic.h) - Correct Max MatchArg Values from 1 to 4 (per MAX_MATCH_VALUES in basic.h) - Add note about InMap/NotInMap operators for unlimited values Fixes: #709 Signed-off-by: Pavan More <[email protected]>
1 parent 9dbe634 commit 8492da6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/content/en/docs/concepts/tracing-policy/selectors.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,18 +2044,17 @@ The above would be executed in kernel as:
20442044

20452045
### Limitations
20462046

2047-
{{% pageinfo %}}
2048-
Those limitations might be outdated, see [issue #709](https://github.com/cilium/tetragon/issues/709).
2049-
{{% /pageinfo %}}
2050-
20512047
Because BPF must be bounded we have to place limits on how many selectors can
20522048
exist.
20532049

2054-
- Max Selectors 8.
2050+
- Max Selectors 5.
20552051
- Max PID values per selector 4
20562052
- Max MatchArgs per selector 5 (one per index)
2057-
- Max MatchArg Values per MatchArgs 1 (limiting initial implementation can bump
2058-
to 16 or so)
2053+
- Max MatchArg Values per MatchArgs 4 (for operators like `Equal`, `NotEqual`,
2054+
`GT`, `LT`, etc.)
2055+
2056+
For an unlimited number of values, consider using the `InMap` or `NotInMap`
2057+
operators which store values in a BPF map.
20592058

20602059

20612060
## Return Actions filter

0 commit comments

Comments
 (0)