/linux/tools/testing/selftests/lsm/ |
H A D | lsm_list_modules_test.c | 21 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() 45 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() 60 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() 76 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() 77 char *sysfs_lsms = calloc(page_size, 1); in TEST()
|
H A D | lsm_get_self_attr_test.c | 30 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST() 59 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST() 78 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST() 79 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() 119 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST() 144 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST() 146 __u64 *syscall_lsms = calloc(page_size, 1); in TEST() 147 char *attr = calloc(page_size, 1); in TEST()
|
H A D | lsm_set_self_attr_test.c | 27 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST() 43 struct lsm_ctx *ctx = calloc(page_size, 1); in TEST() 59 char *ctx = calloc(page_size, 1); in TEST()
|
H A D | common.c | 27 path = calloc(len, 1); in read_proc_attr() 72 char *names = calloc(sysconf(_SC_PAGESIZE), 1); in attr_lsm_count()
|
/linux/tools/power/cpupower/utils/idle_monitor/ |
H A D | mperf_monitor.c | 345 is_valid = calloc(cpu_count, sizeof(int)); in mperf_register() 346 mperf_previous_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 347 aperf_previous_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 348 mperf_current_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 349 aperf_current_count = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 350 tsc_at_measure_start = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register() 351 tsc_at_measure_end = calloc(cpu_count, sizeof(unsigned long long)); in mperf_register()
|
H A D | snb_idle.c | 166 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()
|
H A D | hsw_ext_idle.c | 161 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()
|
H A D | nhm_idle.c | 180 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/tools/testing/selftests/bpf/map_tests/ |
H A D | map_in_map_batch_ops.c | 131 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()
|
H A D | array_map_batch_ops.c | 92 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/tools/testing/selftests/alsa/ |
H A D | test-pcmtest-driver.c | 175 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F() 214 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F() 244 chan_samples = calloc(CH_NUM, sizeof(*chan_samples)); in TEST_F() 256 chan_samples[i] = calloc(params.sec_buf_len * params.time, 1); in TEST_F() 279 chan_samples = calloc(CH_NUM, sizeof(*chan_samples)); in TEST_F() 291 chan_samples[i] = calloc(params.sec_buf_len * params.time, 1); in TEST_F()
|
/linux/tools/perf/bench/ |
H A D | breakpoint.c | 91 threads = calloc(thread_params.nthreads, sizeof(threads[0])); in breakpoint_thread() 124 breakpoints = calloc(thread_params.nbreakpoints, sizeof(breakpoints[0])); in bench_breakpoint_thread() 125 parallel = calloc(thread_params.nparallel, sizeof(parallel[0])); in bench_breakpoint_thread() 220 threads = calloc(nthreads, sizeof(threads[0])); in bench_breakpoint_enable()
|
H A D | epoll-wait.c | 166 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()
|
H A D | epoll-ctl.c | 109 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()
|
/linux/tools/tracing/rtla/src/ |
H A D | timerlat_aa.c | 851 taa_data->prev_irqs_seq = calloc(1, sizeof(*taa_data->prev_irqs_seq)); in timerlat_aa_init_seqs() 857 taa_data->nmi_seq = calloc(1, sizeof(*taa_data->nmi_seq)); in timerlat_aa_init_seqs() 863 taa_data->irqs_seq = calloc(1, sizeof(*taa_data->irqs_seq)); in timerlat_aa_init_seqs() 869 taa_data->softirqs_seq = calloc(1, sizeof(*taa_data->softirqs_seq)); in timerlat_aa_init_seqs() 875 taa_data->threads_seq = calloc(1, sizeof(*taa_data->threads_seq)); in timerlat_aa_init_seqs() 881 taa_data->stack_seq = calloc(1, sizeof(*taa_data->stack_seq)); in timerlat_aa_init_seqs() 1031 taa_ctx = calloc(1, sizeof(*taa_ctx)); in timerlat_aa_init() 1041 taa_ctx->taa_data = calloc(nr_cpus, sizeof(*taa_ctx->taa_data)); in timerlat_aa_init()
|
/linux/tools/power/acpi/os_specific/service_layers/ |
H A D | osunixdir.c | 54 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/tools/mm/ |
H A D | page_owner_sort.c | 269 char **ret = calloc(++count, sizeof(char *)); in explode() 273 ret[j] = calloc(i - lastindex, sizeof(char)); in explode() 279 ret[j] = calloc(len - lastindex, sizeof(char)); in explode() 540 sc.signs = calloc(1, sizeof(int)); in set_single_cmp() 543 sc.cmps = calloc(1, sizeof(int *)); in set_single_cmp() 560 sc.signs = calloc(size, sizeof(int)); in parse_sort_args() 561 sc.cmps = calloc(size, sizeof(int *)); in parse_sort_args() 603 int *list = calloc(size, sizeof(int)); in parse_nums_list()
|
/linux/tools/lib/bpf/ |
H A D | btf_relocate.c | 23 #define calloc(nmemb, sz) kvcalloc(nmemb, sz, GFP_KERNEL | __GFP_NOWARN) macro 195 info = calloc(r->nr_dist_base_types, sizeof(*info)); in btf_relocate_map_distilled_base() 225 base_name_cnt = calloc(r->base_str_len, sizeof(*base_name_cnt)); in btf_relocate_map_distilled_base() 463 r.id_map = calloc(nr_types, sizeof(*r.id_map)); in btf_relocate() 464 r.str_map = calloc(btf_header(r.dist_base_btf)->str_len, sizeof(*r.str_map)); in btf_relocate()
|
/linux/tools/testing/selftests/kvm/lib/ |
H A D | userfaultfd_util.c | 122 uffd_desc->pipefds = calloc(sizeof(int), num_readers); in uffd_setup_demand_paging() 125 uffd_desc->readers = calloc(sizeof(pthread_t), num_readers); in uffd_setup_demand_paging() 128 uffd_desc->reader_args = calloc(sizeof(struct uffd_reader_args), num_readers); in uffd_setup_demand_paging()
|
/linux/tools/perf/arch/x86/util/ |
H A D | iostat.c | 87 struct iio_root_port *p = calloc(1, sizeof(*p)); in iio_root_port_new() 208 tmp_list = calloc(1, sizeof(*tmp_list)); in iio_root_ports_scan() 256 struct iio_root_ports_list *tmp_list = calloc(1, sizeof(*tmp_list)); in iio_root_ports_list_filter() 311 char *iostat_cmd = calloc(len_template, 1); in iostat_event_group()
|
/linux/tools/testing/selftests/sync/ |
H A D | sync.c | 90 info = calloc(1, sizeof(*info)); in sync_file_info() 106 fence_info = calloc(num_fences, sizeof(*fence_info)); in sync_file_info()
|
/linux/tools/virtio/ringtest/ |
H A D | ring.c | 87 event = calloc(1, sizeof(*event)); in alloc_ring() 104 data = calloc(ring_size, sizeof(*data)); in alloc_ring()
|
/linux/tools/bpf/bpftool/ |
H A D | cfg.c | 75 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/lib/ |
H A D | zalloc.c | 8 return calloc(1, size); in zalloc()
|
/linux/tools/objtool/ |
H A D | elf.c | 332 elf->section_data = calloc(sections_nr, sizeof(*sec)); in read_sections() 468 elf->symbol_data = calloc(symbols_nr, sizeof(*sym)); in read_symbols() 655 buf = calloc(num, entsize); in elf_update_symbol() 670 buf = calloc(num, sizeof(Elf32_Word)); in elf_update_symbol() 799 struct symbol *sym = calloc(1, sizeof(*sym)); in elf_create_section_symbol() 827 struct symbol *sym = calloc(1, sizeof(*sym)); in elf_create_prefix_symbol() 964 rsec->relocs = calloc(sec_num_entries(rsec), sizeof(*reloc)); in read_relocs() 1200 rsec->relocs = calloc(sec_num_entries(rsec), sizeof(struct reloc)); in elf_create_rela_section()
|