Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/linux/tools/testing/selftests/mm/
H A Dhmm-tests.c306 buffer = malloc(sizeof(*buffer)); in TEST_F()
311 buffer->mirror = malloc(size); in TEST_F()
369 buffer = malloc(sizeof(*buffer)); in TEST_F()
374 buffer->mirror = malloc(size); in TEST_F()
428 buffer = malloc(sizeof(*buffer)); in TEST_F()
433 buffer->mirror = malloc(size); in TEST_F()
476 buffer = malloc(sizeof(*buffer)); in TEST_F()
481 buffer->mirror = malloc(size); in TEST_F()
544 buffer = malloc(sizeof(*buffer)); in TEST_F()
549 buffer->mirror = malloc(size); in TEST_F()
[all …]
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h150 reg = malloc(sizeof(unsigned long)); in show_tar_registers()
196 reg = malloc(sizeof(unsigned long)); in write_tar_registers()
239 reg = malloc(sizeof(unsigned long)); in show_tm_checkpointed_state()
287 reg = malloc(sizeof(unsigned long)); in write_ckpt_tar_registers()
330 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in show_fpr()
349 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in write_fpr()
373 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in show_ckpt_fpr()
397 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in write_ckpt_fpr()
424 regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); in show_gpr()
458 fprs = malloc(sizeof(unsigned long) * PT_NUM_FPRS); in peek_fprs()
[all …]
H A Dperf-hwbreak.c302 target = malloc(8); in runtest_dar_outside()
586 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr()
587 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr()
630 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr()
631 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr()
674 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr_ro_wo()
675 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr_ro_wo()
718 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr_ro_wo()
719 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr_ro_wo()
/linux/include/linux/decompress/
H A Dmm.h42 MALLOC_VISIBLE void *malloc(int size) in malloc() function
70 #define large_malloc(a) malloc(a)
89 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
/linux/tools/perf/util/
H A Dbpf_map.c23 return malloc(round_up(bpf_map__value_size(map), 8) * in bpf_map__alloc_value()
26 return malloc(bpf_map__value_size(map)); in bpf_map__alloc_value()
39 key = malloc(bpf_map__key_size(map)); in bpf_map__fprintf()
H A Dblock-range.c116 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create()
139 entry = malloc(sizeof(struct block_range)); in block_range__create()
163 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create()
201 struct block_range *tail = malloc(sizeof(struct block_range)); in block_range__create()
248 tail = malloc(sizeof(struct block_range)); in block_range__create()
271 struct block_range *hole = malloc(sizeof(struct block_range)); in block_range__create()
H A Dlevenshtein.c48 int *row0 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
49 int *row1 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
50 int *row2 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
H A Dvalues.c16 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
17 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
26 values->counters = malloc(values->counters_max * sizeof(*values->counters)); in perf_read_values_init()
192 counterwidth = malloc(values->num_counters * sizeof(*counterwidth)); in perf_read_values_add_value()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_file_handle_test.c151 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
198 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
244 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
280 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
319 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
358 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
416 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
437 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
463 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
485 fh = malloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in TEST_F()
/linux/lib/
H A Ddecompress_inflate.c55 out_buf = malloc(out_len); in __gunzip()
68 zbuf = malloc(GZIP_IOBUF_SIZE); in __gunzip()
76 strm = malloc(sizeof(*strm)); in __gunzip()
82 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in __gunzip()
H A Ddecompress_unxz.c164 #define kmalloc(size, flags) malloc(size)
166 #define vmalloc(size) malloc(size)
289 b.out = malloc(XZ_IOBUF_SIZE); in unxz()
296 in = malloc(XZ_IOBUF_SIZE); in unxz()
/linux/tools/power/cpupower/utils/idle_monitor/
H A Dcpuidle_sysfs.c178 previous_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
179 current_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
181 previous_count[num] = malloc(sizeof(long long) * in cpuidle_register()
183 current_count[num] = malloc(sizeof(long long) * in cpuidle_register()
/linux/Documentation/translations/zh_CN/infiniband/
H A Duser_mad.rst62 mad = malloc(sizeof *mad + 256);
72 mad = malloc(sizeof *mad + 256);
77 mad = malloc(sizeof *mad + length);
104 mad = malloc(sizeof *mad + mad_length);
/linux/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c245 ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */); in main()
292 buf_in = malloc(BUF_LEN); in main()
293 buf_out = malloc(BUF_LEN); in main()
294 iocb_in = malloc(sizeof(*iocb_in)); in main()
295 iocb_out = malloc(sizeof(*iocb_out)); in main()
/linux/arch/um/os-Linux/
H A Dumid.c52 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir()
142 file = malloc(filelen); in is_umdir_used()
216 file = malloc(n); in create_pid_file()
373 uml_dir = malloc(strlen(name) + 2); in set_uml_dir()
397 dir = malloc(strlen(uml_dir) + UMID_LEN + 1); in remove_umid_dir()
/linux/tools/usb/ffs-aio-example/multibuff/device_app/
H A Daio_multibuff.c211 iobuf->buf = malloc(n*sizeof(*iobuf->buf)); in init_bufs()
212 iobuf->iocb = malloc(n*sizeof(*iobuf->iocb)); in init_bufs()
217 iobuf->buf[i] = malloc(len*sizeof(**iobuf->buf)); in init_bufs()
218 iobuf->iocb[i] = malloc(sizeof(**iobuf->iocb)); in init_bufs()
256 ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */); in main()
/linux/tools/testing/selftests/damon/
H A Daccess_memory.c30 regions = malloc(sizeof(*regions) * nr_regions); in main()
32 regions[i] = malloc(sz_region); in main()
/linux/tools/testing/selftests/kvm/
H A Dkvm_binary_stats_test.c41 id = malloc(header.name_size); in stats_test()
153 stats_data = malloc(size_data); in stats_test()
213 vms = malloc(sizeof(vms[0]) * max_vm); in main()
216 vcpus = malloc(sizeof(struct kvm_vcpu *) * max_vm * max_vcpu); in main()
/linux/arch/powerpc/boot/
H A Dops.h26 void * (*malloc)(unsigned long size); member
209 static inline void *malloc(unsigned long size) in malloc() function
211 return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL; in malloc()
/linux/tools/lib/bpf/
H A Dbpf_prog_linfo.c127 prog_linfo->raw_linfo = malloc(data_sz); in bpf_prog_linfo__new()
147 prog_linfo->raw_jited_linfo = malloc(data_sz); in bpf_prog_linfo__new()
154 prog_linfo->nr_jited_linfo_per_func = malloc(nr_jited_func * in bpf_prog_linfo__new()
163 prog_linfo->jited_linfo_func_idx = malloc(nr_jited_func * in bpf_prog_linfo__new()
/linux/arch/parisc/boot/compressed/
H A Dmisc.c22 #define malloc malloc_gzip macro
206 #undef malloc
207 static void *malloc(size_t size) in malloc() function
258 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_adjust_frags.c26 buf = malloc(128); in test_xdp_update_frags()
51 buf = malloc(9000); in test_xdp_update_frags()
119 buf = malloc(buf_size); in test_xdp_update_frags()
/linux/tools/testing/selftests/cgroup/
H A Dtest_zswap.c66 char *mem = (char *)malloc(size); in allocate_and_read_bytes()
87 char *mem = (char *)malloc(size); in allocate_bytes()
273 mem = (char *)malloc(memsize); in attempt_writeback()
433 control_allocation = malloc(control_allocation_size); in test_no_invasive_cgroup_shrink()
469 allocation = malloc(values->target_alloc_bytes); in no_kmem_bypass_child()
545 char *trigger_allocation = malloc(trigger_allocation_size); in test_no_kmem_bypass()
/linux/tools/testing/scatterlist/linux/
H A Dmm.h105 return (unsigned long)malloc(PAGE_SIZE); in __get_free_page()
115 return malloc(size); in kmalloc()
121 return malloc(n * size); in kmalloc_array()
/linux/tools/testing/selftests/bpf/map_tests/
H A Dlpm_trie_map_batch_ops.c86 keys = malloc(max_entries * sizeof(struct test_lpm_key)); in test_lpm_trie_map_batch_ops()
87 values = malloc(max_entries * sizeof(int)); in test_lpm_trie_map_batch_ops()
88 visited = malloc(max_entries * sizeof(int)); in test_lpm_trie_map_batch_ops()

12345678910>>...15