From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.71 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796067265; b=5ht+oQ8NHAGiPVjwXSGEZfgxquxCNREFPIdy06zV3KM+CjDofrYpZ/5RkaZA9BMUNv4q jl0T8sclTPib71vMd79w9t8xKERqfEPsNR7KaBz0vwM4StOldTp4M9E+IorM2H1NheY6d XeP1t+VlJ4ABnS+y+CpmXOLC4qlxZkO8KVEjkDXcwkZEGR6r/zCSWUhl0vIK9r9fISknx 5+ulrTLoDv8BvxCG2v/iU2rXx+E/g0ZYfnQ4kgtNhcjYZuPlsymJrhvt9aPYtUzK7/Qko LYIaI9lL/Pbw/1n7dxo/QfPXmalBGt7y7uO+CgOQtc/gTT2uInK1hMAMYW1GUI2rjvA== 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=Z6LOKdNzv6mrC5JnnYGKBRDdb9u4J2ed2N7z5FoneNEDn6PHcuYrNlggLvc/+3X/br99 FJeq4n+FByusJ9S3E8Rct4pGN9yOzxI3a1HcsJ/7NVrlf0YXrBMrzNhieTQu0O6PRMExa fbNQ+fVW4kWoidQ+vRvJVgf/e+DfdUXrGEe+bOcsMdiOPaONPj5ce/aBi2ftF384Hl4m3 8hl8zMg9zJFSKOqSurY63cpXURg0U17+Dfa1uRYh21E7i87M08WJpgOb7xxYCTZ9Jjk1f rImgNSZWcM4aL5TDrImcfUZhztLb7fB2tiWJ25yK1TULUThVN7x0cOBREBUhw3hv6TA== 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.71 Received: from mail-oa1-f71.google.com (mail-oa1-f71.google.com [209.85.160.71]) (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 C5939606A325 for ; Mon, 30 Nov 2026 19:34:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C5939606A325 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-f71.google.com with SMTP id 586e51a60fabf-47cfa971c9eso13238194fac.0 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=aDDEilwfulNM4RU0FrbRXKDkKAWxX214QbZDYdqEnb5SV58a3ZiILjicaaFIXcbst3 Y33hvgbhPGZbgKPNBokRPvpvdmKozCEx6cqM1mP+YMtdQUojYLGcnu3h5GPY/7w/Eapx BA35KHxAsk+Toh5QilDJvnT68jwxWEW0OXNbkTn22m7I8HyMsVpru2t28XKNyfsdC87g wVyvdbRuY7XUjZ7zC0YWgqQpaqmnvl4Tca5lB/Pp24GiVNgZG/qh2M1IjEQUljaab5cg e+GLZVuptrVtm7HD1N+d10FML7q/YTTSM1MPpCjd+fX3lWdLvEBegXjao9s1CYaKxFuO w3mw== X-Forwarded-Encrypted: i=1; AL+hErGvblljhJGQ2pEM6KFzmzNTY9hqDc3CWDSKfGA7N3v39UoRhY/iJxyV74hd+4s0HTA3y3thCTDQ5CV1bUU=@vger.kernel.org X-Gm-Message-State: APuU4Z9jZmbkUE5rtzYPA8VH3l9iaL9vMfE2KPDBCH1Cav4KcBa36HUh o3/GsZ73QW/NQlBCvORT7ZdKKd1X2CDEdPwJGJEzO6kSJvB5AnRnvYgygt3dQjnINm8Dhq1Ri1d GzgsmyD8Esw== 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-kernel@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