Searched refs:calloc (Results 151 - 175 of 210) sorted by relevance

123456789

/linux-master/arch/s390/tools/
H A Drelocs.c187 secs = calloc(shnum, sizeof(struct section));
/linux-master/tools/testing/selftests/bpf/
H A Dtesting_helpers.c453 *buf = calloc(*cnt, buf_element_size);
H A Dtest_sockmap.c480 iov = calloc(iov_count, sizeof(struct iovec));
485 unsigned char *d = calloc(iov_length, sizeof(char));
1378 char *options = calloc(OPTSTRING, sizeof(char));
H A Dnetwork_helpers.c456 token = calloc(1, sizeof(struct nstoken));
/linux-master/tools/bpf/bpftool/
H A Dgen.c866 s->maps = (struct bpf_map_skeleton *)calloc(s->map_cnt, s->map_skel_sz);\n\
910 s->progs = (struct bpf_prog_skeleton *)calloc(s->prog_cnt, s->prog_skel_sz);\n\
1355 obj = (struct %1$s *)calloc(1, sizeof(*obj)); \n\
1438 s = (struct bpf_object_skeleton *)calloc(1, sizeof(*s));\n\
1728 obj = (struct %1$s *)calloc(1, sizeof(*obj)); \n\
1733 s = (struct bpf_object_subskeleton *)calloc(1, sizeof(*s));\n\
1745 s->vars = (struct bpf_var_skeleton *)calloc(%2$d, sizeof(*s->vars));\n\
1946 info = calloc(1, sizeof(*info));
2279 cands = calloc(1, sizeof(*cands));
2405 ids = calloc(
[all...]
H A Dprog.c241 map_ids = calloc(prog_info.nr_map_ids, sizeof(__u32));
1258 *data_ptr = calloc(size_out, 1);
2303 profile_perf_events = calloc(
/linux-master/tools/perf/ui/
H A Dhist.c159 u64 *fa = calloc(nr_members, sizeof(*fa)),
160 *fb = calloc(nr_members, sizeof(*fb));
/linux-master/tools/perf/util/
H A Djitdump.c454 event = calloc(1, sizeof(*event) + idr_size);
568 event = calloc(1, sizeof(*event) + 16);
H A Dstat.c105 ps->aggr = calloc(nr_aggr, sizeof(*ps->aggr));
H A Dblock-info.c442 block_reports = calloc(nr_hists, sizeof(struct block_report));
H A Dbpf_lock_contention.c279 cpu_data = calloc(total_cpus, sizeof(*cpu_data));
H A Dcpumap.c537 cpunode_map = calloc(max_cpu_num.cpu, sizeof(int));
539 pr_err("%s: calloc failed\n", __func__);
H A Dmap.c226 map = calloc(1, sizeof(*map) + (dso->kernel ? sizeof(struct kmap) : 0));
/linux-master/tools/power/x86/turbostat/
H A Dturbostat.c4959 per_cpu_msr_sum = calloc(topo.max_cpu_num + 1, sizeof(struct msr_sum_array));
6465 fd_instr_count_percpu = calloc(topo.max_cpu_num + 1, sizeof(int));
6467 err(-1, "calloc fd_instr_count_percpu");
6473 fd_amperf_percpu = calloc(topo.max_cpu_num + 1, sizeof(*fd_amperf_percpu));
6475 err(-1, "calloc fd_amperf_percpu");
6482 bool *domain_visited = calloc(num_domains, sizeof(bool));
6484 rapl_counter_info_perdomain = calloc(num_domains, sizeof(*rapl_counter_info_perdomain));
6486 err(-1, "calloc rapl_counter_info_percpu");
6983 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology));
6985 err(1, "calloc cpu
[all...]
/linux-master/tools/lib/bpf/
H A Dlibbpf.c1118 st_ops->kern_vdata = calloc(1, kern_vtype->size);
1381 map->st_ops = calloc(1, sizeof(*map->st_ops));
1386 st_ops->progs = calloc(btf_vlen(type), sizeof(*st_ops->progs));
1443 obj = calloc(1, sizeof(struct bpf_object) + strlen(path) + 1);
2883 map->inner_map = calloc(1, sizeof(*map->inner_map));
3228 seg->sec_idxs = calloc(seg->sec_cnt, sizeof(*seg->sec_idxs));
3776 obj->efile.secs = calloc(obj->efile.sec_cnt, sizeof(*obj->efile.secs));
4924 obj->feat_cache = calloc(1, sizeof(*obj->feat_cache));
5657 cands = calloc(1, sizeof(*cands));
6859 orig_ids = calloc(pro
[all...]
H A Dlinker.c230 linker = calloc(1, sizeof(*linker));
1248 obj->sym_map = calloc(n + 1, sizeof(*obj->sym_map));
2265 obj->btf_type_map = calloc(n + 1, sizeof(int));
2843 cur = data = calloc(1, total_sz);
H A Dbtf.c979 btf = calloc(1, sizeof(*btf));
998 btf->raw_data = calloc(1, btf->raw_size);
1031 btf = calloc(1, sizeof(struct btf));
1441 data = calloc(1, data_sz);
3008 btf_ext = calloc(1, sizeof(struct btf_ext));
3392 struct btf_dedup *d = calloc(1, sizeof(struct btf_dedup));
/linux-master/fs/unicode/
H A Dmkutf8data.c1623 trees = calloc(trees_count, sizeof(struct tree));
1726 utf8data = calloc(size, 1);
1984 ages = calloc(ages_count + 1, sizeof(*ages));
2334 corrections = calloc(count, sizeof(struct unicode_data));
/linux-master/arch/mips/boot/tools/
H A Drelocs.c265 secs = calloc(ehdr.e_shnum, sizeof(struct section));
/linux-master/tools/perf/
H A Dbuiltin-probe.c311 params = calloc(1, sizeof(*params));
H A Dbuiltin-lock.c1044 callstack = calloc(max_stack, sizeof(*callstack));
2101 lockhash_table = calloc(LOCKHASH_SIZE, sizeof(*lockhash_table));
2273 rec_argv = calloc(rec_argc + 1, sizeof(char *));
2663 lockhash_table = calloc(LOCKHASH_SIZE, sizeof(*lockhash_table));
/linux-master/tools/lib/perf/
H A Devsel.c333 data = calloc(1, size);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dctx_rewrite.c706 text = calloc(MAX_PROG_TEXT_SZ, 1);
H A Dreg_bounds.c1624 ctx->uranges = calloc(ctx->range_cnt, sizeof(*ctx->uranges));
1627 ctx->sranges = calloc(ctx->range_cnt, sizeof(*ctx->sranges));
1657 ctx->usubranges = calloc(ctx->subrange_cnt, sizeof(*ctx->usubranges));
1660 ctx->ssubranges = calloc(ctx->subrange_cnt, sizeof(*ctx->ssubranges));
/linux-master/tools/objtool/arch/x86/
H A Ddecode.c106 if (!(op = calloc(1, sizeof(*op)))) \

Completed in 336 milliseconds

123456789