Home
last modified time | relevance | path

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

1234567

/Linux-v5.15/kernel/bpf/preload/iterators/
Diterators.skel.h50 obj = (struct iterators_bpf *)calloc(1, sizeof(*obj)); in iterators_bpf__open_opts()
108 s = (struct bpf_object_skeleton *)calloc(1, sizeof(*s)); in iterators_bpf__create_skeleton()
120 s->maps = (struct bpf_map_skeleton *)calloc(s->map_cnt, s->map_skel_sz); in iterators_bpf__create_skeleton()
131 s->progs = (struct bpf_prog_skeleton *)calloc(s->prog_cnt, s->prog_skel_sz); in iterators_bpf__create_skeleton()
/Linux-v5.15/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()
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()
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()
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-v5.15/tools/testing/selftests/bpf/map_tests/
Darray_map_batch_ops.c98 keys = calloc(max_entries, sizeof(*keys)); in __test_map_lookup_and_update_batch()
99 values = calloc(max_entries, value_size); in __test_map_lookup_and_update_batch()
100 visited = calloc(max_entries, sizeof(*visited)); in __test_map_lookup_and_update_batch()
/Linux-v5.15/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-v5.15/tools/perf/bench/
Depoll-wait.c165 aux = calloc(1, size); in shuffle()
248 epollfdp = calloc(nested, sizeof(*epollfdp)); in nest_epollfd()
322 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
457 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_wait()
Depoll-ctl.c108 epollfdp = calloc(nested, sizeof(int)); in nest_epollfd()
236 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
338 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_ctl()
Dfutex-hash.c155 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_hash()
175 worker[i].futex = calloc(params.nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
Dfutex-lock-pi.c132 worker[i].futex = calloc(1, sizeof(u_int32_t)); in create_threads()
178 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_lock_pi()
/Linux-v5.15/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-v5.15/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-v5.15/tools/lib/
Dzalloc.c8 return calloc(1, size); in zalloc()
Dargv_split.c66 char **argv = calloc(argc + 1, sizeof(*argv)); in argv_split()
/Linux-v5.15/tools/virtio/ringtest/
Dring.c87 event = calloc(1, sizeof(*event)); in alloc_ring()
104 data = calloc(ring_size, sizeof(*data)); in alloc_ring()
/Linux-v5.15/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-v5.15/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()
Dnamespaces.c142 nsi = calloc(1, sizeof(*nsi)); in nsinfo__new()
169 nnsi = calloc(1, sizeof(*nnsi)); in nsinfo__copy()
/Linux-v5.15/tools/virtio/virtio-trace/
Dtrace-agent.h65 return calloc(1, size); in zalloc()
/Linux-v5.15/tools/perf/
Dbuiltin-mem.c99 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record()
106 rec_tmp = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record()
345 rep_argv = calloc(rep_argc + 1, sizeof(char *)); in report_events()
/Linux-v5.15/tools/testing/selftests/bpf/
Dbench.c371 state.producers = calloc(env.producer_cnt, sizeof(*state.producers)); in setup_benchmark()
372 state.consumers = calloc(env.consumer_cnt, sizeof(*state.consumers)); in setup_benchmark()
373 state.results = calloc(env.duration_sec + env.warmup_sec + 2, in setup_benchmark()
/Linux-v5.15/tools/perf/arch/arm/tests/
Ddwarf-unwind.c51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/Linux-v5.15/tools/perf/arch/arm64/tests/
Ddwarf-unwind.c51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/Linux-v5.15/tools/perf/arch/powerpc/tests/
Ddwarf-unwind.c51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()

1234567