Skip to content

Commit 838d1df

Browse files
committed
in_ebp: add three missing config option descriptions. Fixes #11221.
Signed-off-by: Eric D. Schabell <eric@schabell.org>
1 parent 10ebd3a commit 838d1df

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

plugins/in_ebpf/in_ebpf.c

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,22 @@ static int in_ebpf_exit(void *in_context, struct flb_config *config) {
231231
}
232232

233233
static struct flb_config_map config_map[] = {
234-
{FLB_CONFIG_MAP_STR, "ringbuf_map_name", FLB_IN_EBPF_DEFAULT_RINGBUF_MAP_NAME, 0, FLB_TRUE,
235-
offsetof(struct flb_in_ebpf_context, ringbuf_map_name)},
236-
{FLB_CONFIG_MAP_INT, "poll_ms", FLB_IN_EBPF_DEFAULT_POLL_MS, 0, FLB_TRUE,
237-
offsetof(struct flb_in_ebpf_context, poll_ms)},
238-
{FLB_CONFIG_MAP_STR, "Trace", NULL, FLB_CONFIG_MAP_MULT, FLB_FALSE, 0},
234+
{
235+
FLB_CONFIG_MAP_STR, "ringbuf_map_name", FLB_IN_EBPF_DEFAULT_RINGBUF_MAP_NAME,
236+
0, FLB_TRUE, offsetof(struct flb_in_ebpf_context, ringbuf_map_name),
237+
"Set the name of the BPF ring buffer map to read events from"
238+
},
239+
{
240+
FLB_CONFIG_MAP_INT, "poll_ms", FLB_IN_EBPF_DEFAULT_POLL_MS,
241+
0, FLB_TRUE, offsetof(struct flb_in_ebpf_context, poll_ms),
242+
"Set the polling interval in milliseconds for collecting events"
243+
},
244+
{
245+
FLB_CONFIG_MAP_STR, "Trace", NULL,
246+
FLB_CONFIG_MAP_MULT, FLB_FALSE, 0,
247+
"Set the eBPF trace to enable (for example, bind, malloc, signal). Can be set multiple times"
248+
},
249+
/* EOF */
239250
{0}
240251
};
241252

0 commit comments

Comments
 (0)