From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C250D367F44; Thu, 9 Apr 2026 02:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775701233; cv=none; b=furRpGTDHkFgQ1BTh0icwGL/ceWzIQc6HXGOdiTBo0FdP2wsRL97Li9Y0KaYa7VgFSmPiHg1fRhadglHyM0rJoeKWCqJ2L4zYSLPaFMlP3BOMd2mhZH0YG7pDiDTsjqR/nEZYnNdfeomQLu/GkTSpym9ZdzPQFdlSgVWQ6sFTek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775701233; c=relaxed/simple; bh=4pKKnhVumrsp6F7scGfGPasljc37NFK1Tm3aVn3PrsU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DgPKawu1xgcQFVfEsQk6bl3aqffgRiKRo7jLB7L1RJWg96h7FsFEHJtKpSUPS6GzZrk3m9uTwanCZnXk9KH4UTFN2T5vacRyOG/DLJvTGQNdJN437gv9AkO8yL6ohuJeKRacVor4Dxcv3758uPZMYLlPKmWlegIJjSJOa3PrI0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d2xa7fik; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d2xa7fik" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 237B9C2BCB0; Thu, 9 Apr 2026 02:20:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775701233; bh=4pKKnhVumrsp6F7scGfGPasljc37NFK1Tm3aVn3PrsU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d2xa7fikjmJdG+SEwPc0nmTbBaJ3wfYJg7mNHdLmqma8eyT/IX5NvILfgCklMbllo QBfP+9vur948/dUFCynM/jUmEIPYArKr5OtSy5VnzkLqJv+4aMtIYUvr++jvLi+Nm2 7FPJYYWpHpoEZvy0xgr0LvPYBKgABFVTKaaFU2KwVGlPCuTcaGg0s6lFYHTaGBFYjQ 43KNYxenPeATq28AhlnXbCUb4PCudcAdjQsX1M+j4Gdc+aupwfBmarrlse0eGIaJnt HU3zOEDxURuz5PbzTUpoLmqdCQTP8zbfCA91hWDvZgUha4UdM0bWen5DSc+U9fYmsv 8ul131al6+nWg== Date: Wed, 8 Apr 2026 19:20:31 -0700 From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ingo Molnar , Thomas Gleixner , James Clark , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCHES perf-tools-next v6 0/8] Cleanups and fixes Message-ID: References: <20260408173203.96700-1-acme@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20260408173203.96700-1-acme@kernel.org> On Wed, Apr 08, 2026 at 02:31:55PM -0300, Arnaldo Carvalho de Melo wrote: > Hi, > > Here are some cleanups, a refresh for a patch Ian sent and fell > thru the cracks, using calloc where applicable, constify some arrays and > add a missing header that was making the build fail on some musl > systems. > > This also adds checks for perf.data headers that were suggested > by sashiko. It seems sashiko keeps creating new issues or finding bugs. As we discussed, I'd like to apply this series to fix known things first and we can address other issues separately. Thanks, Namhyung > > Thanks a lot, > > - Arnaldo > > v6: thinko, fix subject of cover letter, its 0/8... > > v5: Address more comments and add perf.data header checks. > > v4: Address some more Sashiko comments, see patch comments for details. > > v3: Address https://sashiko.dev review, removed a malloc->calloc > conversion, flawed, and removed the changes to trace-event-scripting.c, > that made the build fail in some situation, see the committer notes > in the patch for more details. > > v2: remove the commenting of gen_vmlinux in tools/perf/tests/make as > noticed by Ian Rogers. > > > > Arnaldo Carvalho de Melo (7): > perf symbols: Make variable receiving result strrchr() const > perf util: Kill die() prototype, dead for a long time > perf bench: Constify tables > perf header: Use a max number of command line args > perf header: Do validation of perf.data HEADER_CPU_DOMAIN_INFO > perf tools: Use calloc() where applicable > perf tools: Replace basename() calls with perf_basename() > > Ian Rogers (1): > perf tools: Make more global variables static > > tools/perf/arch/arm/util/auxtrace.c | 6 +- > tools/perf/arch/common.c | 22 ++-- > tools/perf/arch/powerpc/util/auxtrace.c | 1 + > tools/perf/arch/sh/include/dwarf-regs-table.h | 2 +- > tools/perf/arch/x86/tests/amd-ibs-period.c | 3 +- > tools/perf/arch/x86/tests/dwarf-unwind.c | 11 +- > tools/perf/arch/x86/util/pmu.c | 1 - > tools/perf/bench/breakpoint.c | 4 +- > tools/perf/bench/mem-functions.c | 2 +- > tools/perf/bench/numa.c | 15 +-- > tools/perf/bench/sched-messaging.c | 2 +- > tools/perf/bench/uprobe.c | 2 +- > tools/perf/builtin-annotate.c | 1 - > tools/perf/builtin-bench.c | 42 +++---- > tools/perf/builtin-c2c.c | 13 ++- > tools/perf/builtin-config.c | 2 +- > tools/perf/builtin-daemon.c | 4 +- > tools/perf/builtin-data.c | 8 +- > tools/perf/builtin-diff.c | 6 +- > tools/perf/builtin-ftrace.c | 1 + > tools/perf/builtin-kmem.c | 2 +- > tools/perf/builtin-kwork.c | 14 +-- > tools/perf/builtin-record.c | 10 +- > tools/perf/builtin-sched.c | 6 +- > tools/perf/builtin-script.c | 10 +- > tools/perf/builtin-stat.c | 2 +- > tools/perf/builtin-top.c | 5 +- > tools/perf/builtin-trace.c | 4 +- > tools/perf/jvmti/libjvmti.c | 5 +- > tools/perf/tests/bp_signal.c | 2 +- > tools/perf/tests/code-reading.c | 1 + > tools/perf/tests/dso-data.c | 2 +- > tools/perf/tests/thread-map.c | 1 - > tools/perf/tests/wp.c | 6 +- > tools/perf/util/annotate-arch/annotate-x86.c | 1 + > tools/perf/util/annotate.c | 3 +- > tools/perf/util/block-range.c | 2 +- > tools/perf/util/bpf-event.c | 2 +- > tools/perf/util/bpf_counter.c | 4 +- > tools/perf/util/bpf_counter_cgroup.c | 1 - > tools/perf/util/bpf_off_cpu.c | 2 +- > tools/perf/util/data-convert-bt.c | 2 +- > tools/perf/util/data-convert-json.c | 4 +- > tools/perf/util/data.c | 2 +- > tools/perf/util/db-export.c | 1 - > tools/perf/util/debug.c | 2 +- > tools/perf/util/debuginfo.c | 19 ++-- > tools/perf/util/disasm.c | 1 + > tools/perf/util/dsos.c | 32 ++---- > tools/perf/util/event.c | 1 - > tools/perf/util/evlist.c | 3 +- > tools/perf/util/header.c | 35 ++++-- > tools/perf/util/hist.c | 2 +- > tools/perf/util/mem2node.c | 2 +- > tools/perf/util/pmus.c | 2 +- > tools/perf/util/powerpc-vpadtl.c | 1 + > tools/perf/util/probe-event.c | 20 ++-- > tools/perf/util/probe-file.c | 2 +- > tools/perf/util/probe-finder.c | 8 +- > tools/perf/util/session.c | 2 +- > tools/perf/util/sort.c | 104 +++++++++--------- > tools/perf/util/srcline.c | 12 +- > tools/perf/util/stat-shadow.c | 1 - > tools/perf/util/symbol.c | 2 +- > tools/perf/util/symbol.h | 16 +-- > tools/perf/util/unwind-libunwind-local.c | 1 - > tools/perf/util/util.c | 10 +- > tools/perf/util/util.h | 3 +- > tools/perf/util/values.c | 8 +- > 69 files changed, 251 insertions(+), 280 deletions(-) > > -- > 2.53.0 >