/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | log_fixup.c | 16 char log_buf[8 * 1024]; in bad_core_relo() local 25 memset(log_buf, 0, sizeof(log_buf)); in bad_core_relo() 26 bpf_program__set_log_buf(skel->progs.bad_relo, log_buf, log_buf_size ?: sizeof(log_buf)); in bad_core_relo() 33 ASSERT_HAS_SUBSTR(log_buf, in bad_core_relo() 40 ASSERT_HAS_SUBSTR(log_buf, in bad_core_relo() 43 ASSERT_HAS_SUBSTR(log_buf, in bad_core_relo() 74 char log_buf[8 * 1024]; in bad_core_relo_subprog() local 83 bpf_program__set_log_buf(skel->progs.bad_relo_subprog, log_buf, sizeof(log_buf)); in bad_core_relo_subprog() 106 char log_buf[8 * 1024]; in missing_map() local 117 bpf_program__set_log_buf(skel->progs.use_missing_map, log_buf, sizeof(log_buf)); in missing_map() [all …]
|
H A D | log_buf.c | 153 char *log_buf; in bpf_prog_load_log_buf() local 159 opts.log_buf = log_buf; in bpf_prog_load_log_buf() 163 log_buf[0] = '\0'; in bpf_prog_load_log_buf() 174 log_buf[0] = '\0'; in bpf_prog_load_log_buf() 185 log_buf[0] = '\0'; in bpf_prog_load_log_buf() 195 free(log_buf); in bpf_prog_load_log_buf() 221 opts.log_buf = log_buf; in bpf_btf_load_log_buf() 225 log_buf[0] = '\0'; in bpf_btf_load_log_buf() 235 log_buf[0] = '\0'; in bpf_btf_load_log_buf() 253 log_buf[0] = '\0'; in bpf_btf_load_log_buf() [all …]
|
H A D | verifier_log.c | 100 opts.log_buf = logs.buf; in verif_log_subtest() 120 opts.log_buf = logs.buf; in verif_log_subtest() 178 opts.log_buf = logs.buf; in verif_log_subtest() 189 opts.log_buf = NULL; in verif_log_subtest() 198 opts.log_buf = logs.buf; in verif_log_subtest() 209 opts.log_buf = NULL; in verif_log_subtest() 218 opts.log_buf = logs.buf; in verif_log_subtest() 226 opts.log_buf = logs.buf; in verif_log_subtest() 234 opts.log_buf = logs.buf; in verif_log_subtest() 373 opts.log_buf = NULL; in verif_btf_log_subtest() [all …]
|
H A D | cb_refs.c | 8 static char log_buf[1024 * 1024]; variable 22 LIBBPF_OPTS(bpf_object_open_opts, opts, .kernel_log_buf = log_buf, in test_cb_refs() 23 .kernel_log_size = sizeof(log_buf), in test_cb_refs() 42 if (!ASSERT_OK_PTR(strstr(log_buf, cb_refs_tests[i].err_msg), "expected error message")) { in test_cb_refs() 44 fprintf(stderr, "Verifier: %s\n", log_buf); in test_cb_refs()
|
H A D | spin_lock.c | 9 static char log_buf[1024 * 1024]; variable 73 LIBBPF_OPTS(bpf_object_open_opts, opts, .kernel_log_buf = log_buf, in test_spin_lock_fail_prog() 74 .kernel_log_size = sizeof(log_buf), in test_spin_lock_fail_prog() 95 if (strstr(log_buf, "JIT does not support calling kernel function")) { in test_spin_lock_fail_prog() 100 ret = match_regex(err_msg, log_buf); in test_spin_lock_fail_prog() 106 fprintf(stderr, "Verifier: %s\n", log_buf); in test_spin_lock_fail_prog()
|
H A D | bpf_nf.c | 8 static char log_buf[1024 * 1024]; variable 140 LIBBPF_OPTS(bpf_object_open_opts, opts, .kernel_log_buf = log_buf, in test_bpf_nf_ct_fail() 141 .kernel_log_size = sizeof(log_buf), in test_bpf_nf_ct_fail() 161 if (!ASSERT_OK_PTR(strstr(log_buf, err_msg), "expected error message")) { in test_bpf_nf_ct_fail() 163 fprintf(stderr, "Verifier: %s\n", log_buf); in test_bpf_nf_ct_fail()
|
H A D | syscall.c | 7 __u64 log_buf; member 20 .log_buf = (uintptr_t) verifier_log, in test_syscall()
|
H A D | raw_tp_writable_test_run.c | 22 .log_buf = error, in serial_test_raw_tp_writable_test_run() 39 .log_buf = error, in serial_test_raw_tp_writable_test_run()
|
H A D | bpf_tcp_ca.c | 224 const char *prog_name, *log_buf; in libbpf_debug_print() local 233 log_buf = va_arg(args, char *); in libbpf_debug_print() 234 if (!log_buf) in libbpf_debug_print() 236 if (err_str && strstr(log_buf, err_str) != NULL) in libbpf_debug_print() 239 printf(format, prog_name, log_buf); in libbpf_debug_print()
|
H A D | raw_tp_writable_reject_nbd_invalid.c | 23 .log_buf = error, in test_raw_tp_writable_reject_nbd_invalid()
|
/openbmc/linux/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-log.c | 27 struct log_buf { struct 40 static struct log_buf log_buf; argument 98 struct log_buf *b = cookie; in log_buf__write() 122 struct log_buf *b = cookie; in log_buf__close() 128 static FILE *log_buf__open(struct log_buf *b, FILE *backend, unsigned int sz) in log_buf__open() 165 static void log_buf__dump(struct log_buf *b) in log_buf__dump() 187 log_buf__dump(&log_buf); in intel_pt_log_dump_buf() 203 f = log_buf__open(&log_buf, f, intel_pt_log_on_error_size); in intel_pt_log_open()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_progs.c | 248 log_buf[log_cnt] = '\0'; in print_test_log() 1248 &state->log_buf, in dispatch_thread() 1442 src = log_buf; in worker_main_send_log() 1466 if (state->log_buf) { in free_subtest_state() 1467 free(state->log_buf); in free_subtest_state() 1468 state->log_buf = NULL; in free_subtest_state() 1575 if (state->log_buf) { in worker_main() 1576 free(state->log_buf); in worker_main() 1577 state->log_buf = NULL; in worker_main() 1613 free(test_state->log_buf); in free_test_states() [all …]
|
H A D | test_loader.c | 70 if (!tester->log_buf) { in tester_init() 72 tester->log_buf = malloc(tester->log_buf_sz); in tester_init() 73 if (!ASSERT_OK_PTR(tester->log_buf, "tester_log_buf")) in tester_init() 85 free(tester->log_buf); in test_loader_fini() 353 bpf_program__set_log_buf(prog, tester->log_buf, tester->log_buf_sz); in prepare_case() 367 tester->log_buf[0] = '\0'; in prepare_case() 371 static void emit_verifier_log(const char *log_buf, bool force) in emit_verifier_log() argument 396 emit_verifier_log(tester->log_buf, true /*force*/); in validate_case() 600 emit_verifier_log(tester->log_buf, false /*force*/); in run_subtest() 605 emit_verifier_log(tester->log_buf, true /*force*/); in run_subtest() [all …]
|
H A D | test_progs.h | 73 char *log_buf; member 93 char *log_buf; member 156 char log_buf[MAX_LOG_TRUNK_SIZE + 1]; member 431 char *log_buf; member
|
H A D | testing_helpers.c | 297 __u32 kern_version, char *log_buf, in bpf_test_load_program() argument 304 .log_buf = log_buf, in bpf_test_load_program()
|
H A D | testing_helpers.h | 18 __u32 kern_version, char *log_buf,
|
/openbmc/linux/tools/power/acpi/tools/pfrut/ |
H A D | pfrut.c | 204 char *log_buf; in main() local 409 log_buf = malloc(max_data_sz + 1); in main() 410 if (!log_buf) { in main() 425 memcpy(log_buf, p_mmap, max_data_sz); in main() 426 log_buf[max_data_sz] = '\0'; in main() 427 printf("%s\n", log_buf); in main() 428 free(log_buf); in main()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | libbpf_probes.c | 105 char *log_buf, size_t log_buf_sz) in probe_prog_load() argument 108 .log_buf = log_buf, in probe_prog_load() 110 .log_level = log_buf ? 1 : 0, in probe_prog_load() 134 opts.log_buf = buf; in probe_prog_load() 147 opts.log_buf = buf; in probe_prog_load()
|
H A D | bpf.c | 242 char *log_buf; in bpf_prog_load() local 287 log_buf = OPTS_GET(opts, log_buf, NULL); in bpf_prog_load() 291 if (!!log_buf != !!log_size) in bpf_prog_load() 309 attr.log_buf = ptr_to_u64(log_buf); in bpf_prog_load() 361 if (log_level == 0 && log_buf) { in bpf_prog_load() 366 attr.log_buf = ptr_to_u64(log_buf); in bpf_prog_load() 1171 char *log_buf; in bpf_btf_load() local 1183 log_buf = OPTS_GET(opts, log_buf, NULL); in bpf_btf_load() 1189 if (log_size && !log_buf) in bpf_btf_load() 1200 attr.btf_log_buf = ptr_to_u64(log_buf); in bpf_btf_load() [all …]
|
H A D | skel_internal.h | 57 __u64 log_buf; member 339 attr.log_buf = opts->ctx->log_buf; in bpf_load_and_run()
|
/openbmc/linux/samples/bpf/ |
H A D | cookie_uid_helper_example.c | 78 static char log_buf[1 << 16]; in prog_load() local 161 .log_buf = log_buf, in prog_load() 162 .log_size = sizeof(log_buf), in prog_load() 168 error(1, errno, "failed to load prog\n%s\n", log_buf); in prog_load()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 13 __u64 log_buf; member 99 prog_load_attr.log_buf = ctx->log_buf; in bpf_prog()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | psock_fanout.c | 146 static char log_buf[65536]; in sock_fanout_set_ebpf() local 168 attr.log_buf = (unsigned long) log_buf, in sock_fanout_set_ebpf() 169 attr.log_size = sizeof(log_buf), in sock_fanout_set_ebpf() 175 fprintf(stderr, "bpf verifier:\n%s\n", log_buf); in sock_fanout_set_ebpf()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vcn.c | 1070 void *log_buf; in amdgpu_debugfs_vcn_fwlog_read() local 1082 log_buf = vcn->fw_shared.cpu_addr + vcn->fw_shared.mem_size; in amdgpu_debugfs_vcn_fwlog_read() 1084 plog = (volatile struct amdgpu_vcn_fwlog *)log_buf; in amdgpu_debugfs_vcn_fwlog_read() 1113 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read() 1154 volatile struct amdgpu_vcn_fwlog *log_buf = fw_log_cpu_addr; in amdgpu_vcn_fwlog_init() local 1163 log_buf->header_size = sizeof(struct amdgpu_vcn_fwlog); in amdgpu_vcn_fwlog_init() 1164 log_buf->buffer_size = AMDGPU_VCNFW_LOG_SIZE; in amdgpu_vcn_fwlog_init() 1165 log_buf->rptr = log_buf->header_size; in amdgpu_vcn_fwlog_init() 1166 log_buf->wptr = log_buf->header_size; in amdgpu_vcn_fwlog_init() 1167 log_buf->wrapped = 0; in amdgpu_vcn_fwlog_init()
|
/openbmc/linux/tools/build/feature/ |
H A D | test-bpf.c | 37 attr.log_buf = 0; in main()
|