Searched refs:calloc (Results 1 - 25 of 209) sorted by relevance

123456789

/linux-master/tools/lib/
H A Dzalloc.c8 return calloc(1, size);
H A Dargv_split.c66 char **argv = calloc(argc + 1, sizeof(*argv));
/linux-master/tools/testing/selftests/lsm/
H A Dlsm_set_self_attr_test.c27 struct lsm_ctx *ctx = calloc(page_size, 1);
43 struct lsm_ctx *ctx = calloc(page_size, 1);
59 char *ctx = calloc(page_size, 1);
H A Dlsm_list_modules_test.c21 __u64 *syscall_lsms = calloc(page_size, 1);
45 __u64 *syscall_lsms = calloc(page_size, 1);
60 __u64 *syscall_lsms = calloc(page_size, 1);
76 __u64 *syscall_lsms = calloc(page_size, 1);
77 char *sysfs_lsms = calloc(page_size, 1);
H A Dcommon.c27 path = calloc(len, 1);
72 char *names = calloc(sysconf(_SC_PAGESIZE), 1);
H A Dlsm_get_self_attr_test.c30 struct lsm_ctx *ctx = calloc(page_size, 1);
59 struct lsm_ctx *ctx = calloc(page_size, 1);
78 struct lsm_ctx *ctx = calloc(page_size, 1);
79 __u64 *syscall_lsms = calloc(page_size, 1);
119 struct lsm_ctx *ctx = calloc(page_size, 1);
144 struct lsm_ctx *ctx = calloc(page_size, 1);
146 __u64 *syscall_lsms = calloc(page_size, 1);
147 char *attr = calloc(page_size, 1);
/linux-master/tools/power/cpupower/utils/idle_monitor/
H A Dmperf_monitor.c345 is_valid = calloc(cpu_count, sizeof(int));
346 mperf_previous_count = calloc(cpu_count, sizeof(unsigned long long));
347 aperf_previous_count = calloc(cpu_count, sizeof(unsigned long long));
348 mperf_current_count = calloc(cpu_count, sizeof(unsigned long long));
349 aperf_current_count = calloc(cpu_count, sizeof(unsigned long long));
350 tsc_at_measure_start = calloc(cpu_count, sizeof(unsigned long long));
351 tsc_at_measure_end = calloc(cpu_count, sizeof(unsigned long long));
H A Dsnb_idle.c166 is_valid = calloc(cpu_count, sizeof(int));
168 previous_count[num] = calloc(cpu_count,
170 current_count[num] = calloc(cpu_count,
H A Dnhm_idle.c180 is_valid = calloc(cpu_count, sizeof(int));
182 previous_count[num] = calloc(cpu_count,
184 current_count[num] = calloc(cpu_count,
H A Dhsw_ext_idle.c161 is_valid = calloc(cpu_count, sizeof(int));
163 previous_count[num] = calloc(cpu_count,
165 current_count[num] = calloc(cpu_count,
/linux-master/tools/virtio/virtio-trace/
H A Dtrace-agent.h65 return calloc(1, size);
/linux-master/tools/power/acpi/os_specific/service_layers/
H A Dosunixdir.c54 external_info = calloc(1, sizeof(struct external_find_info));
109 temp_str = calloc(str_len, 1);
/linux-master/tools/testing/selftests/bpf/map_tests/
H A Darray_map_batch_ops.c92 keys = calloc(max_entries, sizeof(*keys));
93 values = calloc(max_entries, value_size);
94 visited = calloc(max_entries, sizeof(*visited));
H A Dmap_in_map_batch_ops.c131 fetched_keys = calloc(max_entries, value_size);
132 fetched_values = calloc(max_entries, value_size);
197 outer_map_keys = calloc(max_entries, value_size);
198 inner_map_fds = calloc(max_entries, value_size);
/linux-master/tools/verification/rv/src/
H A Dtrace.c98 trace->seq = calloc(1, sizeof(*trace->seq));
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dfexit_stress.c13 fd = calloc(bpf_max_tramp_links * 2, sizeof(*fd));
/linux-master/tools/testing/selftests/bpf/benchs/
H A Dbench_count.c38 ctx->hits = calloc(env.producer_cnt, sizeof(*ctx->hits));
/linux-master/tools/lib/api/fs/
H A Dcgroup.c95 cached = calloc(1, sizeof(*cached));
/linux-master/tools/perf/arch/powerpc/tests/
H A Ddwarf-unwind.c51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX);
/linux-master/tools/perf/arch/arm64/tests/
H A Ddwarf-unwind.c51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX);
/linux-master/tools/perf/arch/arm/tests/
H A Ddwarf-unwind.c51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX);
/linux-master/tools/perf/bench/
H A Dbreakpoint.c91 threads = calloc(thread_params.nthreads, sizeof(threads[0]));
93 exit((perror("calloc"), EXIT_FAILURE));
124 breakpoints = calloc(thread_params.nbreakpoints, sizeof(breakpoints[0]));
125 parallel = calloc(thread_params.nparallel, sizeof(parallel[0]));
127 exit((perror("calloc"), EXIT_FAILURE));
220 threads = calloc(nthreads, sizeof(threads[0]));
222 exit((perror("calloc"), EXIT_FAILURE));
/linux-master/arch/s390/tools/
H A Dgen_facilities.c126 array = calloc(1, 8);
/linux-master/tools/testing/selftests/alsa/
H A Dtest-pcmtest-driver.c175 samples = calloc(self->params.sec_buf_len * self->params.time, 1);
214 samples = calloc(self->params.sec_buf_len * self->params.time, 1);
244 chan_samples = calloc(CH_NUM, sizeof(*chan_samples));
256 chan_samples[i] = calloc(params.sec_buf_len * params.time, 1);
279 chan_samples = calloc(CH_NUM, sizeof(*chan_samples));
291 chan_samples[i] = calloc(params.sec_buf_len * params.time, 1);
/linux-master/tools/virtio/ringtest/
H A Dring.c87 event = calloc(1, sizeof(*event));
104 data = calloc(ring_size, sizeof(*data));

Completed in 213 milliseconds

123456789