zalloc 62 arch/xtensa/boot/lib/zmem.c s.workspace = zalloc(zlib_inflate_workspacesize()); zalloc 7 tools/include/linux/zalloc.h void *zalloc(size_t size); zalloc 38 tools/perf/arch/arm/annotate/instructions.c arm = zalloc(sizeof(*arm)); zalloc 25 tools/perf/arch/arm/util/auxtrace.c arm_spe_pmus = zalloc(sizeof(struct perf_pmu *) * nr_cpus); zalloc 891 tools/perf/arch/arm/util/cs-etm.c ptr = zalloc(sizeof(struct cs_etm_recording)); zalloc 96 tools/perf/arch/arm64/annotate/instructions.c arm = zalloc(sizeof(*arm)); zalloc 188 tools/perf/arch/arm64/util/arm-spe.c sper = zalloc(sizeof(struct arm_spe_recording)); zalloc 212 tools/perf/arch/arm64/util/arm-spe.c attr = zalloc(sizeof(struct perf_event_attr)); zalloc 135 tools/perf/arch/powerpc/util/perf_regs.c *new_op = zalloc(new_len); zalloc 152 tools/perf/arch/powerpc/util/perf_regs.c *new_op = zalloc(new_len); zalloc 109 tools/perf/arch/s390/util/auxtrace.c aux = zalloc(sizeof(*aux)); zalloc 23 tools/perf/arch/x86/util/event.c union perf_event *event = zalloc(sizeof(event->mmap) + zalloc 441 tools/perf/arch/x86/util/intel-bts.c btsr = zalloc(sizeof(struct intel_bts_recording)); zalloc 263 tools/perf/arch/x86/util/intel-pt.c attr = zalloc(sizeof(struct perf_event_attr)); zalloc 883 tools/perf/arch/x86/util/intel-pt.c ref_buf = zalloc(ref_buf_size); zalloc 1125 tools/perf/arch/x86/util/intel-pt.c ptr = zalloc(sizeof(struct intel_pt_recording)); zalloc 262 tools/perf/arch/x86/util/perf_regs.c *new_op = zalloc(new_len); zalloc 123 tools/perf/bench/mem-functions.c void *src = NULL, *dst = zalloc(size); zalloc 131 tools/perf/bench/mem-functions.c src = zalloc(size); zalloc 1306 tools/perf/bench/numa.c pthreads = zalloc(g->p.nr_threads * sizeof(pthread_t)); zalloc 1501 tools/perf/bench/numa.c pids = zalloc(g->p.nr_proc * sizeof(*pids)); zalloc 179 tools/perf/builtin-bench.c name = zalloc(size); zalloc 135 tools/perf/builtin-c2c.c c2c_he = zalloc(size + sizeof(*c2c_he)); zalloc 147 tools/perf/builtin-c2c.c c2c_he->node_stats = zalloc(c2c.nodes_cnt * sizeof(*c2c_he->node_stats)); zalloc 197 tools/perf/builtin-c2c.c hists = c2c_he->hists = zalloc(sizeof(*hists)); zalloc 1759 tools/perf/builtin-c2c.c c2c_fmt = zalloc(sizeof(*c2c_fmt)); zalloc 2046 tools/perf/builtin-c2c.c nodes = zalloc(sizeof(unsigned long *) * c2c.nodes_cnt); zalloc 2052 tools/perf/builtin-c2c.c cpu2node = zalloc(sizeof(int) * c2c.cpus_cnt); zalloc 2343 tools/perf/builtin-c2c.c browser = zalloc(sizeof(*browser)); zalloc 2499 tools/perf/builtin-c2c.c buf = zalloc(len + 1); zalloc 360 tools/perf/builtin-diff.c bh = zalloc(size + sizeof(*bh)); zalloc 1728 tools/perf/builtin-diff.c fmt = zalloc(sizeof(*fmt)); zalloc 1794 tools/perf/builtin-diff.c data__files = zalloc(sizeof(*data__files) * data__files_cnt); zalloc 196 tools/perf/builtin-help.c *p = zalloc(sizeof(**p) + len + 1); zalloc 211 tools/perf/builtin-help.c struct man_viewer_info_list *new = zalloc(sizeof(*new) + len + 1); zalloc 466 tools/perf/builtin-kmem.c data = zalloc(sizeof(*data)); zalloc 521 tools/perf/builtin-kmem.c data = zalloc(sizeof(*data)); zalloc 576 tools/perf/builtin-kmem.c data = zalloc(sizeof(*data)); zalloc 214 tools/perf/builtin-kvm.c event = zalloc(sizeof(*event)); zalloc 412 tools/perf/builtin-kvm.c vcpu_record = zalloc(sizeof(*vcpu_record)); zalloc 172 tools/perf/builtin-lock.c st = zalloc(sizeof(struct thread_stat)); zalloc 194 tools/perf/builtin-lock.c st = zalloc(sizeof(struct thread_stat)); zalloc 328 tools/perf/builtin-lock.c new = zalloc(sizeof(struct lock_stat)); zalloc 333 tools/perf/builtin-lock.c new->name = zalloc(sizeof(char) * strlen(name) + 1); zalloc 373 tools/perf/builtin-lock.c seq = zalloc(sizeof(struct lock_seq_stat)); zalloc 152 tools/perf/builtin-probe.c buf = zalloc(len + 1); zalloc 357 tools/perf/builtin-sched.c struct sched_atom *event = zalloc(sizeof(*event)); zalloc 424 tools/perf/builtin-sched.c wakee_event->wait_sem = zalloc(sizeof(*wakee_event->wait_sem)); zalloc 465 tools/perf/builtin-sched.c task = zalloc(sizeof(*task)); zalloc 918 tools/perf/builtin-sched.c r = zalloc(sizeof(struct thread_runtime)); zalloc 1015 tools/perf/builtin-sched.c struct work_atoms *atoms = zalloc(sizeof(*atoms)); zalloc 1039 tools/perf/builtin-sched.c struct work_atom *atom = zalloc(sizeof(*atom)); zalloc 1853 tools/perf/builtin-sched.c r = zalloc(sizeof(struct evsel_runtime)); zalloc 2193 tools/perf/builtin-sched.c itr = zalloc(sizeof(*itr)); zalloc 2213 tools/perf/builtin-sched.c idle_threads = zalloc(ncpu * sizeof(struct thread *)); zalloc 3184 tools/perf/builtin-sched.c sched->map.comp_cpus = zalloc(sched->max_cpu * sizeof(int)); zalloc 271 tools/perf/builtin-script.c struct evsel_script *es = zalloc(sizeof(*es)); zalloc 2060 tools/perf/builtin-script.c es = zalloc(sizeof(*es)); zalloc 2837 tools/perf/builtin-script.c struct script_desc *s = zalloc(sizeof(*s)); zalloc 1823 tools/perf/builtin-stat.c stat_config.walltime_run = zalloc(stat_config.run_count * sizeof(stat_config.walltime_run[0])); zalloc 208 tools/perf/builtin-timechart.c cursor = zalloc(sizeof(*cursor)); zalloc 234 tools/perf/builtin-timechart.c c = zalloc(sizeof(*c)); zalloc 278 tools/perf/builtin-timechart.c c = zalloc(sizeof(*c)); zalloc 285 tools/perf/builtin-timechart.c sample = zalloc(sizeof(*sample)); zalloc 355 tools/perf/builtin-timechart.c struct power_event *pwr = zalloc(sizeof(*pwr)); zalloc 377 tools/perf/builtin-timechart.c pwr = zalloc(sizeof(*pwr)); zalloc 410 tools/perf/builtin-timechart.c struct wake_event *we = zalloc(sizeof(*we)); zalloc 684 tools/perf/builtin-timechart.c pwr = zalloc(sizeof(*pwr)); zalloc 699 tools/perf/builtin-timechart.c pwr = zalloc(sizeof(*pwr)); zalloc 727 tools/perf/builtin-timechart.c c = zalloc(sizeof(*c)); zalloc 748 tools/perf/builtin-timechart.c sample = zalloc(sizeof(*sample)); zalloc 1073 tools/perf/builtin-trace.c struct thread_trace *ttrace = zalloc(sizeof(struct thread_trace)); zalloc 76 tools/perf/lib/evlist.c struct perf_evlist *evlist = zalloc(sizeof(*evlist)); zalloc 27 tools/perf/lib/evsel.c struct perf_evsel *evsel = zalloc(sizeof(*evsel)); zalloc 246 tools/perf/lib/evsel.c evsel->id = zalloc(ncpus * nthreads * sizeof(u64)); zalloc 10 tools/perf/lib/xyarray.c struct xyarray *xy = zalloc(sizeof(*xy) + xlen * row_size); zalloc 2187 tools/perf/ui/browsers/hists.c struct hist_browser *browser = zalloc(sizeof(*browser)); zalloc 479 tools/perf/util/annotate.c ops->locked.ops = zalloc(sizeof(*ops->locked.ops)); zalloc 742 tools/perf/util/annotate.c struct annotated_source *src = zalloc(sizeof(*src)); zalloc 1183 tools/perf/util/annotate.c al = zalloc(size); zalloc 2989 tools/perf/util/annotate.c notes->offsets = zalloc(size * sizeof(struct annotation_line *)); zalloc 203 tools/perf/util/arm-spe.c spe = zalloc(sizeof(struct arm_spe)); zalloc 899 tools/perf/util/auxtrace.c ev = zalloc(sizeof(struct perf_record_auxtrace_info) + priv_size); zalloc 1382 tools/perf/util/auxtrace.c c = zalloc(sizeof(struct auxtrace_cache)); zalloc 1488 tools/perf/util/auxtrace.c struct addr_filter *filt = zalloc(sizeof(*filt)); zalloc 890 tools/perf/util/bpf-loader.c op = zalloc(sizeof(*op)); zalloc 938 tools/perf/util/bpf-loader.c newpriv = zalloc(sizeof(*newpriv)); zalloc 969 tools/perf/util/bpf-loader.c priv = zalloc(sizeof(*priv)); zalloc 649 tools/perf/util/build-id.c *linkname = zalloc(size), *tmp; zalloc 780 tools/perf/util/build-id.c char *filename = zalloc(size), zalloc 781 tools/perf/util/build-id.c *linkname = zalloc(size), *tmp; zalloc 30 tools/perf/util/call-path.c cpr = zalloc(sizeof(struct call_path_root)); zalloc 62 tools/perf/util/call-path.c cpb = zalloc(sizeof(struct call_path_block)); zalloc 530 tools/perf/util/callchain.c new = zalloc(sizeof(*new)); zalloc 579 tools/perf/util/callchain.c call = zalloc(sizeof(*call)); zalloc 112 tools/perf/util/cgroup.c struct cgroup *cgroup = zalloc(sizeof(*cgroup)); zalloc 45 tools/perf/util/comm.c cs = zalloc(sizeof(*cs)); zalloc 110 tools/perf/util/comm.c struct comm *comm = zalloc(sizeof(*comm)); zalloc 537 tools/perf/util/config.c struct perf_config_section *section = zalloc(sizeof(*section)); zalloc 557 tools/perf/util/config.c struct perf_config_item *item = zalloc(sizeof(*item)); zalloc 707 tools/perf/util/config.c struct perf_config_set *set = zalloc(sizeof(*set)); zalloc 10 tools/perf/util/counts.c struct perf_counts *counts = zalloc(sizeof(*counts)); zalloc 532 tools/perf/util/cpumap.c bitmap = zalloc(last_cpu / 8 + 1); zalloc 324 tools/perf/util/cputopo.c tp = zalloc(sizeof(*tp) + sizeof(tp->nodes[0])*nr); zalloc 649 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c decoder = zalloc(sizeof(*decoder)); zalloc 245 tools/perf/util/cs-etm.c tidq->packet = zalloc(sizeof(struct cs_etm_packet)); zalloc 249 tools/perf/util/cs-etm.c tidq->prev_packet = zalloc(sizeof(struct cs_etm_packet)); zalloc 258 tools/perf/util/cs-etm.c tidq->last_branch = zalloc(sz); zalloc 261 tools/perf/util/cs-etm.c tidq->last_branch_rb = zalloc(sz); zalloc 468 tools/perf/util/cs-etm.c t_params = zalloc(sizeof(*t_params) * etm->num_cpu); zalloc 690 tools/perf/util/cs-etm.c etmq = zalloc(sizeof(*etmq)); zalloc 699 tools/perf/util/cs-etm.c t_params = zalloc(sizeof(*t_params) * etm->num_cpu); zalloc 2432 tools/perf/util/cs-etm.c hdr = zalloc(sizeof(*hdr) * CS_HEADER_VERSION_0_MAX); zalloc 2454 tools/perf/util/cs-etm.c metadata = zalloc(sizeof(*metadata) * num_cpu); zalloc 2468 tools/perf/util/cs-etm.c metadata[j] = zalloc(sizeof(*metadata[j]) * zalloc 2481 tools/perf/util/cs-etm.c metadata[j] = zalloc(sizeof(*metadata[j]) * zalloc 2528 tools/perf/util/cs-etm.c etm = zalloc(sizeof(*etm)); zalloc 266 tools/perf/util/data-convert-bt.c buffer = zalloc(i + (len - i) * 4 + 2); zalloc 689 tools/perf/util/data-convert-bt.c cs = zalloc(sizeof(*cs)); zalloc 1339 tools/perf/util/data-convert-bt.c stream = zalloc(sizeof(*stream) * ncpus); zalloc 43 tools/perf/util/data.c files = zalloc(nr * sizeof(*files)); zalloc 875 tools/perf/util/dso.c cache = zalloc(sizeof(*cache) + DSO__DATA_CACHE_SIZE); zalloc 67 tools/perf/util/evlist.c struct evlist *evlist = zalloc(sizeof(*evlist)); zalloc 603 tools/perf/util/evlist.c map = zalloc(evlist->core.nr_mmaps * sizeof(struct mmap)); zalloc 264 tools/perf/util/evsel.c struct evsel *evsel = zalloc(perf_evsel__object.size); zalloc 339 tools/perf/util/evsel.c struct evsel *evsel = zalloc(perf_evsel__object.size); zalloc 1382 tools/perf/util/evsel.c data = zalloc(size); zalloc 2167 tools/perf/util/header.c cmdline = zalloc(ff->size + nr + 1); zalloc 2171 tools/perf/util/header.c argv = zalloc(sizeof(char *) * (nr + 1)); zalloc 2339 tools/perf/util/header.c nodes = zalloc(sizeof(*nodes) * nr); zalloc 2534 tools/perf/util/header.c caches = zalloc(sizeof(*caches) * cnt); zalloc 2612 tools/perf/util/header.c nodes = zalloc(sizeof(*nodes) * nr); zalloc 508 tools/perf/util/hist.c return zalloc(size + sizeof(struct hist_entry)); zalloc 153 tools/perf/util/intel-bts.c btsq = zalloc(sizeof(struct intel_bts_queue)); zalloc 860 tools/perf/util/intel-bts.c bts = zalloc(sizeof(struct intel_bts)); zalloc 227 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder = zalloc(sizeof(struct intel_pt_decoder)); zalloc 856 tools/perf/util/intel-pt.c ptq = zalloc(sizeof(struct intel_pt_queue)); zalloc 865 tools/perf/util/intel-pt.c ptq->chain = zalloc(sz); zalloc 875 tools/perf/util/intel-pt.c ptq->last_branch = zalloc(sz); zalloc 878 tools/perf/util/intel-pt.c ptq->last_branch_rb = zalloc(sz); zalloc 3087 tools/perf/util/intel-pt.c pt = zalloc(sizeof(struct intel_pt)); zalloc 643 tools/perf/util/map.c struct map_groups *mg = zalloc(sizeof(*mg)); zalloc 61 tools/perf/util/mem2node.c entries = zalloc(sizeof(*entries) * max); zalloc 46 tools/perf/util/namespaces.c namespaces = zalloc(sizeof(struct namespaces) + link_info_size); zalloc 226 tools/perf/util/parse-events.c path = zalloc(sizeof(*path)); zalloc 258 tools/perf/util/parse-events.c struct tracepoint_path *path = zalloc(sizeof(*path)); zalloc 1176 tools/perf/util/parse-events.c __t = zalloc(sizeof(*__t)); \ zalloc 2210 tools/perf/util/parse-events.c evt_list = zalloc(sizeof(char *) * evt_num); zalloc 2455 tools/perf/util/parse-events.c evt_list = zalloc(sizeof(char *) * evt_num); zalloc 2550 tools/perf/util/parse-events.c evt_list = zalloc(sizeof(char *) * evt_num); zalloc 837 tools/perf/util/pmu.c pmu = zalloc(sizeof(*pmu)); zalloc 1273 tools/perf/util/pmu.c format = zalloc(sizeof(*format)); zalloc 1406 tools/perf/util/pmu.c aliases = zalloc(sizeof(struct sevent) * len); zalloc 1606 tools/perf/util/probe-event.c *fieldp = zalloc(sizeof(struct perf_probe_arg_field)); zalloc 1684 tools/perf/util/probe-event.c pev->args = zalloc(sizeof(struct perf_probe_arg) * pev->nargs); zalloc 1834 tools/perf/util/probe-event.c tev->args = zalloc(sizeof(struct probe_trace_arg) * tev->nargs); zalloc 2190 tools/perf/util/probe-event.c pev->args = zalloc(sizeof(struct perf_probe_arg) * pev->nargs); zalloc 2269 tools/perf/util/probe-event.c *ppfield = zalloc(sizeof(*field)); zalloc 2296 tools/perf/util/probe-event.c dst->args = zalloc(sizeof(struct perf_probe_arg) * src->nargs); zalloc 2377 tools/perf/util/probe-event.c node = zalloc(sizeof(*node)); zalloc 2934 tools/perf/util/probe-event.c *tevs = zalloc(sizeof(*tev) * num_matched_functions); zalloc 2993 tools/perf/util/probe-event.c tev->args = zalloc(sizeof(struct probe_trace_arg) * zalloc 3050 tools/perf/util/probe-event.c *tevs = zalloc(sizeof(*tev)); zalloc 3105 tools/perf/util/probe-event.c tev->args = zalloc(sizeof(struct probe_trace_arg) * tev->nargs); zalloc 3291 tools/perf/util/probe-event.c *tevs = zalloc(ret * sizeof(*tev)); zalloc 364 tools/perf/util/probe-file.c struct probe_cache_entry *entry = zalloc(sizeof(*entry)); zalloc 395 tools/perf/util/probe-file.c *tevs = zalloc(ret * sizeof(*tev)); zalloc 527 tools/perf/util/probe-file.c struct probe_cache *pcache = zalloc(sizeof(*pcache)); zalloc 88 tools/perf/util/probe-finder.c struct debuginfo *dbg = zalloc(sizeof(*dbg)); zalloc 150 tools/perf/util/probe-finder.c ref = zalloc(sizeof(struct probe_trace_arg_ref)); zalloc 221 tools/perf/util/probe-finder.c tvar->value = zalloc(ret + 2); zalloc 343 tools/perf/util/probe-finder.c *ref_ptr = zalloc(sizeof(struct probe_trace_arg_ref)); zalloc 431 tools/perf/util/probe-finder.c ref = zalloc(sizeof(struct probe_trace_arg_ref)); zalloc 462 tools/perf/util/probe-finder.c ref = zalloc(sizeof(struct probe_trace_arg_ref)); zalloc 1309 tools/perf/util/probe-finder.c args = zalloc(sizeof(struct perf_probe_arg) * MAX_PROBE_ARGS); zalloc 1320 tools/perf/util/probe-finder.c tev->args = zalloc(sizeof(struct probe_trace_arg) * tev->nargs); zalloc 1356 tools/perf/util/probe-finder.c *tevs = zalloc(sizeof(struct probe_trace_event) * tf.max_tevs); zalloc 1521 tools/perf/util/probe-finder.c *vls = zalloc(sizeof(struct variable_list) * af.max_vls); zalloc 23 tools/perf/util/pstack.c struct pstack *pstack = zalloc((sizeof(*pstack) + zalloc 771 tools/perf/util/s390-cpumsf.c sfq = zalloc(sizeof(struct s390_cpumsf_queue)); zalloc 1118 tools/perf/util/s390-cpumsf.c sf = zalloc(sizeof(struct s390_cpumsf)); zalloc 191 tools/perf/util/session.c struct perf_session *session = zalloc(sizeof(*session)); zalloc 2242 tools/perf/util/session.c ref = zalloc(sizeof(struct ref_reloc_sym)); zalloc 44 tools/perf/util/srcline.c ilist = zalloc(sizeof(*ilist)); zalloc 244 tools/perf/util/srcline.c a2l = zalloc(sizeof(*a2l)); zalloc 369 tools/perf/util/srcline.c node = zalloc(sizeof(*node)); zalloc 470 tools/perf/util/srcline.c node = zalloc(sizeof(*node)); zalloc 621 tools/perf/util/srcline.c node = zalloc(sizeof(struct srcline_node)); zalloc 131 tools/perf/util/stat.c evsel->stats = zalloc(sizeof(struct perf_stat_evsel)); zalloc 254 tools/perf/util/stat.c mask = zalloc(cpu__max_cpu()); zalloc 70 tools/perf/util/strfilter.c struct strfilter_node *node = zalloc(sizeof(*node)); zalloc 162 tools/perf/util/strfilter.c struct strfilter *filter = zalloc(sizeof(*filter)); zalloc 1463 tools/perf/util/symbol-elf.c struct phdr_data *p = zalloc(sizeof(*p)); zalloc 1499 tools/perf/util/symbol-elf.c struct sym_data *s = zalloc(sizeof(*s)); zalloc 985 tools/perf/util/symbol.c mi = zalloc(sizeof(struct module_info)); zalloc 2368 tools/perf/util/symbol.c struct mem_info *mi = zalloc(sizeof(*mi)); zalloc 2390 tools/perf/util/symbol.c struct block_info *bi = zalloc(sizeof(*bi)); zalloc 422 tools/perf/util/synthetic-events.c union perf_event *event = zalloc((sizeof(event->mmap) + zalloc 835 tools/perf/util/synthetic-events.c event = zalloc((sizeof(event->mmap) + machine->id_hdr_size)); zalloc 893 tools/perf/util/synthetic-events.c event = zalloc(size); zalloc 994 tools/perf/util/synthetic-events.c return zalloc(*size); zalloc 1061 tools/perf/util/synthetic-events.c event = zalloc(size); zalloc 1420 tools/perf/util/synthetic-events.c ev = zalloc(sz); zalloc 1501 tools/perf/util/synthetic-events.c ev = zalloc(size); zalloc 1687 tools/perf/util/synthetic-events.c ev = zalloc(size); zalloc 506 tools/perf/util/thread-stack.c crp = zalloc(sizeof(struct call_return_processor)); zalloc 43 tools/perf/util/thread.c struct thread *thread = zalloc(sizeof(*thread)); zalloc 213 tools/perf/util/unwind-libdw.c ui = zalloc(sizeof(ui_buf) + sizeof(ui_buf.entries[0]) * max_stack); zalloc 17 tools/perf/util/values.c values->value = zalloc(values->threads_max * sizeof(*values->value)); zalloc 105 tools/perf/util/values.c values->value[i] = zalloc(values->counters_max * sizeof(**values->value)); zalloc 10 tools/perf/util/xyarray.c struct xyarray *xy = zalloc(sizeof(*xy) + xlen * row_size); zalloc 25 tools/perf/util/zlib.c .zalloc = Z_NULL, zalloc 24 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti = zalloc(sizeof(struct rw_thread_info)); zalloc 52 tools/virtio/virtio-trace/trace-agent.c s = zalloc(sizeof(struct agent_info)); zalloc 114 tools/virtio/virtio-trace/trace-agent.c buf = zalloc(PATH_MAX);