From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.69 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796067265; b=49BUKY+pXiy5B2yE754ZwXJYujku3UH3JOg8ypb/PJ/JUH4Jol4GQfk+sC9hkDixwIS7 Leq0MNNJCZnyAMXfd56BmJmwt9zu1GPAaHWyYe7WnUG62sttMLvJsCstsImdp6jJp1jHG qhaDjYV8Bbmr+3fxmDhKs1HWcn/33T+TrTkh2Xd9yLdp6iO4bc6qyBbNxXS2qXJcrWeIy w1P+jHJztbLxju+uSwK1isGX6pYB14patCA5c1USZf7WEDqmpGagFCFX44YFh9ESdMtut MuXT4imqxcs5RbYibBN0oMEt2UQ00YUMcbjyFU7AAvnSu9IYBrKEuqUsA47UySQfKnQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796067265; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=7v4txuQiPLwaV4Av4IWAgAhZSBa8xuRFCppVrJ67OMY=; b=qfm58fEWz1qd9PLG0+C2wzhcVQjTaDPwjLGSpDwCOauSmD0K+eJOjToOMCAuZ8PHcKgw Ybva2dL5AtwIyQ4X4mJsRCxHcwjTwswxGW2CwbeIztfynmfL5K5ja0Hp+wF57dsp+9NgJ XeECcbDYqAgjHMvTQ76OvuF/bKqGHS6WMMM9b4QCugqWaRZ3ZAX6gUiSQVEgF8jdVHt5w p6ulALpBq52krDLipFsC8TDW2eXwtGvjed9h0pbXCXZ90CdxEJ9vgIb52KsRdgczpeahx TcKOCHEn/2JDH+BqqLCEvcLjd65zc0htaY5vSZmC1hQz1ZtjI2ba/mC4er1KTENkq2w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=aNpYJM15; arc=none smtp.remote-ip=209.85.160.69 Received: from mail-oa1-f69.google.com (mail-oa1-f69.google.com [209.85.160.69]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC7AA606A320 for ; Mon, 30 Nov 2026 19:34:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BC7AA606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=aNpYJM15 Received: by mail-oa1-f69.google.com with SMTP id 586e51a60fabf-45eb9967696so9731505fac.1 for ; Mon, 30 Nov 2026 11:34:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796067264; x=1796672064; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=7v4txuQiPLwaV4Av4IWAgAhZSBa8xuRFCppVrJ67OMY=; b=aNpYJM15CaYSENpHjJbN5UXyqjucUORervXSEkOQ9IlJqvcSmT5iy2x2cnS+No3qls 8SMiOOYEpCfptEG0zSEwpnpJH7ZyR5EhLdkNeLPgTSF3MjkaVCXzavco4ji0qBancjaP FsdfSMuEy5N//ilqRp+pgH4QaMnNTBS1uAH3mRZShMkNl3Cfkk17LhXmVtyDzVAYp2dL UMEXzxAYXMC/JJicjDk99RG9Rsff5G0wCdTHPuuhCe4sGQa5eCVhQIGbV07uiRzut2v+ oFv+rAcXrSMSq4ybIloeGjSydRq5tKZ/SQizAkdZ3QPUPAGCFpFi/tAy0QpkvioiaWrj fpVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796067264; x=1796672064; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=7v4txuQiPLwaV4Av4IWAgAhZSBa8xuRFCppVrJ67OMY=; b=yvq44yiJ7Zks2VwDo3RKEl2qb9NvGqF2VyBv2+8HV8/b55VhsfLr+FKk7mwn6CFDn6 8VcOmoB8XBicTjXX9bIB4NWJucvOKRDWsDz74NvspZ2chDV57XSSWAs2tkKI0thWyVgh 9q6WNM4d52xDxFNtfwnQ/nt4oisXEx8cKkR2SvsC+XYUPZ3z7tUxDMPlzj4XzfIOo2X8 IBwb8fg5ikM/YPwtitkC2jLGulUtnK23zLzPR5hiWBQ8x/qK3+oixYNQBPD/c3vlW4yJ VPQEIrdfzbFNK39EehRWOuudDwOqw5DNXYiH43J2xbsHhjlqupbHTtFQcMFPXXaHyJf4 2vCQ== X-Forwarded-Encrypted: i=1; AL+hErGNZoawn2fBcQeKoduq2NzVgp50UNsFuAcz+eLLtJKwvY2zofY3vjFjOK5r8wKsqSyVMWO8rQCjIq88xdSCl7ZM@vger.kernel.org X-Gm-Message-State: APuU4Z8hhH/i6Zu/BHeG3veTG5oXtwKWikSKxMCIae9f+XQRqgkhdK9t lJvSrbVyFTAw7rWkTEcdnHa+67Y7KWgEnVPwwobvOVwZIqDalRxjRzzj2w7BXh43N3dhwFA/KTA 6sPmgmF/LEQ== X-Received: from oadwi19-n1.prod.google.com ([2002:a05:687c:2353:10b0:4ad:5fc8:fbd4]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6871:7515:b0:493:4f6c:c82d with SMTP id 586e51a60fabf-4bc8434b60fmr21937255fac.20.1796067263337; Mon, 30 Nov 2026 11:34:23 -0800 (PST) Date: Mon, 30 Nov 2026 11:34:18 -0800 In-Reply-To: <20261125131755.GA2668804@noisy.programming.kicks-ass.net> X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261125005108.1020003-1-irogers@google.com> <20261125005108.1020003-3-irogers@google.com> <20261125131755.GA2668804@noisy.programming.kicks-ass.net> X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog Message-ID: <20261130193418.3575308-1-irogers@google.com> Subject: Re: [PATCH v4 02/19] perf/uapi: Factor perf_build_id out into its own top-level struct From: Ian Rogers To: Peter Zijlstra Cc: Ian Rogers , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , James Clark , Athira Rajeev , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , Ihor Solodrai , Leo Yan , Dmitry Vyukov , "Steinar H . Gunderson" , Stephen Brennan , Thomas Falcon , linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, Nov 25, 2026 at 02:17:55PM +0100, Peter Zijlstra wrote: > On Tue, Nov 24, 2026 at 04:50:51PM -0800, Ian Rogers wrote: > > * u16 __reserved_2; > > * u8 build_id[20]; > > * }; > > + * struct perf_build_id bid; > > Why not remove the anonymous version? Good point -- we kept the anonymous fields in libperf's C struct perf_record_mmap2 (in tools/lib/perf/include/perf/event.h) for source-level compatibility with existing callers accessing build_id_size/build_id[], and mirrored that here. Since include/uapi/linux/perf_event.h is only a doc comment, removing the anonymous version here is much cleaner. I'll drop it from the UAPI comment in v5. Thanks, Ian