Home
last modified time | relevance | path

Searched refs:log_buf (Results 1 – 25 of 35) sorted by relevance

12

/external/strace/tests-mx32/
Dbpf-obj_get_info_by_fd.c183 static char log_buf[4096]; variable
197 if (size > offsetof(struct BPF_PROG_LOAD_struct, log_buf)) in print_prog_load()
199 sizeof(log_buf)); in print_prog_load()
258 .log_size = sizeof(log_buf), in main()
259 .log_buf = (uintptr_t) log_buf, in main()
268 offsetofend(struct BPF_PROG_LOAD_struct, log_buf), in main()
289 log_buf); in main()
Dbpf.c506 static char *log_buf; variable
516 if (!log_buf) in get_log_buf()
517 log_buf = tail_alloc(log_buf_size); in get_log_buf()
518 return log_buf; in get_log_buf()
544 attr->log_buf = (uintptr_t) get_log_buf_tail(); in init_BPF_PROG_LOAD_attr3()
567 attr->log_buf = (uintptr_t) get_log_buf(); in init_BPF_PROG_LOAD_attr4()
570 strncpy(log_buf, "log test", 9); in init_BPF_PROG_LOAD_attr4()
602 .log_buf = 0,
621 .log_buf = 0xffffffff00000000,
/external/strace/tests-m32/
Dbpf-obj_get_info_by_fd.c183 static char log_buf[4096]; variable
197 if (size > offsetof(struct BPF_PROG_LOAD_struct, log_buf)) in print_prog_load()
199 sizeof(log_buf)); in print_prog_load()
258 .log_size = sizeof(log_buf), in main()
259 .log_buf = (uintptr_t) log_buf, in main()
268 offsetofend(struct BPF_PROG_LOAD_struct, log_buf), in main()
289 log_buf); in main()
Dbpf.c506 static char *log_buf; variable
516 if (!log_buf) in get_log_buf()
517 log_buf = tail_alloc(log_buf_size); in get_log_buf()
518 return log_buf; in get_log_buf()
544 attr->log_buf = (uintptr_t) get_log_buf_tail(); in init_BPF_PROG_LOAD_attr3()
567 attr->log_buf = (uintptr_t) get_log_buf(); in init_BPF_PROG_LOAD_attr4()
570 strncpy(log_buf, "log test", 9); in init_BPF_PROG_LOAD_attr4()
602 .log_buf = 0,
621 .log_buf = 0xffffffff00000000,
/external/strace/tests/
Dbpf-obj_get_info_by_fd.c183 static char log_buf[4096]; variable
197 if (size > offsetof(struct BPF_PROG_LOAD_struct, log_buf)) in print_prog_load()
199 sizeof(log_buf)); in print_prog_load()
258 .log_size = sizeof(log_buf), in main()
259 .log_buf = (uintptr_t) log_buf, in main()
268 offsetofend(struct BPF_PROG_LOAD_struct, log_buf), in main()
289 log_buf); in main()
Dbpf.c506 static char *log_buf; variable
516 if (!log_buf) in get_log_buf()
517 log_buf = tail_alloc(log_buf_size); in get_log_buf()
518 return log_buf; in get_log_buf()
544 attr->log_buf = (uintptr_t) get_log_buf_tail(); in init_BPF_PROG_LOAD_attr3()
567 attr->log_buf = (uintptr_t) get_log_buf(); in init_BPF_PROG_LOAD_attr4()
570 strncpy(log_buf, "log test", 9); in init_BPF_PROG_LOAD_attr4()
602 .log_buf = 0,
621 .log_buf = 0xffffffff00000000,
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_stub.c27 __u32 kern_version, char *log_buf, in bpf_test_load_program() argument
43 return bpf_load_program_xattr(&load_attr, log_buf, log_buf_sz); in bpf_test_load_program()
Dtest_progs.c50 env.log_buf[env.log_cnt] = '\0'; in dump_test_log()
51 fprintf(env.stdout, "%s", env.log_buf); in dump_test_log()
52 if (env.log_buf[env.log_cnt - 1] != '\n') in dump_test_log()
506 stdout = open_memstream(&env.log_buf, &env.log_cnt); in stdio_hijack()
524 free(env.log_buf); in stdio_restore()
526 env.log_buf = NULL; in stdio_restore()
Dtest_progs.h66 char *log_buf; member
Dtest_verifier_log.c57 attr.log_buf = ptr_to_u64(log); in load()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_fanout.c132 static char log_buf[65536]; in sock_fanout_set_ebpf() local
154 attr.log_buf = (unsigned long) log_buf, in sock_fanout_set_ebpf()
155 attr.log_size = sizeof(log_buf), in sock_fanout_set_ebpf()
161 fprintf(stderr, "bpf verifier:\n%s\n", log_buf); in sock_fanout_set_ebpf()
Dreuseport_bpf_numa.c92 attr.log_buf = (unsigned long) &bpf_log_buf; in attach_bpf()
/external/bcc/src/cc/
Dlibbpf.c487 int log_level, char *log_buf, unsigned log_buf_size) in bpf_prog_load() argument
515 log_buf[0] = 0; in bpf_prog_load()
516 attr.log_buf = ptr_to_u64(log_buf); in bpf_prog_load()
528 attr.log_buf = ptr_to_u64(tmp_log_buf); in bpf_prog_load()
577 attr.log_buf = ptr_to_u64(log_buf); in bpf_prog_load()
582 bpf_print_hints(ret, log_buf); in bpf_prog_load()
603 attr.log_buf = ptr_to_u64(tmp_log_buf); in bpf_prog_load()
623 if (log_buf && ret < 0) in bpf_prog_load()
624 bpf_print_hints(ret, log_buf); in bpf_prog_load()
Dlibbpf.h62 int log_level, char *log_buf, unsigned log_buf_size);
/external/strace/
Dbpf_attr_check.c215 static_assert(SoM(struct BPF_PROG_LOAD_struct, log_buf) == SoM(union bpf_attr, log_buf),
217 static_assert(offsetof(struct BPF_PROG_LOAD_struct, log_buf) == offsetof(union bpf_attr, log_buf),
Dbpf_attr.h121 uint64_t ATTRIBUTE_ALIGNED(8) log_buf;
Dbpf.c289 print_big_u64_addr(attr.log_buf); in BEGIN_BPF_CMD_DECODER()
290 printstr_ex(tcp, attr.log_buf, attr.log_size, QUOTE_0_TERMINATED); in BEGIN_BPF_CMD_DECODER()
/external/ltp/testcases/kernel/syscalls/bpf/
Dbpf_prog01.c76 attr->log_buf = ptr_to_u64(log); in load_prog()
Dbpf_prog03.c97 attr->log_buf = ptr_to_u64(log); in load_prog()
Dbpf_prog02.c79 attr->log_buf = ptr_to_u64(log); in load_prog()
/external/elfutils/tests/
Drun-readelf-vmcoreinfo.sh97 SYMBOL(log_buf)=ffffffff81a532a8
/external/strace/m4/
Dbpf_attr.m443 union bpf_attr.log_buf,
/external/bcc/src/cc/includes/
Dlibbpf.h62 int log_level, char *log_buf, unsigned log_buf_size);
/external/iproute2/include/uapi/linux/
Dbpf.h211 __aligned_u64 log_buf; /* user supplied buffer */ member
/external/ltp/include/lapi/
Dbpf.h209 aligned_uint64_t log_buf; /* user supplied buffer */ member

12