Home
last modified time | relevance | path

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

1234567

/Linux-v5.10/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.10/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()
Damd_fam14h_idle.c294 previous_count[num] = calloc(cpu_count, in amd_fam14h_register()
296 current_count[num] = calloc(cpu_count, in amd_fam14h_register()
/Linux-v5.10/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.10/tools/perf/bench/
Depoll-wait.c166 aux = calloc(1, size); in shuffle()
249 epollfdp = calloc(nested, sizeof(*epollfdp)); in nest_epollfd()
323 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
458 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_wait()
Dfutex-hash.c148 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_hash()
168 worker[i].futex = calloc(nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
Dfutex-lock-pi.c130 worker[i].futex = calloc(1, sizeof(u_int32_t)); in create_threads()
171 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_lock_pi()
Depoll-ctl.c109 epollfdp = calloc(nested, sizeof(int)); in nest_epollfd()
237 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
339 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_ctl()
/Linux-v5.10/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.10/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.10/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.10/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.10/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.c137 nsi = calloc(1, sizeof(*nsi)); in nsinfo__new()
163 nnsi = calloc(1, sizeof(*nnsi)); in nsinfo__copy()
/Linux-v5.10/tools/virtio/virtio-trace/
Dtrace-agent.h65 return calloc(1, size); in zalloc()
/Linux-v5.10/tools/testing/selftests/bpf/
Dbench.c370 state.producers = calloc(env.producer_cnt, sizeof(*state.producers)); in setup_benchmark()
371 state.consumers = calloc(env.consumer_cnt, sizeof(*state.consumers)); in setup_benchmark()
372 state.results = calloc(env.duration_sec + env.warmup_sec + 2, in setup_benchmark()
/Linux-v5.10/tools/perf/arch/arm/tests/
Ddwarf-unwind.c51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/Linux-v5.10/tools/perf/arch/arm64/tests/
Ddwarf-unwind.c51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/Linux-v5.10/tools/perf/arch/powerpc/tests/
Ddwarf-unwind.c52 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
/Linux-v5.10/tools/testing/selftests/mincore/
Dmincore_selftest.c204 vec = calloc(vec_size, sizeof(unsigned char)); in TEST()
301 vec = calloc(vec_size, sizeof(unsigned char)); in TEST()
/Linux-v5.10/tools/bpf/
Dbpf_exp.y613 labels = calloc(BPF_MAXINSNS, sizeof(*labels)); in bpf_init()
615 labels_jt = calloc(BPF_MAXINSNS, sizeof(*labels_jt)); in bpf_init()
617 labels_jf = calloc(BPF_MAXINSNS, sizeof(*labels_jf)); in bpf_init()
619 labels_k = calloc(BPF_MAXINSNS, sizeof(*labels_k)); in bpf_init()

1234567