Home
last modified time | relevance | path

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

12345678910>>...15

/tools/perf/util/
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()
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()
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()
A 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/damon/
A Daccess_memory_even.c29 regions = malloc(sizeof(*regions) * nr_regions); in main()
31 regions[i] = malloc(sz_region); in main()
A Daccess_memory.c30 regions = malloc(sizeof(*regions) * nr_regions); in main()
32 regions[i] = malloc(sz_region); in main()
/tools/testing/selftests/mm/
A Dhmm-tests.c311 buffer->mirror = malloc(size); in TEST_F()
374 buffer->mirror = malloc(size); in TEST_F()
433 buffer->mirror = malloc(size); in TEST_F()
481 buffer->mirror = malloc(size); in TEST_F()
549 buffer->mirror = malloc(size); in TEST_F()
627 buffer->mirror = malloc(size); in TEST_F()
702 buffer->mirror = malloc(size); in TEST_F()
820 buffer->mirror = malloc(size); in TEST_F()
868 buffer->mirror = malloc(size); in TEST_F()
923 buffer->mirror = malloc(size); in TEST_F()
[all …]
/tools/testing/selftests/powerpc/ptrace/
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()
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()
513 regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); in write_gpr()
542 regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); in show_ckpt_gpr()
[all …]
/tools/power/cpupower/utils/idle_monitor/
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()
/tools/power/cpupower/lib/
A Dcpufreq.c308 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
313 first = malloc(sizeof(*first)); in cpufreq_get_available_governors()
321 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
385 current->next = malloc(sizeof(*current)); in cpufreq_get_available_frequencies()
390 first = malloc(sizeof(*first)); in cpufreq_get_available_frequencies()
441 current->next = malloc(sizeof(*current)); in cpufreq_get_boost_frequencies()
446 first = malloc(sizeof(*first)); in cpufreq_get_boost_frequencies()
516 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list()
521 first = malloc(sizeof(*first)); in sysfs_get_cpu_list()
749 current->next = malloc(sizeof(*current)); in cpufreq_get_stats()
[all …]
/tools/perf/arch/x86/tests/
A Ddwarf-unwind.c21 buf = malloc(STACK_SIZE); in sample_ustack()
59 buf = malloc(sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/tools/testing/selftests/pidfd/
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()
[all …]
/tools/spi/
A Dspidev_test.c346 tx = malloc(size); in transfer_escaped_string()
350 rx = malloc(size); in transfer_escaped_string()
375 tx = malloc(sb.st_size); in transfer_file()
379 rx = malloc(sb.st_size); in transfer_file()
416 tx = malloc(len); in transfer_buf()
422 rx = malloc(len); in transfer_buf()
/tools/testing/selftests/bpf/prog_tests/
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()
A 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/
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()
/tools/testing/scatterlist/linux/
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()
/tools/perf/tests/shell/coresight/memcpy_thread/
A 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/
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()
/tools/testing/selftests/kvm/
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()
/tools/lib/bpf/
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()
/tools/build/feature/
A Dtest-cxa-demangle.cpp9 char *output = (char*)malloc(len); in main()
/tools/testing/selftests/bpf/map_tests/
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()
/tools/testing/selftests/powerpc/copyloops/
A Dvalidate.c71 redzone = malloc(BUFLEN); in test_copy_loop()
72 fill = malloc(BUFLEN); in test_copy_loop()
/tools/testing/selftests/cgroup/
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()

Completed in 40 milliseconds

12345678910>>...15