Home
last modified time | relevance | path

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

12345678

/linux-6.3-rc2/tools/power/cpupower/utils/idle_monitor/
A Dmperf_monitor.c351 is_valid = calloc(cpu_count, sizeof(int)); in mperf_register()
352 mperf_previous_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
353 aperf_previous_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
354 mperf_current_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
355 aperf_current_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
A Dhsw_ext_idle.c161 is_valid = calloc(cpu_count, sizeof(int)); in hsw_ext_register()
163 previous_count[num] = calloc(cpu_count, in hsw_ext_register()
165 current_count[num] = calloc(cpu_count, in hsw_ext_register()
A Dsnb_idle.c166 is_valid = calloc(cpu_count, sizeof(int)); in snb_register()
168 previous_count[num] = calloc(cpu_count, in snb_register()
170 current_count[num] = calloc(cpu_count, in snb_register()
A Dnhm_idle.c180 is_valid = calloc(cpu_count, sizeof(int)); in intel_nhm_register()
182 previous_count[num] = calloc(cpu_count, in intel_nhm_register()
184 current_count[num] = calloc(cpu_count, in intel_nhm_register()
/linux-6.3-rc2/tools/testing/selftests/bpf/map_tests/
A Dmap_in_map_batch_ops.c131 fetched_keys = calloc(max_entries, value_size); in fetch_and_validate()
132 fetched_values = calloc(max_entries, value_size); in fetch_and_validate()
197 outer_map_keys = calloc(max_entries, value_size); in _map_in_map_batch_ops()
198 inner_map_fds = calloc(max_entries, value_size); in _map_in_map_batch_ops()
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-6.3-rc2/tools/perf/bench/
A Dbreakpoint.c85 threads = calloc(thread_params.nthreads, sizeof(threads[0])); in breakpoint_thread()
118 breakpoints = calloc(thread_params.nbreakpoints, sizeof(breakpoints[0])); in bench_breakpoint_thread()
119 parallel = calloc(thread_params.nparallel, sizeof(parallel[0])); in bench_breakpoint_thread()
202 threads = calloc(nthreads, sizeof(threads[0])); in bench_breakpoint_enable()
A Depoll-wait.c166 aux = calloc(1, size); in shuffle()
249 epollfdp = calloc(nested, sizeof(*epollfdp)); in nest_epollfd()
330 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
471 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_wait()
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()
A Dfutex-hash.c158 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_hash()
184 worker[i].futex = calloc(params.nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
A Dfutex-lock-pi.c139 worker[i].futex = calloc(1, sizeof(u_int32_t)); in create_threads()
190 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_lock_pi()
/linux-6.3-rc2/tools/tracing/rtla/src/
A Dtimerlat_aa.c792 taa_data->prev_irqs_seq = calloc(1, sizeof(*taa_data->prev_irqs_seq)); in timerlat_aa_init_seqs()
798 taa_data->nmi_seq = calloc(1, sizeof(*taa_data->nmi_seq)); in timerlat_aa_init_seqs()
804 taa_data->irqs_seq = calloc(1, sizeof(*taa_data->irqs_seq)); in timerlat_aa_init_seqs()
810 taa_data->softirqs_seq = calloc(1, sizeof(*taa_data->softirqs_seq)); in timerlat_aa_init_seqs()
816 taa_data->threads_seq = calloc(1, sizeof(*taa_data->threads_seq)); in timerlat_aa_init_seqs()
822 taa_data->stack_seq = calloc(1, sizeof(*taa_data->stack_seq)); in timerlat_aa_init_seqs()
963 taa_ctx = calloc(1, sizeof(*taa_ctx)); in timerlat_aa_init()
973 taa_ctx->taa_data = calloc(nr_cpus, sizeof(*taa_ctx->taa_data)); in timerlat_aa_init()
A Dtimerlat_hist.c101 data = calloc(1, sizeof(*data)); in timerlat_alloc_histogram()
110 data->hist = calloc(1, sizeof(*data->hist) * nr_cpus); in timerlat_alloc_histogram()
116 data->hist[cpu].irq = calloc(1, sizeof(*data->hist->irq) * (entries + 1)); in timerlat_alloc_histogram()
119 data->hist[cpu].thread = calloc(1, sizeof(*data->hist->thread) * (entries + 1)); in timerlat_alloc_histogram()
493 params = calloc(1, sizeof(*params)); in timerlat_hist_parse_args()
/linux-6.3-rc2/tools/power/acpi/os_specific/service_layers/
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-6.3-rc2/tools/mm/
A Dpage_owner_sort.c269 char **ret = calloc(++count, sizeof(char *)); in explode()
273 ret[j] = calloc(i - lastindex, sizeof(char)); in explode()
279 ret[j] = calloc(len - lastindex, sizeof(char)); in explode()
575 sc.signs = calloc(1, sizeof(int)); in set_single_cmp()
578 sc.cmps = calloc(1, sizeof(int *)); in set_single_cmp()
595 sc.signs = calloc(size, sizeof(int)); in parse_sort_args()
596 sc.cmps = calloc(size, sizeof(int *)); in parse_sort_args()
640 int *list = calloc(size, sizeof(int)); in parse_nums_list()
/linux-6.3-rc2/tools/perf/arch/x86/util/
A Diostat.c86 struct iio_root_port *p = calloc(1, sizeof(*p)); in iio_root_port_new()
207 tmp_list = calloc(1, sizeof(*tmp_list)); in iio_root_ports_scan()
255 struct iio_root_ports_list *tmp_list = calloc(1, sizeof(*tmp_list)); in iio_root_ports_list_filter()
310 char *iostat_cmd = calloc(len_template, 1); in iostat_event_group()
/linux-6.3-rc2/tools/testing/selftests/sync/
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-6.3-rc2/tools/lib/
A Dzalloc.c8 return calloc(1, size); in zalloc()
A Dargv_split.c66 char **argv = calloc(argc + 1, sizeof(*argv)); in argv_split()
/linux-6.3-rc2/tools/virtio/ringtest/
A Dring.c87 event = calloc(1, sizeof(*event)); in alloc_ring()
104 data = calloc(ring_size, sizeof(*data)); in alloc_ring()
/linux-6.3-rc2/tools/bpf/bpftool/
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-6.3-rc2/tools/virtio/virtio-trace/
A Dtrace-agent.h65 return calloc(1, size); in zalloc()
/linux-6.3-rc2/tools/perf/util/
A Dmmap.c153 map->aio.aiocb = calloc(map->aio.nr_cblocks, sizeof(struct aiocb *)); in perf_mmap__aio_mmap()
158 map->aio.cblocks = calloc(map->aio.nr_cblocks, sizeof(struct aiocb)); in perf_mmap__aio_mmap()
163 map->aio.data = calloc(map->aio.nr_cblocks, sizeof(void *)); in perf_mmap__aio_mmap()
/linux-6.3-rc2/tools/perf/
A Dbuiltin-mem.c104 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record()
111 rec_tmp = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record()
356 rep_argv = calloc(rep_argc + 1, sizeof(char *)); in report_events()
/linux-6.3-rc2/tools/power/cpupower/lib/
A Dpowercap.c214 child_zone = calloc(1, sizeof(struct powercap_zone)); in powercap_read_zone()
260 root_zone = calloc(1, sizeof(struct powercap_zone)); in powercap_init_zones()

Completed in 58 milliseconds

12345678