Home
last modified time | relevance | path

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

1234567891011

/Linux-v4.19/tools/testing/selftests/powerpc/ptrace/
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()
449 regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); in write_gpr()
[all …]
/Linux-v4.19/include/linux/decompress/
Dmm.h34 static void *malloc(int size) in malloc() function
62 #define large_malloc(a) malloc(a)
81 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
/Linux-v4.19/tools/perf/util/
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.c118 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create()
141 entry = malloc(sizeof(struct block_range)); in block_range__create()
165 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create()
203 struct block_range *tail = malloc(sizeof(struct block_range)); in block_range__create()
250 tail = malloc(sizeof(struct block_range)); in block_range__create()
273 struct block_range *hole = malloc(sizeof(struct block_range)); in block_range__create()
Dtrace-event-read.c154 str = malloc(size); in read_string()
194 buf = malloc(size + 1); in read_ftrace_printk()
228 header_page = malloc(size); in read_header_files()
267 buf = malloc(size); in read_ftrace_file()
293 buf = malloc(size); in read_event_file()
370 buf = malloc(size + 1); in read_saved_cmdline()
Dsyscalltbl.c76 entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries); in syscalltbl__init_native()
95 struct syscalltbl *tbl = malloc(sizeof(*tbl)); in syscalltbl__new()
152 struct syscalltbl *tbl = malloc(sizeof(*tbl)); in syscalltbl__new()
Dvalues.c14 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
15 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
24 values->counterrawid = malloc(values->counters_max in perf_read_values_init()
26 values->countername = malloc(values->counters_max in perf_read_values_init()
207 counterwidth = malloc(values->counters * sizeof(*counterwidth)); in perf_read_values__display_pretty()
Dtrace-event-scripting.c91 scripting_context = malloc(sizeof(*scripting_context)); in register_python_scripting()
154 scripting_context = malloc(sizeof(*scripting_context)); in register_perl_scripting()
/Linux-v4.19/tools/vm/
Dpage_owner_sort.c71 list[list_size].txt = malloc(len+1); in add_list()
110 list = malloc(max_size * sizeof(*list)); in main()
111 buf = malloc(BUF_SIZE); in main()
131 list2 = malloc(sizeof(*list) * list_size); in main()
/Linux-v4.19/lib/
Ddecompress_inflate.c51 out_buf = malloc(out_len); in __gunzip()
64 zbuf = malloc(GZIP_IOBUF_SIZE); in __gunzip()
72 strm = malloc(sizeof(*strm)); in __gunzip()
78 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-v4.19/tools/power/cpupower/lib/
Dcpufreq.c232 policy = malloc(sizeof(struct cpufreq_policy)); in cpufreq_get_policy()
282 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
287 first = malloc(sizeof(*first)); in cpufreq_get_available_governors()
295 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
359 current->next = malloc(sizeof(*current)); in cpufreq_get_available_frequencies()
364 first = malloc(sizeof(*first)); in cpufreq_get_available_frequencies()
429 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list()
434 first = malloc(sizeof(*first)); in sysfs_get_cpu_list()
662 current->next = malloc(sizeof(*current)); in cpufreq_get_stats()
667 first = malloc(sizeof(*first)); in cpufreq_get_stats()
/Linux-v4.19/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c180 previous_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
181 current_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
183 previous_count[num] = malloc(sizeof(long long) * in cpuidle_register()
185 current_count[num] = malloc(sizeof(long long) * in cpuidle_register()
/Linux-v4.19/tools/testing/radix-tree/
Dlinux.c44 node = malloc(cachep->size); in kmem_cache_alloc()
81 ret = malloc(size); in kmalloc()
104 struct kmem_cache *ret = malloc(sizeof(*ret)); in kmem_cache_create()
/Linux-v4.19/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-v4.19/tools/spi/
Dspidev_test.c306 tx = malloc(size); in transfer_escaped_string()
310 rx = malloc(size); in transfer_escaped_string()
335 tx = malloc(sb.st_size); in transfer_file()
339 rx = malloc(sb.st_size); in transfer_file()
376 tx = malloc(len); in transfer_buf()
382 rx = malloc(len); in transfer_buf()
/Linux-v4.19/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-v4.19/arch/powerpc/boot/
Dops.h28 void * (*malloc)(unsigned long size); member
218 static inline void *malloc(unsigned long size) in malloc() function
220 return (platform_ops.malloc) ? platform_ops.malloc(size) : NULL; in malloc()
/Linux-v4.19/tools/perf/arch/x86/tests/
Ddwarf-unwind.c21 buf = malloc(STACK_SIZE); in sample_ustack()
51 buf = malloc(sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/Linux-v4.19/tools/objtool/
Delf.c159 sec = malloc(sizeof(*sec)); in read_sections()
234 sym = malloc(sizeof(*sym)); in read_symbols()
365 rela = malloc(sizeof(*rela)); in read_relas()
404 elf = malloc(sizeof(*elf)); in elf_open()
462 sec = malloc(sizeof(*sec)); in elf_create_section()
502 sec->data->d_buf = malloc(size); in elf_create_section()
560 relaname = malloc(strlen(base->name) + strlen(".rela") + 1); in elf_create_rela_section()
596 relas = malloc(size); in elf_rebuild_rela_section()
/Linux-v4.19/arch/parisc/boot/compressed/
Dmisc.c21 #define malloc malloc_gzip macro
203 #undef malloc
204 void *malloc(size_t size) in malloc() function
/Linux-v4.19/tools/bpf/bpftool/
Dmap.c97 return malloc(round_up(info->value_size, 8) * in alloc_value()
100 return malloc(info->value_size); in alloc_value()
205 ptr = malloc(last_size); in get_btf()
653 key = malloc(info.key_size); in do_dump()
761 key = malloc(info.key_size); in do_update()
809 key = malloc(info.key_size); in do_lookup()
895 key = malloc(info.key_size); in do_getnext()
896 nextkey = malloc(info.key_size); in do_getnext()
966 key = malloc(info.key_size); in do_delete()
/Linux-v4.19/tools/testing/selftests/cgroup/
Dcgroup_util.c60 char *ret = malloc(len); in cg_name()
70 char *ret = malloc(len); in cg_name_indexed()
102 buf = malloc(size); in cg_read_strcmp()
328 buf = malloc(size); in alloc_anon()
/Linux-v4.19/tools/iio/
Diio_utils.c375 *ci_array = malloc(sizeof(**ci_array) * (*counter)); in build_channel_array()
605 filename = malloc(strlen(iio_dir) + strlen(type) in find_type_by_name()
664 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int()
760 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string()
867 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint()
914 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float()
961 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_string()
/Linux-v4.19/tools/testing/selftests/powerpc/copyloops/
Dvalidate.c71 redzone = malloc(BUFLEN); in test_copy_loop()
72 fill = malloc(BUFLEN); in test_copy_loop()

1234567891011