docs: fix TC section in decorators

This commit is contained in:
Pragyansh Chaturvedi
2026-01-27 01:58:06 +05:30
parent 9131d044dc
commit 06c81ae55e

View File

@ -117,16 +117,6 @@ def xdp_prog(ctx: c_void_p) -> c_int64:
return XDP_PASS return XDP_PASS
``` ```
#### TC (Traffic Control)
For network traffic filtering:
```python
@section("classifier")
def tc_filter(ctx):
pass
```
### Finding Tracepoints ### Finding Tracepoints
To find available tracepoints on your system: To find available tracepoints on your system:
@ -260,7 +250,7 @@ def track_processes(ctx: c_void_p) -> c_int64:
event.pid = pid() event.pid = pid()
# Note: comm() requires a buffer parameter # Note: comm() requires a buffer parameter
# comm(event.comm) # Fills event.comm with process name # comm(event.comm) # Fills event.comm with process name
events.output(event) events.output(event)
return c_int64(0) return c_int64(0)
``` ```