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

<<11121314151617

/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/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/lib/bpf/
H A Dlibbpf_probes.c241 raw_btf = malloc(btf_len);
/linux-master/tools/testing/selftests/net/netfilter/
H A Dnf_queue.c279 buf = malloc(buflen);
281 perror("malloc");
/linux-master/tools/testing/selftests/capabilities/
H A Dtest_execve.c16 #include <malloc.h>
/linux-master/tools/testing/selftests/kvm/
H A Dkvm_page_table_test.c352 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads));
/linux-master/tools/testing/selftests/kvm/lib/
H A Dmemstress.c372 bitmaps = malloc(slots * sizeof(bitmaps[0]));
H A Dtest_util.c408 clk_name = malloc(st.st_size);
/linux-master/tools/testing/selftests/kvm/lib/x86_64/
H A Dprocessor.c974 list = malloc(sizeof(*list) + nmsrs.nmsrs * sizeof(list->indices[0]));
1028 state->xsave = malloc(size);
1031 state->xsave = malloc(sizeof(struct kvm_xsave));
1059 state = malloc(sizeof(*state) + msr_list->nmsrs * sizeof(state->msrs.entries[0]));
1216 perror("malloc");
/linux-master/tools/testing/selftests/landlock/
H A Dbase_test.c27 char *const buf = malloc(page_size + 1);
/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));
1636 expr = malloc(sizeof(struct metric_expr));
1810 new_expr = malloc(sizeof(*new_expr));
H A Dtime-utils.c343 str = malloc(len + 3);
/linux-master/tools/testing/selftests/openat2/
H A Dopenat2_test.c115 copy = malloc(misalign + sizeof(how_ext));
/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),
/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/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");
794 buf = malloc(size);
796 fprintf(stderr, "malloc() failed\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"))
/linux-master/tools/objtool/
H A Dcheck.c409 WARN("malloc failed");
1758 orig_alt_group = malloc(sizeof(*orig_alt_group));
1760 WARN("malloc failed");
1794 new_alt_group = malloc(sizeof(*new_alt_group));
1796 WARN("malloc failed");
1808 nop = malloc(sizeof(*nop));
1810 WARN("malloc failed");
1994 alt = malloc(sizeof(*alt));
1996 WARN("malloc failed");
2058 alt = malloc(sizeo
[all...]
/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);

Completed in 602 milliseconds

<<11121314151617