Home
last modified time | relevance | path

Searched refs:calloc (Results 1 – 25 of 227) sorted by relevance

12345678910

/linux/tools/power/cpupower/utils/idle_monitor/
H A Dmperf_monitor.c344 is_valid = calloc(cpu_count, sizeof(int)); in mperf_register()
345 mperf_previous_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
346 aperf_previous_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
347 mperf_current_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
348 aperf_current_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
349 tsc_at_measure_start = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
350 tsc_at_measure_end = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
351 time_start = calloc(cpu_count, sizeof(struct timespec)); in mperf_register()
352 time_end = calloc(cpu_count, sizeof(struct timespec)); in mperf_register()
/linux/tools/testing/selftests/lsm/
H A Dlsm_list_modules_test.c21 __u64 *syscall_lsms = calloc(page_size, 1); in TEST()
45 __u64 *syscall_lsms = calloc(page_size, 1); in TEST()
60 __u64 *syscall_lsms = calloc(page_size, 1); in TEST()
76 __u64 *syscall_lsms = calloc(page_size, 1); in TEST()
77 char *sysfs_lsms = calloc(page_size, 1); in TEST()
H A Dlsm_get_self_attr_test.c30 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
59 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
78 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
79 __u64 *syscall_lsms = calloc(page_size, 1); in TEST()
119 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
144 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
146 __u64 *syscall_lsms = calloc(page_size, 1); in TEST()
147 char *attr = calloc(page_size, 1); in TEST()
H A Dlsm_set_self_attr_test.c27 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
43 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
59 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST()
H A Dcommon.c27 path = calloc(len, 1); in read_proc_attr()
72 char *names = calloc(sysconf(_SC_PAGESIZE), 1); in attr_lsm_count()
/linux/tools/testing/selftests/alsa/
H A Dtest-pcmtest-driver.c175 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F()
214 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F()
244 chan_samples = calloc(CH_NUM, sizeof(*chan_samples)); in TEST_F()
256 chan_samples[i] = calloc(params.sec_buf_len * params.time, 1); in TEST_F()
279 chan_samples = calloc(CH_NUM, sizeof(*chan_samples)); in TEST_F()
291 chan_samples[i] = calloc(params.sec_buf_len * params.time, 1); in TEST_F()
/linux/tools/testing/selftests/bpf/map_tests/
H A Dmap_in_map_batch_ops.c132 fetched_keys = calloc(max_entries, value_size); in fetch_and_validate()
133 fetched_values = calloc(max_entries, value_size); in fetch_and_validate()
199 outer_map_keys = calloc(OUTER_MAP_ENTRIES, value_size); in _map_in_map_batch_ops()
200 inner_map_fds = calloc(OUTER_MAP_ENTRIES, value_size); in _map_in_map_batch_ops()
H A Darray_map_batch_ops.c92 keys = calloc(max_entries, sizeof(*keys)); in __test_map_lookup_and_update_batch()
93 values = calloc(max_entries, value_size); in __test_map_lookup_and_update_batch()
94 visited = calloc(max_entries, sizeof(*visited)); in __test_map_lookup_and_update_batch()
/linux/tools/perf/bench/
H A Dbreakpoint.c91 threads = calloc(thread_params.nthreads, sizeof(threads[0])); in breakpoint_thread()
124 breakpoints = calloc(thread_params.nbreakpoints, sizeof(breakpoints[0])); in bench_breakpoint_thread()
125 parallel = calloc(thread_params.nparallel, sizeof(parallel[0])); in bench_breakpoint_thread()
220 threads = calloc(nthreads, sizeof(threads[0])); in bench_breakpoint_enable()
H A Depoll-ctl.c109 epollfdp = calloc(nested, sizeof(int)); in nest_epollfd()
244 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
352 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_ctl()
/linux/tools/tracing/rtla/src/
H A Dtimerlat_aa.c849 taa_data->prev_irqs_seq = calloc(1, sizeof(*taa_data->prev_irqs_seq)); in timerlat_aa_init_seqs()
855 taa_data->nmi_seq = calloc(1, sizeof(*taa_data->nmi_seq)); in timerlat_aa_init_seqs()
861 taa_data->irqs_seq = calloc(1, sizeof(*taa_data->irqs_seq)); in timerlat_aa_init_seqs()
867 taa_data->softirqs_seq = calloc(1, sizeof(*taa_data->softirqs_seq)); in timerlat_aa_init_seqs()
873 taa_data->threads_seq = calloc(1, sizeof(*taa_data->threads_seq)); in timerlat_aa_init_seqs()
879 taa_data->stack_seq = calloc(1, sizeof(*taa_data->stack_seq)); in timerlat_aa_init_seqs()
1029 taa_ctx = calloc(1, sizeof(*taa_ctx)); in timerlat_aa_init()
1039 taa_ctx->taa_data = calloc(nr_cpus, sizeof(*taa_ctx->taa_data)); in timerlat_aa_init()
H A Dactions.c18 self->list = calloc(self->size, sizeof(struct action)); in actions_init()
70 action->trace_output = calloc(strlen(trace_output) + 1, sizeof(char)); in actions_add_trace_output()
104 action->command = calloc(strlen(command) + 1, sizeof(char)); in actions_add_shell()
/linux/tools/mm/
H A Dpage_owner_sort.c271 char **ret = calloc(++count, sizeof(char *)); in explode()
275 ret[j] = calloc(i - lastindex, sizeof(char)); in explode()
281 ret[j] = calloc(len - lastindex, sizeof(char)); in explode()
542 sc.signs = calloc(1, sizeof(int)); in set_single_cmp()
545 sc.cmps = calloc(1, sizeof(int *)); in set_single_cmp()
562 sc.signs = calloc(size, sizeof(int)); in parse_sort_args()
563 sc.cmps = calloc(size, sizeof(int *)); in parse_sort_args()
605 int *list = calloc(size, sizeof(int)); in parse_nums_list()
/linux/tools/lib/bpf/
H A Dbtf_relocate.c23 #define calloc(nmemb, sz) kvcalloc(nmemb, sz, GFP_KERNEL | __GFP_NOWARN) macro
195 info = calloc(r->nr_dist_base_types, sizeof(*info)); in btf_relocate_map_distilled_base()
225 base_name_cnt = calloc(r->base_str_len, sizeof(*base_name_cnt)); in btf_relocate_map_distilled_base()
463 r.id_map = calloc(nr_types, sizeof(*r.id_map)); in btf_relocate()
464 r.str_map = calloc(btf_header(r.dist_base_btf)->str_len, sizeof(*r.str_map)); in btf_relocate()
/linux/tools/power/acpi/os_specific/service_layers/
H A Dosunixdir.c54 external_info = calloc(1, sizeof(struct external_find_info)); in acpi_os_open_directory()
109 temp_str = calloc(str_len, 1); in acpi_os_get_next_filename()
/linux/tools/objtool/
H A Delf.c380 elf->section_data = calloc(sections_nr, sizeof(*sec)); in read_sections()
570 elf->symbol_data = calloc(symbols_nr, sizeof(*sym)); in read_symbols()
786 buf = calloc(num, entsize); in elf_update_symbol()
801 buf = calloc(num, sizeof(Elf32_Word)); in elf_update_symbol()
870 sym = calloc(1, sizeof(*sym)); in elf_create_symbol()
969 struct symbol *sym = calloc(1, sizeof(*sym)); in elf_create_section_symbol()
1087 rsec->relocs = calloc(sec_num_entries(rsec), sizeof(*reloc)); in read_relocs()
1198 elf = calloc(1, sizeof(*elf)); in elf_create_file()
1309 sym = calloc(1, sizeof(*sym)); in elf_create_file()
1368 sec->data->d_buf = calloc(1, size); in elf_add_data()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dhtab_update.c38 value = calloc(1, value_size); in test_reenter_update()
111 tids = calloc(nr, sizeof(*tids)); in test_concurrent_update()
/linux/tools/testing/selftests/sync/
H A Dsync.c90 info = calloc(1, sizeof(*info)); in sync_file_info()
106 fence_info = calloc(num_fences, sizeof(*fence_info)); in sync_file_info()
/linux/tools/bpf/bpftool/
H A Dcfg.c75 new_func = calloc(1, sizeof(*new_func)); in cfg_append_func()
101 new_bb = calloc(1, sizeof(*new_bb)); in func_append_bb()
118 bb = calloc(1, sizeof(*bb)); in func_insert_dummy_bb()
261 e = calloc(1, sizeof(*e)); in new_edge()
/linux/tools/virtio/ringtest/
H A Dring.c87 event = calloc(1, sizeof(*event)); in alloc_ring()
104 data = calloc(ring_size, sizeof(*data)); in alloc_ring()
/linux/tools/testing/selftests/vfio/
H A Dvfio_pci_device_init_perf_test.c48 self->threads = calloc(nr_devices, sizeof(self->threads[0])); in FIXTURE_SETUP()
49 self->thread_args = calloc(nr_devices, sizeof(self->thread_args[0])); in FIXTURE_SETUP()
/linux/tools/lib/
H A Dzalloc.c8 return calloc(1, size); in zalloc()
/linux/tools/perf/util/
H A Dmmap.c154 map->aio.aiocb = calloc(map->aio.nr_cblocks, sizeof(struct aiocb *)); in perf_mmap__aio_mmap()
159 map->aio.cblocks = calloc(map->aio.nr_cblocks, sizeof(struct aiocb)); in perf_mmap__aio_mmap()
164 map->aio.data = calloc(map->aio.nr_cblocks, sizeof(void *)); in perf_mmap__aio_mmap()
/linux/tools/testing/selftests/futex/functional/
H A Dfutex_numa.c195 struct thread_args *args = calloc(1, sizeof(*args)); in main()
216 struct thread_args *args = calloc(1, sizeof(*args)); in main()
/linux/tools/testing/selftests/mm/
H A Dpagemap_ioctl.c212 vec = calloc(vec_size, sizeof(struct page_region)); in userfaultfd_tests()
250 vec = calloc(vec_size, sizeof(struct page_region)); in sanity_tests_sd()
254 vec2 = calloc(vec_size, sizeof(struct page_region)); in sanity_tests_sd()
439 vec = calloc(vec_size, sizeof(struct page_region)); in sanity_tests_sd()
494 vec = calloc(vec_size, sizeof(struct page_region)); in sanity_tests_sd()
544 vec = calloc(vec_size, sizeof(struct page_region)); in sanity_tests_sd()
698 vec = calloc(vec_size, sizeof(struct page_region)); in base_tests()
699 vec2 = calloc(vec_size, sizeof(struct page_region)); in base_tests()
810 vec = calloc(vec_size, sizeof(struct page_region)); in hpage_unit_tests()
811 vec2 = calloc(vec_siz in hpage_unit_tests()
[all...]

12345678910