Home
last modified time | relevance | path

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

1234567

/linux/kernel/bpf/preload/iterators/
A 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/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()
A 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/tools/testing/selftests/bpf/map_tests/
A 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/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()
A Doslinuxtbl.c185 local_table = calloc(1, table_length); in acpi_os_get_table_by_address()
284 new_info = calloc(1, sizeof(struct osl_table_info)); in osl_add_table_to_list()
967 local_table = calloc(1, table_length); in osl_get_bios_table()
1257 local_table = calloc(1, table_length); in osl_read_table_from_file()
/linux/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/tools/perf/bench/
A 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()
A 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()
A 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()
A 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/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/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/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/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()
A Dnamespaces.c142 nsi = calloc(1, sizeof(*nsi)); in nsinfo__new()
169 nnsi = calloc(1, sizeof(*nnsi)); in nsinfo__copy()
/linux/tools/lib/
A Dzalloc.c8 return calloc(1, size); in zalloc()
/linux/tools/perf/
A 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/tools/bpf/
A Dbpf_exp.y615 labels = calloc(BPF_MAXINSNS, sizeof(*labels)); in bpf_init()
617 labels_jt = calloc(BPF_MAXINSNS, sizeof(*labels_jt)); in bpf_init()
619 labels_jf = calloc(BPF_MAXINSNS, sizeof(*labels_jf)); in bpf_init()
621 labels_k = calloc(BPF_MAXINSNS, sizeof(*labels_k)); in bpf_init()
/linux/tools/testing/selftests/bpf/
A Dbench.c421 state.producers = calloc(env.producer_cnt, sizeof(*state.producers)); in setup_benchmark()
422 state.consumers = calloc(env.consumer_cnt, sizeof(*state.consumers)); in setup_benchmark()
423 state.results = calloc(env.duration_sec + env.warmup_sec + 2, in setup_benchmark()
/linux/tools/testing/selftests/mincore/
A Dmincore_selftest.c203 vec = calloc(vec_size, sizeof(unsigned char)); in TEST()
300 vec = calloc(vec_size, sizeof(unsigned char)); in TEST()
/linux/tools/virtio/virtio-trace/
A Dtrace-agent.h65 return calloc(1, size); in zalloc()

Completed in 28 milliseconds

1234567