From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796167306; b=Na9tzHPm17L/i//IyiWRnALjHx++qTsM3QuS1EWGWSqmP1AWlCxXfdA0IswlQaki27u3 bLb6NPmaWce5mTjmrJ9/4g5NlpxQ2c6sb3f7HuN0yPF9tHqMmyYUr+8Kshdsf7ea34D2Y xGYMt9BuJsyo2/GisNaDeodpIlDiqQPujcGA+mx9nRUAFBmuxi3t32qqWtkDYsJWmy8wE kHgqMbu5qCjOPGccg5b4O5VUQ1FivlgFUCKs1A/PsV2I0zS2e40BYtTVi4j5DxufvgAGT NeYyWHAI7db1o0FVYhxIYHY8sauE3FnphvP5IawV3KWYW8kR38uyAm5OG4XSGZayiXA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796167306; 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=1P1oEwqDxOE5FV+poKZh/5bs+uXS9l4cOb6IrdC4r80=; b=JZMhHGGpg6P/wGAKBUu6Pf8sbZWhVOMc6NKkons7tU4F54TgPv5dBt6svOqp3nZOSaJm aBhCjLNFMoxnSkWyjQdpmChd9gGJ3kftgKXfC3/l/3WksGt8wb/TDueedSLWknMuMWNAo vs5tKHP8drbHxExfU4p4R4fNE8ssJdleuBUxcDlPfFp6AKehRGFBpY5jzw0KHUySbdl4S uWy8E6+xe2H0AH/UhGU3vX96AtJUKoQ4bNf8P4wGIHrcNRghQinsXxZtZdfB4o4RJmmpc 0rxQ5M6TLtXkOT/Q1/RO6uqdi8kxLV211gnOF72ioVL+xaG25j6qWSmj+6xyfVs439A== 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=UdIBiwBk; arc=none smtp.remote-ip=74.125.82.198 Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) (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 646A560A3801 for ; Tue, 1 Dec 2026 23:21:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 646A560A3801 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=UdIBiwBk Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-386c3309469so10062260eec.0 for ; Tue, 01 Dec 2026 15:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796167306; x=1796772106; 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=1P1oEwqDxOE5FV+poKZh/5bs+uXS9l4cOb6IrdC4r80=; b=UdIBiwBkpfiSOwZe6t/cMactTlCq74t1TyNVGnWZh1QqtcyzKoKWbYnS7OGTGtW4V8 nbwO0V6lkeMU5pFG9kwdqbaaRfwT2iV1KfHiTl9IfX8+kcUJfPQA/PvYf5juFTr8jgMY 9Tu1YKs4FjJ8uldU1TqP9FiDPRsUAXkQme6sCw/tf5qhO4eGindpJjDoF+qPshrlS+IL Ceb84OF757aWsMa89VNLuNvkN1TCdD1VgYAAqnwlfFIn1EknGfgPNg+GPudvfGHYofIy jszm9VU+Dvj9nEiQmntU/0YNrVAlAH7alvGzxbAO6mGs8LxlLiteVJz7kgVSofFthekB Yt+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796167306; x=1796772106; 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=1P1oEwqDxOE5FV+poKZh/5bs+uXS9l4cOb6IrdC4r80=; b=bv9bUBmKH6N/z4OHQcaM2vYMksdJ3FhLiAG433fqTSt79s8bKoy+WG5SFhz6sMTEyk 1NaiLBdwU8Pp266djp7HmLHp5BPPk3NqD81K7RSYzOs9YI9aMPUWbJ+MpbZOfffHKfdc embc8h4tVoSC3xZYDPfKDgxTkBsA6lIgWmb81JMJ8RZv7lEBejnwP4NLw6qm4JsbWR4Z 2eSjaiBdSIWHn250b6XoKi5hBciMVDHZ38ONe/CjBbGu+6JBhOSPwfg/ybwyFYO94ii2 yH7DhTR6JwQGzi7s3LEsLWsLUJJM2DSFPi+/IXYm/Gmm3tYmTQoSSpJw7b/+hlg4bame fkLQ== X-Forwarded-Encrypted: i=1; AL+hErF9CPeArst/+vklIJeJqW5DBCif9DASsutJb070Mx4zSVcAFHVyDvxzLp6+sMbbLp4M6f8=@vger.kernel.org X-Gm-Message-State: APuU4Z883vehux3q4NAY7pp2rRmZW8PitWi4qFbQQIV/5FAMADUKzRTF JgEBMPloPCcxghpDN37YXGYiR9p0Slh9Y2T6a2QO7DYbYfnZR5qbxVdo8ziw++W5Kj8EP05xPpw HDiaiTx2eug== X-Received: from dybkz3.prod.google.com ([2002:a05:7301:1a03:b0:358:2c8e:30e3]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7301:4d11:b0:386:c666:ec45 with SMTP id 5a478bee46e88-386c666eeb2mr21051696eec.12.1796167305173; Tue, 01 Dec 2026 15:21:45 -0800 (PST) Date: Tue, 1 Dec 2026 15:21:08 -0800 In-Reply-To: <20261201232116.1988791-1-irogers@google.com> X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261201232116.1988791-1-irogers@google.com> X-Mailer: git-send-email 2.56.1.915.g69d5ec7298-goog Message-ID: <20261201232116.1988791-9-irogers@google.com> Subject: [RFC PATCH 08/16] tools headers UAPI: Sync linux/perf_event.h with the kernel sources From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Sean Christopherson , Paolo Bonzini Cc: Marc Zyngier , Alexei Starovoitov , linux-perf-users@vger.kernel.org, kvm@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Ian Rogers Content-Type: text/plain; charset="UTF-8" Copy the PERF_SAMPLE_HOST_IP and attr.mmap_bpf additions from include/uapi/linux/perf_event.h to tools/include/uapi/linux/perf_event.h. Signed-off-by: Ian Rogers --- tools/include/uapi/linux/perf_event.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index c49fc76292f7..146df3041c31 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -165,8 +165,9 @@ enum perf_event_sample_format { PERF_SAMPLE_DATA_PAGE_SIZE = 1U << 22, PERF_SAMPLE_CODE_PAGE_SIZE = 1U << 23, PERF_SAMPLE_WEIGHT_STRUCT = 1U << 24, + PERF_SAMPLE_HOST_IP = 1U << 25, - PERF_SAMPLE_MAX = 1U << 25, /* non-ABI */ + PERF_SAMPLE_MAX = 1U << 26, /* non-ABI */ }; #define PERF_SAMPLE_WEIGHT_TYPE (PERF_SAMPLE_WEIGHT | PERF_SAMPLE_WEIGHT_STRUCT) @@ -468,7 +469,8 @@ struct perf_event_attr { sigtrap : 1, /* send synchronous SIGTRAP on event */ defer_callchain: 1, /* request PERF_RECORD_CALLCHAIN_DEFERRED records */ defer_output : 1, /* output PERF_RECORD_CALLCHAIN_DEFERRED records */ - __reserved_1 : 24; + mmap_bpf : 1, /* filter mmap_data events with BPF prog */ + __reserved_1 : 23; union { __u32 wakeup_events; /* wake up every n events */ @@ -1093,6 +1095,7 @@ enum perf_event_type { * { u64 cgroup;} && PERF_SAMPLE_CGROUP * { u64 data_page_size;} && PERF_SAMPLE_DATA_PAGE_SIZE * { u64 code_page_size;} && PERF_SAMPLE_CODE_PAGE_SIZE + * { u64 host_ip;} && PERF_SAMPLE_HOST_IP * { u64 size; * char data[size]; } && PERF_SAMPLE_AUX * }; -- 2.56.1.915.g69d5ec7298-goog