Home
last modified time | relevance | path

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

12345678910>>...14

/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()
39 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.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()
Dtrace-event-read.c138 str = malloc(size); in read_string()
178 buf = malloc(size + 1); in read_ftrace_printk()
212 header_page = malloc(size); in read_header_files()
251 buf = malloc(size); in read_ftrace_file()
277 buf = malloc(size); in read_event_file()
355 buf = malloc(size + 1); in read_saved_cmdline()
/tools/testing/selftests/mm/
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 …]
/tools/testing/selftests/damon/
Daccess_memory_even.c31 regions = malloc(sizeof(*regions) * nr_regions); in main()
33 regions[i] = malloc(sz_region); in main()
Daccess_memory.c30 regions = malloc(sizeof(*regions) * nr_regions); in main()
32 regions[i] = malloc(sz_region); in main()
/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()
458 fprs = malloc(sizeof(unsigned long) * PT_NUM_FPRS); in peek_fprs()
[all …]
/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 …]
/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()
/tools/perf/arch/x86/tests/
Ddwarf-unwind.c21 buf = malloc(STACK_SIZE); in sample_ustack()
59 buf = malloc(sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/tools/spi/
Dspidev_test.c339 tx = malloc(size); in transfer_escaped_string()
343 rx = malloc(size); in transfer_escaped_string()
368 tx = malloc(sb.st_size); in transfer_file()
372 rx = malloc(sb.st_size); in transfer_file()
409 tx = malloc(len); in transfer_buf()
415 rx = malloc(len); in transfer_buf()
/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()
Dglobal_data_init.c24 newval = malloc(sz); in test_global_data_init()
46 buff = malloc(sz); in test_global_data_init()
/tools/usb/ffs-aio-example/simple/device_app/
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()
/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()
/tools/perf/tests/shell/coresight/memcpy_thread/
Dmemcpy_thread.c22 src = malloc(a->size * 1024); in thrfn()
23 dst = malloc(a->size * 1024); in thrfn()
/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()
/tools/objtool/include/objtool/
Dwarn.h32 str = malloc(strlen(sym->name) + strlen(sec->name) + 40); in offstr()
37 str = malloc(strlen(sec->name) + 20); in offstr()
/tools/testing/selftests/kvm/
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()
/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()
/tools/build/feature/
Dtest-cxa-demangle.cpp9 char *output = (char*)malloc(len); in main()
/tools/testing/selftests/bpf/map_tests/
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()
/tools/objtool/
Dobjtool.c27 char *buf, *base, *name = malloc(len+6); in objtool_create_backup()
50 buf = malloc(4096); in objtool_create_backup()
/tools/testing/selftests/powerpc/copyloops/
Dvalidate.c71 redzone = malloc(BUFLEN); in test_copy_loop()
72 fill = malloc(BUFLEN); in test_copy_loop()

12345678910>>...14