Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A 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/tools/lib/bpf/
H A Dlibbpf.c7457 size_t log_buf_size = 0; in bpf_object_load_prog() local
7545 log_buf_size = prog->log_size; in bpf_object_load_prog()
7549 log_buf_size = obj->log_size; in bpf_object_load_prog()
7552 log_buf_size = max((size_t)BPF_LOG_BUF_SIZE, log_buf_size * 2); in bpf_object_load_prog()
7553 tmp = realloc(log_buf, log_buf_size); in bpf_object_load_prog()
7565 load_attr.log_size = log_buf_size; in bpf_object_load_prog()
7608 if (own_log_buf && errno == ENOSPC && log_buf_size <= UINT_MAX / 2) in bpf_object_load_prog()
7614 fixup_verifier_log(prog, log_buf, log_buf_size); in bpf_object_load_prog()