Home
last modified time | relevance | path

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

12345678910>>...16

/linux-5.19.10/tools/testing/selftests/vm/
Dhmm-tests.c238 buffer = malloc(sizeof(*buffer)); in TEST_F()
243 buffer->mirror = malloc(size); in TEST_F()
301 buffer = malloc(sizeof(*buffer)); in TEST_F()
306 buffer->mirror = malloc(size); in TEST_F()
360 buffer = malloc(sizeof(*buffer)); in TEST_F()
365 buffer->mirror = malloc(size); in TEST_F()
408 buffer = malloc(sizeof(*buffer)); in TEST_F()
413 buffer->mirror = malloc(size); in TEST_F()
476 buffer = malloc(sizeof(*buffer)); in TEST_F()
481 buffer->mirror = malloc(size); in TEST_F()
[all …]
/linux-5.19.10/tools/testing/selftests/powerpc/ptrace/
Dptrace.h146 reg = malloc(sizeof(unsigned long)); in show_tar_registers()
192 reg = malloc(sizeof(unsigned long)); in write_tar_registers()
235 reg = malloc(sizeof(unsigned long)); in show_tm_checkpointed_state()
283 reg = malloc(sizeof(unsigned long)); in write_ckpt_tar_registers()
326 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in show_fpr()
345 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in write_fpr()
369 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in show_ckpt_fpr()
393 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in write_ckpt_fpr()
420 regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); in show_gpr()
445 regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); in write_gpr()
[all …]
Dperf-hwbreak.c256 target = malloc(8); in runtest_dar_outside()
540 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr()
541 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr()
587 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr()
588 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr()
634 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr_ro_wo()
635 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_diff_addr_ro_wo()
681 int *fd1 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr_ro_wo()
682 int *fd2 = malloc(nprocs * sizeof(int)); in test_syswide_multi_same_addr_ro_wo()
/linux-5.19.10/include/linux/decompress/
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-5.19.10/tools/power/cpupower/lib/
Dcpufreq.c240 policy = malloc(sizeof(struct cpufreq_policy)); in cpufreq_get_policy()
290 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
295 first = malloc(sizeof(*first)); in cpufreq_get_available_governors()
303 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
367 current->next = malloc(sizeof(*current)); in cpufreq_get_available_frequencies()
372 first = malloc(sizeof(*first)); in cpufreq_get_available_frequencies()
423 current->next = malloc(sizeof(*current)); in cpufreq_get_boost_frequencies()
428 first = malloc(sizeof(*first)); in cpufreq_get_boost_frequencies()
498 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list()
503 first = malloc(sizeof(*first)); in sysfs_get_cpu_list()
[all …]
/linux-5.19.10/tools/testing/selftests/kvm/x86_64/
Dget_msr_index_features.c23 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_num_index_msrs()
51 list = malloc(sizeof(*list) + old_res * sizeof(list->indices[0])); in test_get_msr_index()
69 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_num_feature_msrs()
86 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_get_msr_feature_list()
/linux-5.19.10/tools/perf/util/
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()
42 key = malloc(bpf_map__key_size(map)); in bpf_map__fprintf()
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()
Dblock-range.c120 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create()
143 entry = malloc(sizeof(struct block_range)); in block_range__create()
167 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create()
205 struct block_range *tail = malloc(sizeof(struct block_range)); in block_range__create()
252 tail = malloc(sizeof(struct block_range)); in block_range__create()
275 struct block_range *hole = malloc(sizeof(struct block_range)); in block_range__create()
Dtrace-event-read.c136 str = malloc(size); in read_string()
176 buf = malloc(size + 1); in read_ftrace_printk()
210 header_page = malloc(size); in read_header_files()
249 buf = malloc(size); in read_ftrace_file()
275 buf = malloc(size); in read_event_file()
353 buf = malloc(size + 1); in read_saved_cmdline()
/linux-5.19.10/lib/
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()
Ddecompress_unxz.c157 #define kmalloc(size, flags) malloc(size)
159 #define vmalloc(size) malloc(size)
282 b.out = malloc(XZ_IOBUF_SIZE); in unxz()
289 in = malloc(XZ_IOBUF_SIZE); in unxz()
/linux-5.19.10/tools/power/cpupower/utils/idle_monitor/
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-5.19.10/Documentation/translations/zh_CN/infiniband/
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-5.19.10/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c227 ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */); in main()
274 buf_in = malloc(BUF_LEN); in main()
275 buf_out = malloc(BUF_LEN); in main()
276 iocb_in = malloc(sizeof(*iocb_in)); in main()
277 iocb_out = malloc(sizeof(*iocb_out)); in main()
/linux-5.19.10/tools/spi/
Dspidev_test.c318 tx = malloc(size); in transfer_escaped_string()
322 rx = malloc(size); in transfer_escaped_string()
347 tx = malloc(sb.st_size); in transfer_file()
351 rx = malloc(sb.st_size); in transfer_file()
388 tx = malloc(len); in transfer_buf()
394 rx = malloc(len); in transfer_buf()
/linux-5.19.10/arch/um/os-Linux/
Dumid.c52 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir()
142 file = malloc(filelen); in is_umdir_used()
217 file = malloc(n); in create_pid_file()
372 uml_dir = malloc(strlen(name) + 2); in set_uml_dir()
396 dir = malloc(strlen(uml_dir) + UMID_LEN + 1); in remove_umid_dir()
/linux-5.19.10/tools/usb/ffs-aio-example/multibuff/device_app/
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-5.19.10/tools/testing/selftests/bpf/prog_tests/
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-5.19.10/tools/lib/bpf/
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-5.19.10/tools/testing/selftests/kvm/
Dkvm_binary_stats_test.c36 header = malloc(sizeof(*header)); in stats_test()
44 id = malloc(header->name_size); in stats_test()
142 stats_data = malloc(size_data); in stats_test()
229 vms = malloc(sizeof(vms[0]) * max_vm); in main()
/linux-5.19.10/arch/powerpc/boot/
Dops.h28 void * (*malloc)(unsigned long size); member
211 static inline void *malloc(unsigned long size) in malloc() function
213 return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL; in malloc()
/linux-5.19.10/arch/parisc/boot/compressed/
Dmisc.c22 #define malloc malloc_gzip macro
206 #undef malloc
207 void *malloc(size_t size) in malloc() function
258 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()
/linux-5.19.10/tools/testing/scatterlist/linux/
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-5.19.10/tools/include/nolibc/
Dstdlib.h112 void *malloc(size_t len) in malloc() function
143 return malloc(res); in calloc()
154 return malloc(new_size); in realloc()
166 ret = malloc(new_size); in realloc()

12345678910>>...16