]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf tools: Use calloc() where applicable
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 8 Apr 2026 17:32:02 +0000 (14:32 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 9 Apr 2026 02:21:05 +0000 (19:21 -0700)
commitfbfb858552fb9a4c869e22f3303c7c7365367509
treecaf49df7796f3a93992cac54a29c0a6d4a96f051
parent7507abd16a05e8b191ed7bed69e075b23111c401
perf tools: Use calloc() where applicable

Instead of using zalloc(nr_entries * sizeof_entry) that is what calloc()
does.

In some places where linux/zalloc.h isn't needed, remove it, add when
needed and was getting it indirectly.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
42 files changed:
tools/perf/arch/arm/util/auxtrace.c
tools/perf/arch/powerpc/util/auxtrace.c
tools/perf/arch/x86/tests/amd-ibs-period.c
tools/perf/arch/x86/tests/dwarf-unwind.c
tools/perf/arch/x86/util/pmu.c
tools/perf/bench/numa.c
tools/perf/bench/sched-messaging.c
tools/perf/builtin-annotate.c
tools/perf/builtin-c2c.c
tools/perf/builtin-diff.c
tools/perf/builtin-ftrace.c
tools/perf/builtin-kwork.c
tools/perf/builtin-record.c
tools/perf/builtin-sched.c
tools/perf/builtin-script.c
tools/perf/builtin-stat.c
tools/perf/builtin-trace.c
tools/perf/jvmti/libjvmti.c
tools/perf/tests/code-reading.c
tools/perf/tests/thread-map.c
tools/perf/util/annotate-arch/annotate-x86.c
tools/perf/util/bpf-event.c
tools/perf/util/bpf_counter_cgroup.c
tools/perf/util/data-convert-bt.c
tools/perf/util/data.c
tools/perf/util/db-export.c
tools/perf/util/disasm.c
tools/perf/util/event.c
tools/perf/util/evlist.c
tools/perf/util/header.c
tools/perf/util/hist.c
tools/perf/util/mem2node.c
tools/perf/util/pmus.c
tools/perf/util/powerpc-vpadtl.c
tools/perf/util/probe-event.c
tools/perf/util/probe-file.c
tools/perf/util/probe-finder.c
tools/perf/util/session.c
tools/perf/util/srcline.c
tools/perf/util/stat-shadow.c
tools/perf/util/unwind-libunwind-local.c
tools/perf/util/values.c