On Mon, Feb 2, 2026 at 6:43 AM Leon Hwang <[email protected]> wrote:
>
> +
> +#define BPF_LOG_FIXED  8
> +
> +static void test_map_create(enum bpf_map_type map_type, const char *map_name,
> +                           struct bpf_map_create_opts *opts, const char 
> *exp_msg)
> +{
> +       const int key_size = 4, value_size = 4, max_entries = 1;
> +       char log_buf[128];
> +       int fd;
> +       LIBBPF_OPTS(bpf_log_opts, log_opts);
> +
> +       log_buf[0] = '\0';
> +       log_opts.log_buf = log_buf;
> +       log_opts.log_size = sizeof(log_buf);
> +       log_opts.log_level = BPF_LOG_FIXED;

Why? Which part of the test needs the log with this flag?

Reply via email to