Home
last modified time | relevance | path

Searched refs:log_buf_size (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dlog_fixup.c14 static void bad_core_relo(size_t log_buf_size, enum trunc_type trunc_type) in bad_core_relo() argument
26 bpf_program__set_log_buf(skel->progs.bad_relo, log_buf, log_buf_size ?: sizeof(log_buf)); in bad_core_relo()
/linux-6.12.1/tools/lib/bpf/
Dlibbpf.c7407 size_t log_buf_size = 0; in bpf_object_load_prog() local
7497 log_buf_size = prog->log_size; in bpf_object_load_prog()
7501 log_buf_size = obj->log_size; in bpf_object_load_prog()
7504 log_buf_size = max((size_t)BPF_LOG_BUF_SIZE, log_buf_size * 2); in bpf_object_load_prog()
7505 tmp = realloc(log_buf, log_buf_size); in bpf_object_load_prog()
7517 load_attr.log_size = log_buf_size; in bpf_object_load_prog()
7561 if (own_log_buf && errno == ENOSPC && log_buf_size <= UINT_MAX / 2) in bpf_object_load_prog()
7567 fixup_verifier_log(prog, log_buf, log_buf_size); in bpf_object_load_prog()