You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: inputs: ebpf: document trace_vfs trace type (#2534)
- Update `trace` parameter description to list `trace_vfs` as an example
- Update common `event_type` field to include `vfs` as a valid value
- Add "`VFS` trace fields" section documenting operation, path, flags, mode, fd, and error_raw fields
Fixes#2533
Signed-off-by: Eric D. Schabell <eric@schabell.org>
Copy file name to clipboardExpand all lines: pipeline/inputs/ebpf.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The plugin supports the following configuration parameters:
20
20
|:----|:------------|:--------|
21
21
|`poll_ms`| Set the polling interval in milliseconds for collecting events from the ring buffer. |`1000`|
22
22
|`ringbuf_map_name`| Set the name of the eBPF ring buffer map to read events from. |`events`|
23
-
|`trace`| Set the eBPF trace to enable (for example, `trace_bind`, `trace_malloc`, `trace_signal`). This parameter can be set multiple times to enable multiple traces. |_none_|
23
+
|`trace`| Set the eBPF trace to enable (for example, `trace_bind`, `trace_malloc`, `trace_signal`, `trace_vfs`). This parameter can be set multiple times to enable multiple traces. |_none_|
24
24
25
25
## System dependencies
26
26
@@ -130,7 +130,7 @@ All traces include the following fields:
130
130
131
131
| Field | Description |
132
132
|:------|:------------|
133
-
|`event_type`| Type of event (`signal`, `malloc`, or `bind`). |
133
+
|`event_type`| Type of event (`signal`, `malloc`, `bind`, or `vfs`). |
134
134
|`pid`| Process ID that generated the event. |
135
135
|`tid`| Thread ID that generated the event. |
136
136
|`comm`| Command name (process name) that generated the event. |
@@ -165,3 +165,16 @@ The `trace_bind` trace includes these additional fields:
165
165
|`port`| Port number the socket is binding to. |
166
166
|`bound_dev_if`| Network device interface the socket is bound to. |
167
167
|`error_raw`| Error code for the bind operation (`0` indicates success). |
168
+
169
+
### `VFS` trace fields
170
+
171
+
The `trace_vfs` trace includes these additional fields:
172
+
173
+
| Field | Description |
174
+
|:------|:------------|
175
+
|`operation`|`VFS` operation type (integer). |
176
+
|`path`| File path involved in the operation. |
177
+
|`flags`| Flags passed to the `VFS` operation. |
178
+
|`mode`| File mode bits for the operation. |
179
+
|`fd`| File descriptor returned by the operation. |
180
+
|`error_raw`| Error code for the operation (`0` indicates success). |
0 commit comments