Home
last modified time | relevance | path

Searched refs:log_buf (Results 26 – 50 of 66) sorted by relevance

123

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlinked_list.c11 static char log_buf[1024 * 1024]; variable
103 LIBBPF_OPTS(bpf_object_open_opts, opts, .kernel_log_buf = log_buf, in test_linked_list_fail_prog()
104 .kernel_log_size = sizeof(log_buf), in test_linked_list_fail_prog()
124 if (!ASSERT_OK_PTR(strstr(log_buf, err_msg), "expected error message")) { in test_linked_list_fail_prog()
126 fprintf(stderr, "Verifier: %s\n", log_buf); in test_linked_list_fail_prog()
H A Dalign.c609 .log_buf = bpf_vlog, in do_test_single()
/openbmc/linux/kernel/bpf/
H A Dlog.c29 char __user *log_buf, u32 log_size) in bpf_vlog_init() argument
32 log->ubuf = log_buf; in bpf_vlog_init()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dfw_tracer.c144 tracer->buff.log_buf = buff; in mlx5_fw_tracer_create_log_buf()
159 free_pages((unsigned long)tracer->buff.log_buf, get_order(tracer->buff.size)); in mlx5_fw_tracer_create_log_buf()
169 if (!tracer->buff.log_buf) in mlx5_fw_tracer_destroy_log_buf()
174 free_pages((unsigned long)tracer->buff.log_buf, get_order(tracer->buff.size)); in mlx5_fw_tracer_destroy_log_buf()
713 memcpy(tmp_trace_block, tracer->buff.log_buf + start_offset, in mlx5_fw_tracer_handle_traces()
732 ts_event = tracer->buff.log_buf + prev_start_offset + in mlx5_fw_tracer_handle_traces()
760 memcpy(tmp_trace_block, tracer->buff.log_buf + start_offset, in mlx5_fw_tracer_handle_traces()
H A Dfw_tracer.h94 void *log_buf; member
/openbmc/linux/samples/bpf/
H A Dsock_example.c64 .log_buf = bpf_log_buf, in test_sock()
H A Dtest_cgrp2_attach.c76 .log_buf = bpf_log_buf, in prog_load()
H A Dfds_example.c68 .log_buf = bpf_log_buf, in bpf_prog_create()
H A Dtest_cgrp2_sock.c74 .log_buf = bpf_log_buf, in prog_load()
/openbmc/linux/tools/bpf/bpftool/
H A Dfeature.c519 char *log_buf, size_t log_buf_sz, in probe_prog_load_ifindex() argument
523 .log_buf = log_buf, in probe_prog_load_ifindex()
525 .log_level = log_buf ? 1 : 0, in probe_prog_load_ifindex()
H A Dprog.c1871 char *log_buf = NULL; in try_loader() local
1879 log_buf = malloc(log_buf_sz); in try_loader()
1880 if (!log_buf) in try_loader()
1882 ctx->log_buf = (long) log_buf; in try_loader()
1893 fprintf(stderr, "err %d\n%s\n%s", err, opts.errstr, log_buf); in try_loader()
1898 free(log_buf); in try_loader()
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/
H A D0009-vmcore-dmesg.c-work-around-missing-imaxdiv.patch35 fprintf(stderr, "Missing the log_buf symbol\n");
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Daldebaran_ppt.c1683 char log_buf[256]; in aldebaran_log_thermal_throttling_event() local
1691 memset(log_buf, 0, sizeof(log_buf)); in aldebaran_log_thermal_throttling_event()
1696 buf_idx += snprintf(log_buf + buf_idx, in aldebaran_log_thermal_throttling_event()
1697 sizeof(log_buf) - buf_idx, in aldebaran_log_thermal_throttling_event()
1701 if (buf_idx >= sizeof(log_buf)) { in aldebaran_log_thermal_throttling_event()
1703 log_buf[sizeof(log_buf) - 1] = '\0'; in aldebaran_log_thermal_throttling_event()
1710 log_buf); in aldebaran_log_thermal_throttling_event()
H A Dsmu_v13_0_6_ppt.c1894 char log_buf[256]; in smu_v13_0_6_log_thermal_throttling_event() local
1900 memset(log_buf, 0, sizeof(log_buf)); in smu_v13_0_6_log_thermal_throttling_event()
1907 log_buf + buf_idx, sizeof(log_buf) - buf_idx, in smu_v13_0_6_log_thermal_throttling_event()
1910 if (buf_idx >= sizeof(log_buf)) { in smu_v13_0_6_log_thermal_throttling_event()
1912 log_buf[sizeof(log_buf) - 1] = '\0'; in smu_v13_0_6_log_thermal_throttling_event()
1920 log_buf); in smu_v13_0_6_log_thermal_throttling_event()
/openbmc/linux/tools/lib/bpf/
H A Dbpf.h98 char *log_buf; member
124 char *log_buf; member
H A Dlibbpf.c431 char *log_buf; member
677 char *log_buf; member
6965 log_buf = prog->log_buf; in bpf_object_load_prog()
6969 log_buf = obj->log_buf; in bpf_object_load_prog()
6979 log_buf = tmp; in bpf_object_load_prog()
6985 load_attr.log_buf = log_buf; in bpf_object_load_prog()
7042 if (own_log_buf && log_buf && log_buf[0] != '\0') { in bpf_object_load_prog()
7049 free(log_buf); in bpf_object_load_prog()
7383 char *log_buf; in bpf_object_open() local
7420 obj->log_buf = log_buf; in bpf_object_open()
[all …]
H A Dbtf.c1160 int btf_load_into_kernel(struct btf *btf, char *log_buf, size_t log_sz, __u32 log_level) in btf_load_into_kernel() argument
1170 if (log_sz && !log_buf) in btf_load_into_kernel()
1194 if (!log_buf) { in btf_load_into_kernel()
1205 opts.log_buf = log_buf ? log_buf : buf; in btf_load_into_kernel()
1206 opts.log_size = log_buf ? log_sz : buf_sz; in btf_load_into_kernel()
1220 if (!log_buf && errno == ENOSPC && buf_sz <= UINT_MAX / 2) in btf_load_into_kernel()
1226 if (!log_buf && buf[0]) in btf_load_into_kernel()
H A Dgen_loader.c437 offsetof(struct bpf_loader_ctx, log_buf), false); in bpf_gen__load_btf()
1000 move_ctx2blob(gen, attr_field(prog_load_attr, log_buf), 8, in bpf_gen__prog_load()
1001 offsetof(struct bpf_loader_ctx, log_buf), false); in bpf_gen__prog_load()
/openbmc/linux/drivers/block/mtip32xx/
H A Dmtip32xx.h386 u16 *log_buf; member
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/
H A Darcturus_ppt.c2319 char log_buf[256]; in arcturus_log_thermal_throttling_event() local
2327 memset(log_buf, 0, sizeof(log_buf)); in arcturus_log_thermal_throttling_event()
2332 buf_idx += snprintf(log_buf + buf_idx, in arcturus_log_thermal_throttling_event()
2333 sizeof(log_buf) - buf_idx, in arcturus_log_thermal_throttling_event()
2337 if (buf_idx >= sizeof(log_buf)) { in arcturus_log_thermal_throttling_event()
2339 log_buf[sizeof(log_buf) - 1] = '\0'; in arcturus_log_thermal_throttling_event()
2346 log_buf); in arcturus_log_thermal_throttling_event()
/openbmc/linux/tools/testing/selftests/net/
H A Dreuseport_bpf_numa.c92 attr.log_buf = (unsigned long) &bpf_log_buf; in attach_bpf()
/openbmc/qemu/hw/display/
H A Dqxl.c1762 char *log_buf = g_strndup((const char *)d->ram->log_buf, local
1763 sizeof(d->ram->log_buf));
1764 trace_qxl_io_log(d->id, log_buf);
1767 qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), log_buf);
1769 g_free(log_buf);
/openbmc/linux/include/linux/
H A Dbpf_verifier.h684 char __user *log_buf, u32 log_size);
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sock.c396 opts.log_buf = bpf_log_buf; in load_sock_prog()
/openbmc/linux/drivers/gpu/drm/qxl/
H A Dqxl_dev.h350 uint8_t log_buf[QXL_LOG_BUF_SIZE]; member

123