Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794815113; b=AYmAMPrWcHsePbH17h4ydsQn+zwnhIsytLzMmW2P4OzdoLJooMETtx8R33kovBG4//Sx HvCtkKOiP/qFAZCmE+o6KhPu00MQjTd8S/LmuSlKC41M0e/vzMNx3u+hAQlIgdpoTT8q9 D9K9VmpRJ/Lvsa8ZwT4hahs0Yyj2wnzV7J2FCodSu182Aq3XyPFbRMy7heFt8+Ck0aymP FfGBcoQvgNpE4lnHZPSRxCwKQFy7O++Pninv48Jq4X7u0anZyVDu9lrxajBBvqMP4PF0u UoVyj8Ug8vOBVXgztFNivYqaQEB9QTqOH/0KooJ243mDl9XLSCvfubaD903FeKf2lmQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794815113; 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=fi+3u17y7wvoAtVtKo+5P36PWlBbkMmWpTM+zRtf1CI=; b=SPTdFoyAOXLK/MBnfgEr7Haqsws0B6xxuhjH2u8YYtnylNxzZ3cOej2KLbwnvvAO+x0Y NnHiYtUwGHBawr4I2pdsX2O0kB445YcnO9DbtX9sRch46ZYCagCTwPhEWNeNxtUlfWjzF kUNJmRC9kqOW785TtqJFBLeQ+PSEKz9Q0iUecBk0WW1dfJd/3PC7DqRWySKK2gzQfSH7L UkP6CHKi9P4WBh76MpJjK18vNMs6+RKPw8xJOXDLUbajqBn6DvZaIBmuuDPhxMGMuwjRr 5ZC2fB6jEj28sZxd6p8Dc+Pe4gsei9FKo2HxySb68YcBseQgAlfSp+1c+WjDAqILfsg== 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=L8gvW0Ia; arc=none smtp.remote-ip=74.125.82.199 Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) (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 76C7D606A331 for ; Mon, 16 Nov 2026 07:45:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 76C7D606A331 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=L8gvW0Ia Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-36ecd5db581so3147327eec.0 for ; Sun, 15 Nov 2026 23:45:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1794815111; x=1795419911; 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=fi+3u17y7wvoAtVtKo+5P36PWlBbkMmWpTM+zRtf1CI=; b=L8gvW0Iadb94iA+kpPaV1ebIqatTEoVLO/aSaAvQihWHzsFQbgZVUbs68KH2FCvL2J mvztilRzHT6GgNAwMRWm8I6AnwhwRRU5/N70QXVIKmYGBYFEpWECMBh6fAz79nTIamv8 xPA7es+6x5frYqRdMc0mrsQ/81jyurduyHj64zPBdUyk4uS4ygQLLkBtlF38vX+WtMR6 ojfjuSzAVLA54i92t8oXTKdkLI3rDaVbgE6KGGZWCPLuPP/d5Cp6Yj+6xytnFPor1IaJ b0LouXpX9wzyk5XFDlXeebDUcE0OCa1t436du7eF9UTffN6s24G2rIZXGKPEqHD90nEn B77A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794815111; x=1795419911; 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=fi+3u17y7wvoAtVtKo+5P36PWlBbkMmWpTM+zRtf1CI=; b=ClRGQQDYZD2ppOXSiKI8jNVQh3B3K0tyMsXD/ji0WoSp+Vs42EZDkgl8HVP0ovo9NX vZsN3D9sEYJfO2dZnWnp9vt2544CsYTnKUpPUw8njtoGfOR+gnz3/iEbyOChwJDQhFTk AEpOl5reinyKoIl7rz2RnvkAOaWEv9as18kxnn5PHIfB/31xyqXGlZemlNrgLMsbyc9V 4M/8aum/R7lBNUisUsaw3FRF07c/W18qxL1UK54R6N1Yhrhw1WUclOj22OzqlPntVC8g hVvMlezwmQS1Lz/bW0rH5i8GmRi4orZptZ0NzUbmNCToDli6FJx7ZGrx4Iiol7VBe6Qo qA/w== X-Forwarded-Encrypted: i=1; AL+hErF3YYV4i1qcmvkQLHNiyw/cjqcOSkad/LGRQ7hAFjhTD24W8B3AXdvIGvytcDVXBSCYCzg=@vger.kernel.org X-Gm-Message-State: APuU4Z9LMgdX+O9guZEYqhXSGUT9REPN6BLE6vqLG02zzF8syv6dJOSd vYambh8X8JX+uNiaIugCrueJrOM27e7ZwFOb+L9bzbinwf8BrUA8rF9ibv9soqOQBzzJD1eKKww LeKlX1A7wjw== X-Received: from dybrp12.prod.google.com ([2002:a05:7301:460c:b0:355:e5a8:715f]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:cc9e:b0:372:2ed7:8f89 with SMTP id 5a478bee46e88-3796702a36amr9735755eec.34.1794815111073; Sun, 15 Nov 2026 23:45:11 -0800 (PST) Date: Sun, 15 Nov 2026 23:43:57 -0800 In-Reply-To: <20261116074414.3174737-1-irogers@google.com> X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261116074414.3174737-1-irogers@google.com> X-Mailer: git-send-email 2.56.1.703.gf848ed807c-goog Message-ID: <20261116074414.3174737-3-irogers@google.com> Subject: [PATCH v3 02/19] perf/uapi: Factor perf_build_id out into its own top-level struct From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark Cc: 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" Document struct perf_build_id as a top-level structure in the perf_event UAPI comment and add it to the PERF_RECORD_MMAP2 union comment so future sample types can reference struct perf_build_id directly. Signed-off-by: Ian Rogers --- include/uapi/linux/perf_event.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index c49fc76292f7..deb7c42d109b 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h @@ -1099,6 +1099,18 @@ enum perf_event_type { */ PERF_RECORD_SAMPLE = 9, + /* + * Build IDs may be present in a number of events. They have a + * consistent encoding of: + * + * struct perf_build_id { + * u8 size; + * u8 __reserved_1; + * u16 __reserved_2; + * u8 data[20]; + * }; + */ + /* * The MMAP2 records are an augmented version of MMAP, they add * maj, min, ino numbers to be used to uniquely identify each mapping @@ -1123,6 +1135,7 @@ enum perf_event_type { * u16 __reserved_2; * u8 build_id[20]; * }; + * struct perf_build_id bid; * }; * u32 prot, flags; * char filename[]; -- 2.56.1.703.gf848ed807c-goog