Home
last modified time | relevance | path

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

12345678

/linux-6.1.9/tools/power/cpupower/utils/idle_monitor/
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()
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()
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()
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.1.9/tools/testing/selftests/bpf/map_tests/
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()
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.1.9/tools/perf/bench/
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()
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()
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()
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()
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.1.9/tools/power/acpi/os_specific/service_layers/
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.1.9/tools/vm/
Dpage_owner_sort.c268 char **ret = calloc(++count, sizeof(char *)); in explode()
272 ret[j] = calloc(i - lastindex, sizeof(char)); in explode()
278 ret[j] = calloc(len - lastindex, sizeof(char)); in explode()
573 sc.signs = calloc(1, sizeof(int)); in set_single_cmp()
576 sc.cmps = calloc(1, sizeof(int *)); in set_single_cmp()
593 sc.signs = calloc(size, sizeof(int)); in parse_sort_args()
594 sc.cmps = calloc(size, sizeof(int *)); in parse_sort_args()
638 int *list = calloc(size, sizeof(int)); in parse_nums_list()
/linux-6.1.9/tools/perf/arch/x86/util/
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.1.9/tools/testing/selftests/sync/
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.1.9/tools/lib/
Dzalloc.c8 return calloc(1, size); in zalloc()
Dargv_split.c66 char **argv = calloc(argc + 1, sizeof(*argv)); in argv_split()
/linux-6.1.9/tools/virtio/ringtest/
Dring.c87 event = calloc(1, sizeof(*event)); in alloc_ring()
104 data = calloc(ring_size, sizeof(*data)); in alloc_ring()
/linux-6.1.9/tools/bpf/bpftool/
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.1.9/tools/tracing/rtla/src/
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.1.9/tools/virtio/virtio-trace/
Dtrace-agent.h65 return calloc(1, size); in zalloc()
/linux-6.1.9/tools/perf/
Dbuiltin-mem.c103 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record()
110 rec_tmp = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record()
355 rep_argv = calloc(rep_argc + 1, sizeof(char *)); in report_events()
/linux-6.1.9/tools/perf/util/
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.1.9/tools/perf/arch/arm/tests/
Ddwarf-unwind.c51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/linux-6.1.9/tools/perf/arch/powerpc/tests/
Ddwarf-unwind.c51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()

12345678