Searched refs:malloc (Results 276 - 300 of 404) sorted by relevance

<<11121314151617

/linux-master/tools/lib/bpf/
H A Dlibbpf_probes.c241 raw_btf = malloc(btf_len);
/linux-master/tools/testing/selftests/landlock/
H A Dbase_test.c27 char *const buf = malloc(page_size + 1);
/linux-master/arch/x86/boot/compressed/
H A Dmisc.c10 * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
31 /* Define an externally visible malloc()/free(). */
315 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum);
/linux-master/tools/perf/util/
H A Dmetricgroup.c78 struct metric_event *me = malloc(sizeof(struct metric_event));
414 struct mep *me = malloc(sizeof(struct mep));
1635 expr = malloc(sizeof(struct metric_expr));
1806 new_expr = malloc(sizeof(*new_expr));
H A Dtime-utils.c343 str = malloc(len + 3);
H A Dordered-events.c148 oe->buffer = malloc(size);
/linux-master/tools/testing/selftests/kvm/lib/x86_64/
H A Dprocessor.c928 list = malloc(sizeof(*list) + nmsrs.nmsrs * sizeof(list->indices[0]));
982 state->xsave = malloc(size);
985 state->xsave = malloc(sizeof(struct kvm_xsave));
1013 state = malloc(sizeof(*state) + msr_list->nmsrs * sizeof(state->msrs.entries[0]));
1263 perror("malloc");
/linux-master/scripts/kconfig/lxdialog/
H A Dchecklist.c21 char *list_item = malloc(list_width + 1);
/linux-master/lib/
H A Dbootconfig.c76 return malloc(size);
/linux-master/tools/testing/selftests/mm/
H A Dsplit_huge_page_test.c17 #include <malloc.h>
/linux-master/tools/bpf/bpftool/
H A Dcommon.c257 file = malloc(strlen(name) + 1);
873 fds = malloc(sizeof(int));
1010 fds = malloc(sizeof(int));
/linux-master/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c100 buf = malloc(size);
102 fprintf(stderr, "malloc() failed\n");
218 buf = malloc(size);
220 fprintf(stderr, "malloc() failed\n");
792 buf = malloc(size);
794 fprintf(stderr, "malloc() failed\n");
/linux-master/tools/testing/selftests/x86/
H A Dlam.c276 * Test lam feature through dereference pointer get from malloc.
288 ptr = (char *)malloc(MALLOC_LEN);
290 perror("malloc() failure\n");
591 fi = malloc(sizeof(*fi) + sizeof(struct iovec) * blocks);
598 ring = malloc(sizeof(*ring));
953 printf("\t\t0x1:malloc; 0x2:max_bits; 0x4:mmap; 0x8:syscall; 0x10:io_uring; 0x20:inherit;\n");
H A Dsigreturn.c772 .ss_sp = malloc(sizeof(char) * SIGSTKSZ),
H A Dtest_shadow_stack.c577 cur = malloc(sizeof(*cur));
/linux-master/tools/testing/selftests/memfd/
H A Dmemfd_test.c655 buf = malloc(mfd_def_size * 8);
657 printf("malloc(%zu) failed: %m\n", mfd_def_size * 8);
679 buf = malloc(mfd_def_size * 8);
681 printf("malloc(%zu) failed: %m\n", mfd_def_size * 8);
765 stack = malloc(STACK_SIZE);
767 printf("malloc(STACK_SIZE) failed: %m\n");
/linux-master/tools/testing/selftests/net/
H A Dtls.c422 buf = (char *)malloc(st.st_size);
603 void *mem = malloc(16384);
640 test_strs[i] = (char *)malloc(strlen(test_str) + 1);
650 buf = malloc(total_len);
677 test_strs[i] = (char *)malloc(strlen(test_str) + 1);
930 iov_base[i] = (char *)malloc(iov_len);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_iter.c702 buf = malloc(expected_read_len);
703 if (!ASSERT_OK_PTR(buf, "malloc"))
872 val = malloc(8 * bpf_num_possible_cpus());
873 if (!ASSERT_OK_PTR(val, "malloc"))
1050 val = malloc(8 * bpf_num_possible_cpus());
1051 if (!ASSERT_OK_PTR(val, "malloc"))
H A Dfexit_bpf2bpf.c20 result = malloc((prog_cnt + 32 /* spare */) * sizeof(__u64));
/linux-master/scripts/
H A Dinsert-sys-cert.c245 buf = malloc(*size);
/linux-master/tools/testing/selftests/powerpc/mm/
H A Dtlbie_test.c571 void *tmp = malloc(size);
/linux-master/samples/mei/
H A Dmei-amt-version.c388 *read_buf = (uint8_t *)malloc(sizeof(uint8_t) * in_buf_sz);
/linux-master/tools/perf/tests/
H A Dsample-parsing.c299 event = malloc(bufsz);
301 pr_debug("malloc failed\n");
/linux-master/tools/power/acpi/os_specific/service_layers/
H A Dosunixxf.c534 mem = (void *)malloc((size_t) size);
/linux-master/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c161 fds = malloc(sizeof(*fds) * nr_listens);
445 if (!ASSERT_OK_PTR(token, "malloc token"))

Completed in 207 milliseconds

<<11121314151617