From nobody Wed Dec 4 19:18:48 2024 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 EAFEA17995E; Tue, 3 Dec 2024 03:53:53 +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=1733198034; cv=none; b=ivbVZt2m7OmZ2gfFH3+C8G6GzYNv0rwnJNd2V8g3Pz88RHQfh5W2swat6CyWBHNlbntvx/VPzv1d8Hrl8fUp1MT0gRR+pP//qxD7tgKivKd/L5l2PS1HdOf8CUkiMc1a2/zDbSZl4A6LhV6pdi6AedKYq/rcdwymGKw7btM5688= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198034; c=relaxed/simple; bh=O1RWkaeULx9ZPpdPzg3sbjMLr7t24XttgegNRluRTnY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VhsEsnRTJeOjYiBSGlWwoMwLyf8asLWO9KLO9qi2SMcuhGbWVtcFWTWuFruhPT+WKjZaCpzANAUThZ2ckrwfs5DVZz0RiAqJI/ZJB0LKQszf3PEf2qSK3ps2D3VsPzqa/knewARAYSthe6bhmzFmhzesd3U7/YoBazKSsc+Bwg4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E6/hE7Ig; 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="E6/hE7Ig" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F12A4C4CED6; Tue, 3 Dec 2024 03:53:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198033; bh=O1RWkaeULx9ZPpdPzg3sbjMLr7t24XttgegNRluRTnY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E6/hE7Ig4WEjC7Mj78y+e2UHlJFg02WpUMgIRzashRP8vLlsnpd+Rd1GvbD1he76n rTIKmb1TGuOUW2tjamnsZVOWJdcJUt+uZAsC06FVa4vkKq3dt5rL28QJeWBU8a2/4p JYCXLvg53BpaIUtFOnJnsNPgESVWI4+69E2onyWqtFzhHOwnZeSfdtT5PoLZGtHHNl JV68rWUx9HKb4wJWI5lIK1hrWaKQepeHYvw9gEMsRQ8OBwGOJv+bYgwJTBogOWA956 Ihm2i7DMdgCCMs3y4MsSlWtsuEOiA32pK7u/d5w8zuFXwvYgRH91e24kTs4z9B5JBJ t5KEMOnioLSkQ== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org Subject: [PATCH 01/11] tools headers: Sync uapi/drm/drm.h with the kernel sources Date: Mon, 2 Dec 2024 19:53:39 -0800 Message-ID: <20241203035349.1901262-2-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To pick up the changes in this cset: 56c594d8df64e726 ("drm: add DRM_SET_CLIENT_NAME ioctl") This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/include/uapi/drm/drm.h include/uapi/drm/drm.h Please see tools/include/uapi/README for further details. Cc: David Airlie Cc: Simona Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- tools/include/uapi/drm/drm.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tools/include/uapi/drm/drm.h b/tools/include/uapi/drm/drm.h index 16122819edfeff87..7fba37b94401a6d5 100644 --- a/tools/include/uapi/drm/drm.h +++ b/tools/include/uapi/drm/drm.h @@ -1024,6 +1024,13 @@ struct drm_crtc_queue_sequence { __u64 user_data; /* user data passed to event */ }; =20 +#define DRM_CLIENT_NAME_MAX_LEN 64 +struct drm_set_client_name { + __u64 name_len; + __u64 name; +}; + + #if defined(__cplusplus) } #endif @@ -1288,6 +1295,16 @@ extern "C" { */ #define DRM_IOCTL_MODE_CLOSEFB DRM_IOWR(0xD0, struct drm_mode_closefb) =20 +/** + * DRM_IOCTL_SET_CLIENT_NAME - Attach a name to a drm_file + * + * Having a name allows for easier tracking and debugging. + * The length of the name (without null ending char) must be + * <=3D DRM_CLIENT_NAME_MAX_LEN. + * The call will fail if the name contains whitespaces or non-printable ch= ars. + */ +#define DRM_IOCTL_SET_CLIENT_NAME DRM_IOWR(0xD1, struct drm_set_client_nam= e) + /* * Device specific ioctls should only be in their respective headers * The device specific ioctl range is from 0x40 to 0x9f. --=20 2.47.0.338.g60cca15819-goog From nobody Wed Dec 4 19:18:48 2024 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 11AB817BEB7; Tue, 3 Dec 2024 03:53:53 +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=1733198034; cv=none; b=ZajmtPtLw5VHWrkTkxi1v03Pp6E78/AoM6cnqY+J37gouwc9aH+ti4FG+w8Axo0iUuOy+8Kq/QyYaJP5AnI43yGKfENri3lu1hFG8O09cL8Jt/RbsM5Z1M2whM/AN6zEqMMMwZBGEbHRk075z84v0eHwDe8eKu4YKpuJhx8u+Oc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198034; c=relaxed/simple; bh=tiwTL8knJ9/lrpjwCPKYVq4WT5/OioYslIWbXCg5OG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h1Kqcii4/mHcTfSQbPXyhkwcs3EB4kSTOxyov15ZEV0XRfe+znn43jz4EpWPgfCmcSciFI39hL1XpHlQjUG2FrvwPSk+RRpsquidDs7T4nx1OzCSc4ENtgNK4eplzIKa1LweQf7Ybh6tijrQIyctyQzYYns6+kmlXbza6nvTeZ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o7PeW/Gt; 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="o7PeW/Gt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F18CC4CED8; Tue, 3 Dec 2024 03:53:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198033; bh=tiwTL8knJ9/lrpjwCPKYVq4WT5/OioYslIWbXCg5OG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o7PeW/GtL8/W8v8LZJI7Sj3AucD0sOgsSvbAK0rzGR3nf5Pev53gXPlzEX2L++gDM ZHZ/7E7NIyf5FO6sCXYST/S3ZsnA4p0z5dLlO5HopR/u2zUQ5z0Sfp0i/mPmpsFqzW jCew6t+FWyADMFUio7lIGUnNXVx1U+HKuPyz0rx66dsCZ4Ig6PsCuiFVOBO15jOgAn gOSy7t5R8ZDRYmOenfx6V7WSOd/7+0dRcZ9MEArzViduGvK7X9+pSC7n5PB8zEjCQ9 KuKsn2cPTG7MHDRsI6kazGbp6nOORvRIXCfmdaq3UX2I79NnnbbDUtkqFVbX8rK/Pr 5/M6l7RDPE6tg== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Subject: [PATCH 02/11] tools headers: Sync uapi/linux/perf_event.h with the kernel sources Date: Mon, 2 Dec 2024 19:53:40 -0800 Message-ID: <20241203035349.1901262-3-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To pick up the changes in this cset: 18d92bb57c39504d ("perf/core: Add aux_pause, aux_resume, aux_start_paused= ") This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/include/uapi/linux/perf_event.h include/uapi/linux/perf_e= vent.h Please see tools/include/uapi/README for further details. Cc: Adrian Hunter Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- tools/include/uapi/linux/perf_event.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/lin= ux/perf_event.h index 4842c36fdf801996..0524d541d4e3d501 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -511,7 +511,16 @@ struct perf_event_attr { __u16 sample_max_stack; __u16 __reserved_2; __u32 aux_sample_size; - __u32 __reserved_3; + + union { + __u32 aux_action; + struct { + __u32 aux_start_paused : 1, /* start AUX area tracing paused */ + aux_pause : 1, /* on overflow, pause AUX area tracing */ + aux_resume : 1, /* on overflow, resume AUX area tracing */ + __reserved_3 : 29; + }; + }; =20 /* * User provided data if sigtrap=3D1, passed back to user via --=20 2.47.0.338.g60cca15819-goog From nobody Wed Dec 4 19:18:48 2024 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 CE6DD18732E; Tue, 3 Dec 2024 03:53:54 +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=1733198034; cv=none; b=qlw0pAE0+BqmkLs9RPESYCeuyFACtmM7ZLmcmN2Dp7JBFyq5M5B65HyWdeWbcDFf6AkYIpgdRe2a3LlqOuflUWxSI0Wm9f2Ge+akwEuwaCQ9SyRPGWE5rTvqtjlBPKuRR2ICIwUIkMKM8jIweZWmaMuY2PX+ts/ELT2LNMfcJf0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198034; c=relaxed/simple; bh=n1Bo+ocWIwX2RhTBAyNb+AZLF714cNwghYqi2l+mTVM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jy2dwrjgHSK5VX/AOukMkRDFJAo0aFCVtsNwgLZwAfIGsO4dJXCgM8XCdRxD3N7oNC36VXSbhr3kMwS4+ZdFmhn4FZdVOeetY+BZFGK8ybKyxdtHn/+DXULAB0i2KeNzgtN+BGvGhPDGiJrfl5oKA6B1XiNvakFGz7ryy75LX6o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Gy9S3RL2; 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="Gy9S3RL2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA509C4CEDA; Tue, 3 Dec 2024 03:53:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198034; bh=n1Bo+ocWIwX2RhTBAyNb+AZLF714cNwghYqi2l+mTVM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gy9S3RL2jbXs5lN0+59rRTYfG8GwAUFBJ3blkB3cnwOBw1NQeCIqlFqdCkGarUauX l3uyE38YjJegWJ2L882c3RNZCiWXv+agbL6bBNc5FOyAXGM0PENTPaJTXWUTllFjE/ gw0LUACVN0AI1PxIHABMfCzTWMPTjzWq5HVnxm0gPUK1K4wBk0HivrieyGJaG+OXsW wq6BYtGIraelkVsFG94vIFnDbK/FPsJQUMv/jFz0cCHSmdJnqZv1rw5hyXak0Mq3A+ Rv36KwiidNjwHg/UyZR19cja4fMTnXUT0X50Efas/iiG2WBykiaN+Rp5EnnFd/G0p6 F8SLQbG4Fo5CQ== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Sean Christopherson , Paolo Bonzini , Tianrui Zhao , Bibo Mao , Huacai Chen , kvm@vger.kernel.org, loongarch@lists.linux.dev Subject: [PATCH 03/11] tools headers: Sync uapi/linux/kvm.h with the kernel sources Date: Mon, 2 Dec 2024 19:53:41 -0800 Message-ID: <20241203035349.1901262-4-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To pick up the changes in this cset: e785dfacf7e7fe94 ("LoongArch: KVM: Add PCHPIC device support") 2e8b9df82631e714 ("LoongArch: KVM: Add EIOINTC device support") c532de5a67a70f85 ("LoongArch: KVM: Add IPI device support") This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h Please see tools/include/uapi/README for further details. Cc: Sean Christopherson Cc: Paolo Bonzini Cc: Tianrui Zhao Cc: Bibo Mao Cc: Huacai Chen Cc: kvm@vger.kernel.org Cc: loongarch@lists.linux.dev Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- tools/include/uapi/linux/kvm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h index 637efc05514534ca..502ea63b5d2e7371 100644 --- a/tools/include/uapi/linux/kvm.h +++ b/tools/include/uapi/linux/kvm.h @@ -1158,7 +1158,15 @@ enum kvm_device_type { #define KVM_DEV_TYPE_ARM_PV_TIME KVM_DEV_TYPE_ARM_PV_TIME KVM_DEV_TYPE_RISCV_AIA, #define KVM_DEV_TYPE_RISCV_AIA KVM_DEV_TYPE_RISCV_AIA + KVM_DEV_TYPE_LOONGARCH_IPI, +#define KVM_DEV_TYPE_LOONGARCH_IPI KVM_DEV_TYPE_LOONGARCH_IPI + KVM_DEV_TYPE_LOONGARCH_EIOINTC, +#define KVM_DEV_TYPE_LOONGARCH_EIOINTC KVM_DEV_TYPE_LOONGARCH_EIOINTC + KVM_DEV_TYPE_LOONGARCH_PCHPIC, +#define KVM_DEV_TYPE_LOONGARCH_PCHPIC KVM_DEV_TYPE_LOONGARCH_PCHPIC + KVM_DEV_TYPE_MAX, + }; =20 struct kvm_vfio_spapr_tce { --=20 2.47.0.338.g60cca15819-goog From nobody Wed Dec 4 19:18:48 2024 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 16F901885A0; Tue, 3 Dec 2024 03:53:55 +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=1733198035; cv=none; b=blxvdDZuoOgg/ux6ZVSiyW415l1EvtDC+ZRuDX6QmY26Lf4IzsKAJWR5KxQx7h/gYzaxGAYnCC4uEX6l8fz6umERHOX+SsVl3mpGnTrfEyDh86hiZNdas2MJvjtlbwzY6+MMSwfSNZ1Mz7feSPuLzO1jtE8oan/S42/RlPHP7w8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198035; c=relaxed/simple; bh=WqCdJbluuRxI1iHHcgWp/DBKmKRhECuTq7v0bb54YlY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=na4a9/vrAzcRHApQR3PCha6CHK+Om+37NClGmi8iE6KF7Hn1HSCfDs50JSbwDDBZZwiivdPx+sJ4tsGR47ZUIQqPsRgoUcSyOJWwvrY3TIp1pvbOakWJWGdkVO0TzuaLsqxM1FZmHAHA7KexZ7Mo+kWe2vb9idn7fUnAC09YBBE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t3U6EI7O; 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="t3U6EI7O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70319C4AF0F; Tue, 3 Dec 2024 03:53:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198034; bh=WqCdJbluuRxI1iHHcgWp/DBKmKRhECuTq7v0bb54YlY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t3U6EI7OB9Pht6ZcbecTxS8mz0leDtfyjm0MU+fB1dYCR19G7/7fU+Y9Tn0F8IHXv f9QjSi4FXKlK8T6/XJQVfOA75Y5+TUOznynQ8aVVzaOGEtAkErwHNamP8iLypjfuea 2YmAEJaNzz7u45pY7oyIJM1Rw8tyruIKg96jg5FZkcIBOVVt4974/r7I8+AXz0Px0b MItL/oUQOafIpwFv6qhFnSksHd7901VS/PXolOj91QXyu4LDwVDKvUmXhTC35kEAGz RoAa8IyECR7ELObE4yFrCIXRjOYw6a1J/UNWYGFb2CRcXZC/aJMl9WRwUDfIbaCpF6 aWMJPh5ZTYy2Q== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , x86@kernel.org, kvm@vger.kernel.org Subject: [PATCH 04/11] tools headers: Sync x86 kvm and cpufeature headers with the kernel Date: Mon, 2 Dec 2024 19:53:42 -0800 Message-ID: <20241203035349.1901262-5-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To pick up the changes in this cset: a0423af92cb31e6f ("x86: KVM: Advertise CPUIDs for new instructions in Cle= arwater Forest") 0c487010cb4f79e4 ("x86/cpufeatures: Add X86_FEATURE_AMD_WORKLOAD_CLASS fe= ature bit") 1ad4667066714369 ("x86/cpufeatures: Add X86_FEATURE_AMD_HETEROGENEOUS_COR= ES") 104edc6efca62838 ("x86/cpufeatures: Rename X86_FEATURE_FAST_CPPC to have = AMD prefix") 3ea87dfa31a7b0bb ("x86/cpufeatures: Add a IBPB_NO_RET BUG flag") ff898623af2ed564 ("x86/cpufeatures: Define X86_FEATURE_AMD_IBPB_RET") dcb988cdac85bad1 ("KVM: x86: Quirk initialization of feature MSRs to KVM'= s max configuration") This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/c= pufeatures.h diff -u tools/arch/x86/include/uapi/asm/kvm.h arch/x86/include/uapi/asm= /kvm.h Please see tools/include/uapi/README for further details. Cc: Sean Christopherson Cc: Paolo Bonzini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: x86@kernel.org Cc: kvm@vger.kernel.org Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- tools/arch/x86/include/asm/cpufeatures.h | 11 +++++++++-- tools/arch/x86/include/uapi/asm/kvm.h | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/arch/x86/include/asm/cpufeatures.h b/tools/arch/x86/incl= ude/asm/cpufeatures.h index 23698d0f4bb47ba0..17b6590748c00cc1 100644 --- a/tools/arch/x86/include/asm/cpufeatures.h +++ b/tools/arch/x86/include/asm/cpufeatures.h @@ -215,7 +215,7 @@ #define X86_FEATURE_SPEC_STORE_BYPASS_DISABLE ( 7*32+23) /* Disable Specul= ative Store Bypass. */ #define X86_FEATURE_LS_CFG_SSBD ( 7*32+24) /* AMD SSBD implementation vi= a LS_CFG MSR */ #define X86_FEATURE_IBRS ( 7*32+25) /* "ibrs" Indirect Branch Restricted = Speculation */ -#define X86_FEATURE_IBPB ( 7*32+26) /* "ibpb" Indirect Branch Prediction = Barrier */ +#define X86_FEATURE_IBPB ( 7*32+26) /* "ibpb" Indirect Branch Prediction = Barrier without a guaranteed RSB flush */ #define X86_FEATURE_STIBP ( 7*32+27) /* "stibp" Single Thread Indirect Br= anch Predictors */ #define X86_FEATURE_ZEN ( 7*32+28) /* Generic flag for all Zen and newer= */ #define X86_FEATURE_L1TF_PTEINV ( 7*32+29) /* L1TF workaround PTE inversi= on */ @@ -317,6 +317,9 @@ #define X86_FEATURE_ZEN1 (11*32+31) /* CPU based on Zen1 microarchitectur= e */ =20 /* Intel-defined CPU features, CPUID level 0x00000007:1 (EAX), word 12 */ +#define X86_FEATURE_SHA512 (12*32+ 0) /* SHA512 instructions */ +#define X86_FEATURE_SM3 (12*32+ 1) /* SM3 instructions */ +#define X86_FEATURE_SM4 (12*32+ 2) /* SM4 instructions */ #define X86_FEATURE_AVX_VNNI (12*32+ 4) /* "avx_vnni" AVX VNNI instructio= ns */ #define X86_FEATURE_AVX512_BF16 (12*32+ 5) /* "avx512_bf16" AVX512 BFLOAT= 16 instructions */ #define X86_FEATURE_CMPCCXADD (12*32+ 7) /* CMPccXADD instructio= ns */ @@ -348,6 +351,7 @@ #define X86_FEATURE_CPPC (13*32+27) /* "cppc" Collaborative Processor Per= formance Control */ #define X86_FEATURE_AMD_PSFD (13*32+28) /* Predictive Store For= warding Disable */ #define X86_FEATURE_BTC_NO (13*32+29) /* Not vulnerable to Branch Type Co= nfusion */ +#define X86_FEATURE_AMD_IBPB_RET (13*32+30) /* IBPB clears return address = predictor */ #define X86_FEATURE_BRS (13*32+31) /* "brs" Branch Sampling available */ =20 /* Thermal and Power Management Leaf, CPUID level 0x00000006 (EAX), word 1= 4 */ @@ -472,7 +476,9 @@ #define X86_FEATURE_BHI_CTRL (21*32+ 2) /* BHI_DIS_S HW control available= */ #define X86_FEATURE_CLEAR_BHB_HW (21*32+ 3) /* BHI_DIS_S HW control enable= d */ #define X86_FEATURE_CLEAR_BHB_LOOP_ON_VMEXIT (21*32+ 4) /* Clear branch hi= story at vmexit using SW loop */ -#define X86_FEATURE_AMD_FAST_CPPC (21*32 + 5) /* AMD Fast CPPC */ +#define X86_FEATURE_AMD_FAST_CPPC (21*32 + 5) /* Fast CPPC */ +#define X86_FEATURE_AMD_HETEROGENEOUS_CORES (21*32 + 6) /* Heterogeneous C= ore Topology */ +#define X86_FEATURE_AMD_WORKLOAD_CLASS (21*32 + 7) /* Workload Classificat= ion */ =20 /* * BUG word(s) @@ -523,4 +529,5 @@ #define X86_BUG_DIV0 X86_BUG(1*32 + 1) /* "div0" AMD DIV0 speculation bu= g */ #define X86_BUG_RFDS X86_BUG(1*32 + 2) /* "rfds" CPU is vulnerable to Re= gister File Data Sampling */ #define X86_BUG_BHI X86_BUG(1*32 + 3) /* "bhi" CPU is affected by Branch= History Injection */ +#define X86_BUG_IBPB_NO_RET X86_BUG(1*32 + 4) /* "ibpb_no_ret" IBPB om= its return target predictions */ #endif /* _ASM_X86_CPUFEATURES_H */ diff --git a/tools/arch/x86/include/uapi/asm/kvm.h b/tools/arch/x86/include= /uapi/asm/kvm.h index a8debbf2f7028059..88585c1de416fa6f 100644 --- a/tools/arch/x86/include/uapi/asm/kvm.h +++ b/tools/arch/x86/include/uapi/asm/kvm.h @@ -440,6 +440,7 @@ struct kvm_sync_regs { #define KVM_X86_QUIRK_FIX_HYPERCALL_INSN (1 << 5) #define KVM_X86_QUIRK_MWAIT_NEVER_UD_FAULTS (1 << 6) #define KVM_X86_QUIRK_SLOT_ZAP_ALL (1 << 7) +#define KVM_X86_QUIRK_STUFF_FEATURE_MSRS (1 << 8) =20 #define KVM_STATE_NESTED_FORMAT_VMX 0 #define KVM_STATE_NESTED_FORMAT_SVM 1 --=20 2.47.0.338.g60cca15819-goog From nobody Wed Dec 4 19:18:48 2024 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 8B861189915; Tue, 3 Dec 2024 03:53:55 +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=1733198035; cv=none; b=o0tQdtXD/EGtEtj+0ZOZpUhqST2muV3ZqO8XesgLeQ5TBPgXz3lW4AmyPxMAN1l6YoAe1MQLRIT+BW9WDOtcoEFt1oNzMQopN5Ltr3C48XjjEQRAlT6o7MjeOACu4FIHB14nDQKGtZoksIck0s1v/acYJOdmsfrpLNH2mU3lGTg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198035; c=relaxed/simple; bh=5JTvuvrdp0PoYfG53M8VM3nL/O7q9cv2Ozg4pvy3nm0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kaIf3QNS1pvelTjAnDUBC5DvREefMP0PeVFD3jcWFEDmo/PwfkkJ0fT5o/to2juqmZBx4y4UaxJGC/i4czlydQFBP0qSDKaw4tuy+0cDofqGHSaWt9NLiU/pBmMCE6qXRqeEI5ZmMTjeYCNc2RkTN3ZeJ21WivnDn9Ns0l7ZmCI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FNuRtadN; 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="FNuRtadN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14EC8C4CEDA; Tue, 3 Dec 2024 03:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198035; bh=5JTvuvrdp0PoYfG53M8VM3nL/O7q9cv2Ozg4pvy3nm0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FNuRtadNTVdxpVKXGZaEaD13aKY94tGuHOkj1GnuOUrIUC8+GKWqTc4yfIQ7O9kQD +w8dUQ73s55I9Lhbc1pKlD37K4W/19JoJLdtS07UOlYS0y166Q+eGc0qzMH1fMy6tn P1SjQALdFIXbV2yayFv7gFRBq4VZ6SOzse+C7ib+BsB6V4wPO4QuqHpcQu/7KO6ZqJ YLwHIDUqpV9KTQEV+KmTjBMuOX4WYyxYZyeSk9Vxod79wjMMkIHqWs8cQoVI7RP58T DDovXlH/3E2Uk0CqhxZ2bVli60DQ1DkEko1Y+ZgFYupKTuUJ2s3yZkHOYUzAtG47aK p25O9VXu+l03Q== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Marc Zyngier , Oliver Upton , kvmarm@lists.linux.dev Subject: [PATCH 05/11] tools headers: Sync arm64 kvm header with the kernel sources Date: Mon, 2 Dec 2024 19:53:43 -0800 Message-ID: <20241203035349.1901262-6-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To pick up the changes in this cset: 97413cea1c48cc05 ("KVM: arm64: Add PSCI v1.3 SYSTEM_OFF2 function for hib= ernation") This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/arch/arm64/include/uapi/asm/kvm.h arch/arm64/include/uapi= /asm/kvm.h Please see tools/include/uapi/README for further details. Cc: Marc Zyngier Cc: Oliver Upton Cc: kvmarm@lists.linux.dev Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- tools/arch/arm64/include/uapi/asm/kvm.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/arch/arm64/include/uapi/asm/kvm.h b/tools/arch/arm64/inc= lude/uapi/asm/kvm.h index 964df31da9751c96..66736ff04011e0fa 100644 --- a/tools/arch/arm64/include/uapi/asm/kvm.h +++ b/tools/arch/arm64/include/uapi/asm/kvm.h @@ -484,6 +484,12 @@ enum { */ #define KVM_SYSTEM_EVENT_RESET_FLAG_PSCI_RESET2 (1ULL << 0) =20 +/* + * Shutdown caused by a PSCI v1.3 SYSTEM_OFF2 call. + * Valid only when the system event has a type of KVM_SYSTEM_EVENT_SHUTDOW= N. + */ +#define KVM_SYSTEM_EVENT_SHUTDOWN_FLAG_PSCI_OFF2 (1ULL << 0) + /* run->fail_entry.hardware_entry_failure_reason codes. */ #define KVM_EXIT_FAIL_ENTRY_CPU_UNSUPPORTED (1ULL << 0) =20 --=20 2.47.0.338.g60cca15819-goog From nobody Wed Dec 4 19:18:48 2024 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 8C96318FDAE; Tue, 3 Dec 2024 03:53:56 +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=1733198036; cv=none; b=cSAeAOkEEkDiaq2EuiSwZWcuJPyGWvkodYgA7cLvMB2RXT8dUogw+HX4Cl5Zc59WVD64UBxmEjfpHCy1jDQoEWFHZ/+AfkX0O8QM3Du2OeE99wcotyKpUalOhl/CdmLEM7WfzfUy8JsZ4fVQVZY/EPrmWvYOR17b3Uxj7H9YUFQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198036; c=relaxed/simple; bh=nKvcOkAgT9eGLo+1IwUFYryCnxBo3MpKhtpqtDuNVl8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HQrTi3YgM3cOLNmVz6wy1pNaLqc4SawoSDEPvZjTABo3ZE16xZzrHx0p+iKiWFUfmA8cl50i79ZUC9sFadlsDMRtnCtxYx3zqnbSUGhOOUY1LmtXAlHknyrJ7pSc27SyQtW7BPMtB2NfsZU0GFTUlhpLRVCtneU7nVOcUbGXkHE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G0gotNSR; 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="G0gotNSR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8441AC4CECF; Tue, 3 Dec 2024 03:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198035; bh=nKvcOkAgT9eGLo+1IwUFYryCnxBo3MpKhtpqtDuNVl8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G0gotNSRONxMRV3ybu2QdEkE9nK/sNKtOf3PG1b5012GdQHoNtospa/lqZYwD5rPe /0tDnWHQfpsN7GWoEEFAAKM0byhFfPyUaQKaj9vOvceUZuAozwS3bT9uP9DysLc4zi HsIJqXpxDmRBkW7OXeH8/mMgDWThI4MV9t0JDb2qB7e1WlgnrLeKRJZijWtZczy2RD Ex9qhn7giClb+jMZlvE7rQeRiXBF7vCs1CfAiZercJhfash4D7zdO0qweR7dQtXBIg sWGmmkuUoav3BFp0ZcuhZsxDTB5mbxyyaCU2xeQ62+Y7GxygLBJ3lCcE65BPcVkCWR GN0S8lEEHAK5Q== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Arnd Bergmann , Christian Brauner , x86@kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org Subject: [PATCH 06/11] tools headers: Sync *xattrat syscall changes with the kernel sources Date: Mon, 2 Dec 2024 19:53:44 -0800 Message-ID: <20241203035349.1901262-7-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To pick up the changes in this cset: 6140be90ec70c39f ("fs/xattr: add *at family syscalls") This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/include/uapi/asm-generic/unistd.h include/uapi/asm-generi= c/unistd.h diff -u tools/perf/arch/x86/entry/syscalls/syscall_32.tbl arch/x86/entr= y/syscalls/syscall_32.tbl diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entr= y/syscalls/syscall_64.tbl diff -u tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc= /kernel/syscalls/syscall.tbl diff -u tools/perf/arch/s390/entry/syscalls/syscall.tbl arch/s390/kerne= l/syscalls/syscall.tbl diff -u tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl arch/mips/k= ernel/syscalls/syscall_n64.tbl The arm64 changes are not included as it requires more changes in the tools. It'll be worked for the later cycle. Please see tools/include/uapi/README for further details. Cc: Arnd Bergmann Cc: Christian Brauner CC: x86@kernel.org CC: linux-mips@vger.kernel.org CC: linuxppc-dev@lists.ozlabs.org CC: linux-s390@vger.kernel.org Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- tools/include/uapi/asm-generic/unistd.h | 11 ++++++++++- tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl | 4 ++++ tools/perf/arch/powerpc/entry/syscalls/syscall.tbl | 4 ++++ tools/perf/arch/s390/entry/syscalls/syscall.tbl | 4 ++++ tools/perf/arch/x86/entry/syscalls/syscall_32.tbl | 4 ++++ tools/perf/arch/x86/entry/syscalls/syscall_64.tbl | 4 ++++ 6 files changed, 30 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/asm-generic/unistd.h b/tools/include/uapi/a= sm-generic/unistd.h index 5bf6148cac2b93e3..88dc393c2bca38c0 100644 --- a/tools/include/uapi/asm-generic/unistd.h +++ b/tools/include/uapi/asm-generic/unistd.h @@ -841,8 +841,17 @@ __SYSCALL(__NR_lsm_list_modules, sys_lsm_list_modules) #define __NR_mseal 462 __SYSCALL(__NR_mseal, sys_mseal) =20 +#define __NR_setxattrat 463 +__SYSCALL(__NR_setxattrat, sys_setxattrat) +#define __NR_getxattrat 464 +__SYSCALL(__NR_getxattrat, sys_getxattrat) +#define __NR_listxattrat 465 +__SYSCALL(__NR_listxattrat, sys_listxattrat) +#define __NR_removexattrat 466 +__SYSCALL(__NR_removexattrat, sys_removexattrat) + #undef __NR_syscalls -#define __NR_syscalls 463 +#define __NR_syscalls 467 =20 /* * 32 bit systems traditionally used different diff --git a/tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl b/tools/pe= rf/arch/mips/entry/syscalls/syscall_n64.tbl index 1464c6be6eb3c752..c844cd5cda620b28 100644 --- a/tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl +++ b/tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl @@ -377,3 +377,7 @@ 460 n64 lsm_set_self_attr sys_lsm_set_self_attr 461 n64 lsm_list_modules sys_lsm_list_modules 462 n64 mseal sys_mseal +463 n64 setxattrat sys_setxattrat +464 n64 getxattrat sys_getxattrat +465 n64 listxattrat sys_listxattrat +466 n64 removexattrat sys_removexattrat diff --git a/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl b/tools/per= f/arch/powerpc/entry/syscalls/syscall.tbl index ebae8415dfbbab6f..d8b4ab78bef076bd 100644 --- a/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl +++ b/tools/perf/arch/powerpc/entry/syscalls/syscall.tbl @@ -553,3 +553,7 @@ 460 common lsm_set_self_attr sys_lsm_set_self_attr 461 common lsm_list_modules sys_lsm_list_modules 462 common mseal sys_mseal +463 common setxattrat sys_setxattrat +464 common getxattrat sys_getxattrat +465 common listxattrat sys_listxattrat +466 common removexattrat sys_removexattrat diff --git a/tools/perf/arch/s390/entry/syscalls/syscall.tbl b/tools/perf/a= rch/s390/entry/syscalls/syscall.tbl index 01071182763e96ff..e9115b4d8b635b84 100644 --- a/tools/perf/arch/s390/entry/syscalls/syscall.tbl +++ b/tools/perf/arch/s390/entry/syscalls/syscall.tbl @@ -465,3 +465,7 @@ 460 common lsm_set_self_attr sys_lsm_set_self_attr sys_lsm_set_self_attr 461 common lsm_list_modules sys_lsm_list_modules sys_lsm_list_modules 462 common mseal sys_mseal sys_mseal +463 common setxattrat sys_setxattrat sys_setxattrat +464 common getxattrat sys_getxattrat sys_getxattrat +465 common listxattrat sys_listxattrat sys_listxattrat +466 common removexattrat sys_removexattrat sys_removexattrat diff --git a/tools/perf/arch/x86/entry/syscalls/syscall_32.tbl b/tools/perf= /arch/x86/entry/syscalls/syscall_32.tbl index 534c74b14fab5117..4d0fb2fba7e208ae 100644 --- a/tools/perf/arch/x86/entry/syscalls/syscall_32.tbl +++ b/tools/perf/arch/x86/entry/syscalls/syscall_32.tbl @@ -468,3 +468,7 @@ 460 i386 lsm_set_self_attr sys_lsm_set_self_attr 461 i386 lsm_list_modules sys_lsm_list_modules 462 i386 mseal sys_mseal +463 i386 setxattrat sys_setxattrat +464 i386 getxattrat sys_getxattrat +465 i386 listxattrat sys_listxattrat +466 i386 removexattrat sys_removexattrat diff --git a/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl b/tools/perf= /arch/x86/entry/syscalls/syscall_64.tbl index 7093ee21c0d1c041..5eb708bff1c791de 100644 --- a/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl +++ b/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl @@ -386,6 +386,10 @@ 460 common lsm_set_self_attr sys_lsm_set_self_attr 461 common lsm_list_modules sys_lsm_list_modules 462 common mseal sys_mseal +463 common setxattrat sys_setxattrat +464 common getxattrat sys_getxattrat +465 common listxattrat sys_listxattrat +466 common removexattrat sys_removexattrat =20 # # Due to a historical design error, certain syscalls are numbered differen= tly --=20 2.47.0.338.g60cca15819-goog From nobody Wed Dec 4 19:18:48 2024 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 8571418FDAB; Tue, 3 Dec 2024 03:53:56 +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=1733198036; cv=none; b=Xg4H30S67VUmMaJqBKhQPPjDlZqqSvarxTGPAUWxtax0KD4TO69BhEtNkozrYaBoGwuhIHOA801Vs9vgLPL2ksXEj9dAIrjGD5RCLlOQ+ZRvad0ev6kd5aKxOo1zEzYPdZXgOCf4oAvprVS72Zx8/x4bVksH1QU9yiQkXgHG+F0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198036; c=relaxed/simple; bh=G+rSWpFpxVDRx1f4GGYkCBIkGN3M0enVpJhyMLotu/o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=vAllX76Pykpr1uz2fh7PP+VcEJTYlzr7unfwSwUUmN8y9FL37FSV/RdLD3J2JHLiad0PvEU1iHcYy0j8x1fnJqT+gkTjVxPqanPytMeh6/Ag7ACp1JTBn/2evwyK0hAqpJiu9VcKPSyN71TJRwPmKFtm8Q9+BSEPQyxCpAAKx5s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YwGT1t3X; 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="YwGT1t3X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12E5BC4CEE3; Tue, 3 Dec 2024 03:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198036; bh=G+rSWpFpxVDRx1f4GGYkCBIkGN3M0enVpJhyMLotu/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YwGT1t3XgGeSa8SvRzpCBWMb8M3lzPIhdtjbedF/PVilea3xorqu36NYxzDXttTkO graCMFAjkC3lM95CvsRW7ErZdjxgWXuLGTxoSK0rMY3odlgvdxcoFMM4gKBt8aEiKj Xa2ADYw766pRRYKRJUNNyWi19nA8+4SEfLj7FFVruvphBZCyvYYEb+dmndUuELLPyj b5VAZq4IYH3aZxcx52dCqAJRK8riXDs5nHRFPUSq2+ryZohPUgi2mh7ONCMzGgs6eS mhcg0/A6w/gubWap/XU2/CNLSNUW2VtmMIf/hl/NQcxdLFL3T+BpIMs9bk55LvOHbe aorm8rxMxKSeg== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Arnd Bergmann , Mark Brown , Catalin Marinas , linux-arch@vger.kernel.org Subject: [PATCH 07/11] tools headers: Sync uapi/asm-generic/mman.h with the kernel sources Date: Mon, 2 Dec 2024 19:53:45 -0800 Message-ID: <20241203035349.1901262-8-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To pick up the changes in this cset: 3630e82ab6bd2642 ("mman: Add map_shadow_stack() flags") This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/include/uapi/asm-generic/mman.h include/uapi/asm-generic/= mman.h Please see tools/include/uapi/README for further details. Cc: Arnd Bergmann Cc: Mark Brown Cc: Catalin Marinas Cc: linux-arch@vger.kernel.org Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- tools/include/uapi/asm-generic/mman.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/include/uapi/asm-generic/mman.h b/tools/include/uapi/asm= -generic/mman.h index 406f7718f9ad074f..51d2556af54ac721 100644 --- a/tools/include/uapi/asm-generic/mman.h +++ b/tools/include/uapi/asm-generic/mman.h @@ -19,4 +19,8 @@ #define MCL_FUTURE 2 /* lock all future mappings */ #define MCL_ONFAULT 4 /* lock all pages that are faulted in */ =20 +#define SHADOW_STACK_SET_TOKEN (1ULL << 0) /* Set up a restore token i= n the shadow stack */ +#define SHADOW_STACK_SET_MARKER (1ULL << 1) /* Set up a top of stack m= arker in the shadow stack */ + + #endif /* __ASM_GENERIC_MMAN_H */ --=20 2.47.0.338.g60cca15819-goog From nobody Wed Dec 4 19:18:48 2024 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 7232E17BEB7; Tue, 3 Dec 2024 03:53:57 +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=1733198037; cv=none; b=hedOBEdM5fJTEn/Jacn9KS9blJtrPIz9MYsRaJ8j3mJElIzu5K0DB7zg7LkAU3XIg6vJLb2oPhzkNP5p2+C2Z1/hNtY2l1qS/TUs8Q4gQy72JLwIH5rTktuLs3PcTgTymLxk1WTSvMShASUssUi+735l164gOPyxjwTIYznviVA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198037; c=relaxed/simple; bh=MdSpb8Nh8lIFO2WMQT06WzxMitSj54UmfgKQ2YobRQc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NVJkbRx8xENktGLQnEno0qZTFxVfTe3y+5++yUZx9nXiczRZFk98gM0WjdoF054+CKPe828LRY3QvWxKwlP8F7wVz59UYR2Ypib6fseAp99rcWkz+NMUlK9KCsPEsnl1jCgaWNgrO5xK7/omXIdwwhun02Rg9FGkLxhBdHpR+uQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M/JoMdXQ; 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="M/JoMdXQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8915BC4CEDA; Tue, 3 Dec 2024 03:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198037; bh=MdSpb8Nh8lIFO2WMQT06WzxMitSj54UmfgKQ2YobRQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M/JoMdXQykTedPN8hEuuVEyL88J4xxZT98mHVHEA2+tEpZaZg5jOFOALAiYzZYznU yEdTZPWS4J5A6X6OnRZAM3eMit8nNJftJWASS1mlryNO7b7TiI/P4My3tv/Tafy2Hx zPXRDUZ28awthWR/XwwsNP7fJ/UONvJr1lB8nH5GZHDCwVitMEyJdwiecDuwD9MXJv iRKphMaCqltI3kBviknatQHCmkT7LXYLVQvd6f656ZDaaRxjw9yw+lOPto5D0+7cH7 s+xlXWrNn9bcN8bLk+GDUE/i78SEICnEYmmRrN6dLbUkZ3GNwTUVUnUklDjjgBhSji wO5j0NDcR9huw== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Jeff Layton , Chuck Lever , Alexander Aring , Christian Brauner , Al Viro , linux-fsdevel@vger.kernel.org Subject: [PATCH 08/11] tools headers: Sync uapi/linux/fcntl.h with the kernel sources Date: Mon, 2 Dec 2024 19:53:46 -0800 Message-ID: <20241203035349.1901262-9-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To pick up the changes in this cset: c374196b2b9f4b80 ("fs: name_to_handle_at() support for "explicit connecta= ble" file handles") 95f567f81e43a1bc ("fs: Simplify getattr interface function checking AT_GE= TATTR_NOSEC flag") This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/perf/trace/beauty/include/uapi/linux/fcntl.h include/uapi= /linux/fcntl.h Please see tools/include/uapi/README for further details. Cc: Jeff Layton Cc: Chuck Lever Cc: Alexander Aring Cc: Christian Brauner Cc: Al Viro Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- tools/perf/trace/beauty/include/uapi/linux/fcntl.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/trace/beauty/include/uapi/linux/fcntl.h b/tools/per= f/trace/beauty/include/uapi/linux/fcntl.h index 87e2dec79fea4ef2..6e6907e63bfc2b4d 100644 --- a/tools/perf/trace/beauty/include/uapi/linux/fcntl.h +++ b/tools/perf/trace/beauty/include/uapi/linux/fcntl.h @@ -153,9 +153,6 @@ object identity and may not be usable with open_by_handle_at(2). */ #define AT_HANDLE_MNT_ID_UNIQUE 0x001 /* Return the u64 unique mount ID. */ - -#if defined(__KERNEL__) -#define AT_GETATTR_NOSEC 0x80000000 -#endif +#define AT_HANDLE_CONNECTABLE 0x002 /* Request a connectable file handle */ =20 #endif /* _UAPI_LINUX_FCNTL_H */ --=20 2.47.0.338.g60cca15819-goog From nobody Wed Dec 4 19:18:48 2024 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 D7DE61B3959; Tue, 3 Dec 2024 03:53:57 +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=1733198037; cv=none; b=Cjxny0RTTkBENYooWqEKzM7Q3TgVussMuXCXzjCeTfFc0zTJiXYIRAoQilSQYCbaHAfOObFQ2i5O+L1Ex3MELMqnigbp7WJyQdXFmLH910zToa3M1Zs24GX9beYncvHaR8FQBEdESmY1lhO7QhvwQqTtFjJVKPtoOkU2wKr5IAo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198037; c=relaxed/simple; bh=BQm/1aP/K8xvjEddkH1/orrgM/dsPMVCSgObmtMyX8s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mTMhQL9eFkrMAgfkek0YkgKWO6Pu8FWoRNMb+3RsVoFw+DJqTvEFnDswUNkydB2Tl1EumC/JxdT7erDHNDLKJwgET7cuSUDzFZPyl4/DnBYQ9eGv9ViDRfizamrMES0zRyey/SF9PNeSUHtvm3mKVqGjGy5/wvJUo6QKmoFxKU4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IPQS33jM; 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="IPQS33jM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2521DC4CEE3; Tue, 3 Dec 2024 03:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198037; bh=BQm/1aP/K8xvjEddkH1/orrgM/dsPMVCSgObmtMyX8s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IPQS33jM0NIJL+o45Z8vwy4uo23P0YfyCHf+fV/dkterpOJglAFiJZ0VIUWd0fMHT 8Nz1JsMVOq+jXyKCamqLy90zKm1LAwd7sU1Qu+jMCg7pK94nALz2jYr0LrNc+1V6uv fsSRyZ+PxY3LMUKpqQuHrd9D6ppdq/NOrI5WAqf/UWAmceFtw9jIijUexEv2/dlDDE pSNcQxpcI4ou2vMBppcEHZjilroM+DWBjXN89McaVYq02xkCP5g2s4pFrYWZNExGtK mXQXj4XeWBEjpCU36r2vP0iZP5kRaI4l5M5TCFr42MAD/rlB2UrSLHn3WFuoSckhvF m+Zb7Uz2GdNGQ== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Christian Brauner , Al Viro , linux-fsdevel@vger.kernel.org Subject: [PATCH 09/11] tools headers: Sync uapi/linux/mount.h with the kernel sources Date: Mon, 2 Dec 2024 19:53:47 -0800 Message-ID: <20241203035349.1901262-10-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To pick up the changes in this cset: aefff51e1c2986e1 statmount: retrieve security mount options 2f4d4503e9e5ab76 statmount: add flag to retrieve unescaped options 44010543fc8bedad fs: add the ability for statmount() to report the sb_sou= rce ed9d95f691c29748 fs: add the ability for statmount() to report the fs_sub= type This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/perf/trace/beauty/include/uapi/linux/mount.h include/uapi= /linux/mount.h Please see tools/include/uapi/README for further details. Cc: Christian Brauner Cc: Al Viro Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- tools/perf/trace/beauty/include/uapi/linux/mount.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/perf/trace/beauty/include/uapi/linux/mount.h b/tools/per= f/trace/beauty/include/uapi/linux/mount.h index 225bc366ffcbf031..c07008816acae89c 100644 --- a/tools/perf/trace/beauty/include/uapi/linux/mount.h +++ b/tools/perf/trace/beauty/include/uapi/linux/mount.h @@ -154,7 +154,7 @@ struct mount_attr { */ struct statmount { __u32 size; /* Total size, including strings */ - __u32 mnt_opts; /* [str] Mount options of the mount */ + __u32 mnt_opts; /* [str] Options (comma separated, escaped) */ __u64 mask; /* What results were written */ __u32 sb_dev_major; /* Device ID */ __u32 sb_dev_minor; @@ -173,7 +173,13 @@ struct statmount { __u32 mnt_root; /* [str] Root of mount relative to root of fs */ __u32 mnt_point; /* [str] Mountpoint relative to current root */ __u64 mnt_ns_id; /* ID of the mount namespace */ - __u64 __spare2[49]; + __u32 fs_subtype; /* [str] Subtype of fs_type (if any) */ + __u32 sb_source; /* [str] Source string of the mount */ + __u32 opt_num; /* Number of fs options */ + __u32 opt_array; /* [str] Array of nul terminated fs options */ + __u32 opt_sec_num; /* Number of security options */ + __u32 opt_sec_array; /* [str] Array of nul terminated security options */ + __u64 __spare2[46]; char str[]; /* Variable size part containing strings */ }; =20 @@ -207,6 +213,10 @@ struct mnt_id_req { #define STATMOUNT_FS_TYPE 0x00000020U /* Want/got fs_type */ #define STATMOUNT_MNT_NS_ID 0x00000040U /* Want/got mnt_ns_id */ #define STATMOUNT_MNT_OPTS 0x00000080U /* Want/got mnt_opts */ +#define STATMOUNT_FS_SUBTYPE 0x00000100U /* Want/got fs_subtype */ +#define STATMOUNT_SB_SOURCE 0x00000200U /* Want/got sb_source */ +#define STATMOUNT_OPT_ARRAY 0x00000400U /* Want/got opt_... */ +#define STATMOUNT_OPT_SEC_ARRAY 0x00000800U /* Want/got opt_sec... */ =20 /* * Special @mnt_id values that can be passed to listmount --=20 2.47.0.338.g60cca15819-goog From nobody Wed Dec 4 19:18:48 2024 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 6DE101CDA17; Tue, 3 Dec 2024 03:53:58 +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=1733198038; cv=none; b=I/Deo+bIQmYiu+YVaj0Iic2Zpc6VP4j1EAw2F3bRISUJAH37Ek0Akj6sCeBaAWGKUyV3GcXzqFk8qZd31Nm5TgTqUK9nko4DB229NFFWXXJNFFPUZLVdX+tbcxvPdJ95XoS7gqDOT8dOVMgMdB7YwaYSEpJ+7X7A4hyvTKxarGY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198038; c=relaxed/simple; bh=Hp2sHHC+kfgp9mI9q7a62u7eBY07I61uBeBGfgVyxrk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nLMabvPShT4lo2S8xZwQ+R90ZDt69DcJTeAHmNipN/CGLeg5+WV81+xm5p9TkWGsv/ksh9qesnMCYvilKHuYNLMOoqZzWg0X28mDk+P6PacH900rzhq4SRyOqlxPgMpTWpH4k5sUvWCNH7CflWt2xsirmYIySRkc+qVdgZJq7Cw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lq4aEAo+; 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="lq4aEAo+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99275C4CECF; Tue, 3 Dec 2024 03:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198037; bh=Hp2sHHC+kfgp9mI9q7a62u7eBY07I61uBeBGfgVyxrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lq4aEAo+Npw1/SeWM28OzPiCalmHDJ3K0y35NryWNaFrIXZ3qF+AQTfXCJG5CPViL 3Aq7xLpmS4qH6Sv0zZjYhSDnSf6Lp8bJ4aRqjyy4DeuVRusDXvvReGS6M+kxClP+Ex zaGkvQmu1OWiliV0w854CYMkzqkvvU58YMj2lf+I92fdHOSHez7QWmurbvyxHZ2vR+ 2FOOLe42CnCD50Ig3Rn8+T8vR0yba+bpYaXGCdJy5qXWCNvA4wlOukBXcD+cem5Bbj y5bT3j/r7J4Z2fkS2hWgOC/4HwcC0ZgPwmS9w0M09enTs78QCgUetWz38OCkW9PVT3 Y4Zsbf3pKheeA== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Mark Brown , Palmer Dabbelt Subject: [PATCH 10/11] tools headers: Sync uapi/linux/prctl.h with the kernel sources Date: Mon, 2 Dec 2024 19:53:48 -0800 Message-ID: <20241203035349.1901262-11-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To pick up the changes in this cset: 09d6775f503b393d riscv: Add support for userspace pointer masking 91e102e79740ae43 prctl: arch-agnostic prctl for shadow stack This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/perf/trace/beauty/include/uapi/linux/prctl.h include/uapi= /linux/prctl.h Please see tools/include/uapi/README for further details. Cc: Mark Brown Cc: Palmer Dabbelt Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- .../trace/beauty/include/uapi/linux/prctl.h | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/tools/perf/trace/beauty/include/uapi/linux/prctl.h b/tools/per= f/trace/beauty/include/uapi/linux/prctl.h index 35791791a879b288..5c6080680cb27b19 100644 --- a/tools/perf/trace/beauty/include/uapi/linux/prctl.h +++ b/tools/perf/trace/beauty/include/uapi/linux/prctl.h @@ -230,7 +230,7 @@ struct prctl_mm_map { # define PR_PAC_APDBKEY (1UL << 3) # define PR_PAC_APGAKEY (1UL << 4) =20 -/* Tagged user address controls for arm64 */ +/* Tagged user address controls for arm64 and RISC-V */ #define PR_SET_TAGGED_ADDR_CTRL 55 #define PR_GET_TAGGED_ADDR_CTRL 56 # define PR_TAGGED_ADDR_ENABLE (1UL << 0) @@ -244,6 +244,9 @@ struct prctl_mm_map { # define PR_MTE_TAG_MASK (0xffffUL << PR_MTE_TAG_SHIFT) /* Unused; kept only for source compatibility */ # define PR_MTE_TCF_SHIFT 1 +/* RISC-V pointer masking tag length */ +# define PR_PMLEN_SHIFT 24 +# define PR_PMLEN_MASK (0x7fUL << PR_PMLEN_SHIFT) =20 /* Control reclaim behavior when allocating memory */ #define PR_SET_IO_FLUSHER 57 @@ -328,4 +331,26 @@ struct prctl_mm_map { # define PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC 0x10 /* Clear the aspect on exec */ # define PR_PPC_DEXCR_CTRL_MASK 0x1f =20 +/* + * Get the current shadow stack configuration for the current thread, + * this will be the value configured via PR_SET_SHADOW_STACK_STATUS. + */ +#define PR_GET_SHADOW_STACK_STATUS 74 + +/* + * Set the current shadow stack configuration. Enabling the shadow + * stack will cause a shadow stack to be allocated for the thread. + */ +#define PR_SET_SHADOW_STACK_STATUS 75 +# define PR_SHADOW_STACK_ENABLE (1UL << 0) +# define PR_SHADOW_STACK_WRITE (1UL << 1) +# define PR_SHADOW_STACK_PUSH (1UL << 2) + +/* + * Prevent further changes to the specified shadow stack + * configuration. All bits may be locked via this call, including + * undefined bits. + */ +#define PR_LOCK_SHADOW_STACK_STATUS 76 + #endif /* _LINUX_PRCTL_H */ --=20 2.47.0.338.g60cca15819-goog From nobody Wed Dec 4 19:18:48 2024 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 69D5B1CD205; Tue, 3 Dec 2024 03:53:58 +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=1733198038; cv=none; b=SzS0NKn3s95hQaEgW/pVHFnY7Mmlf/LKLA9AwJ9AZdNm4hRPHMxBJXKDCIvLrvAPr+W6FEbulGlzd50AbmqNR8o/ArIy7tz54+BHobNCt4eFkgV9lDe4P+AD5TvYTn0mRFzbX2n/r8OWR1Eux+u3NSryAEagA+UD3r4daChjhaQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733198038; c=relaxed/simple; bh=VL9ywmhYUUjMMzUQwvCNc1TEisl1SHebjEVkVrkBfTo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UaxSTWe8pnhHrp0fOgbR+2MzjZM7EoEnAAwkIJoqCVFA47xrNOOeWs8CblD+s18HAgkQqn7hwy5MQl7nnxNJSaMgMWxwvQ/2zHllZm6hBHHpPguSTrYFeA85eOVoFMPQZ5ocneya/3W4Unfi4iOzCwcOVm7B3V96apambQthLvc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h/ZbTYd7; 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="h/ZbTYd7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F180C4CED6; Tue, 3 Dec 2024 03:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733198038; bh=VL9ywmhYUUjMMzUQwvCNc1TEisl1SHebjEVkVrkBfTo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h/ZbTYd7e+gykDGFKEpfGbbf1uzl31vFKMZ4WSzWNb5j1spAKxy03Sa8NSi96lSZU Rh2KWmxITH00aD0lQ/JC+yvXgXR9ypBt6jmWz4509DS0HzrFuvV3Hb2esY7MDQi58r j2bnmNR8uyP0IxBvjI8z0/hw/kI+UIodqv/6Svo0isatJRPPrlvJ9FdUhJeJFwqxs4 Kq70xCPJuICSyrjpLMxFB3JQ7pZevj0IYu3Ly55GXLTYHsFFeu96w1nkMCUzPet4Kc FvwVlSx1NUQl5IHMGkJHRWk9rQh4HFS+ApMUEwIrV5/QUkIKVXQPXN2cvt4ZglwZ4k gcCciDC1n6pNA== From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Subject: [PATCH 11/11] perf tools: Fix build error on generated/fs_at_flags_array.c Date: Mon, 2 Dec 2024 19:53:49 -0800 Message-ID: <20241203035349.1901262-12-namhyung@kernel.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241203035349.1901262-1-namhyung@kernel.org> References: <20241203035349.1901262-1-namhyung@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-Transfer-Encoding: quoted-printable It should only have generic flags in the array but the recent header sync brought a new flags to fcntl.h and caused a build error. Let's update the shell script to exclude flags specific to name_to_handle_at(). CC trace/beauty/fs_at_flags.o In file included from trace/beauty/fs_at_flags.c:21: tools/perf/trace/beauty/generated/fs_at_flags_array.c:13:30: error: initi= alized field overwritten [-Werror=3Doverride-init] 13 | [ilog2(0x002) + 1] =3D "HANDLE_CONNECTABLE", | ^~~~~~~~~~~~~~~~~~~~ tools/perf/trace/beauty/generated/fs_at_flags_array.c:13:30: note: (near = initialization for =E2=80=98fs_at_flags[2]=E2=80=99) Signed-off-by: Namhyung Kim Reviewed-by: James Clark --- tools/perf/trace/beauty/fs_at_flags.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/trace/beauty/fs_at_flags.sh b/tools/perf/trace/beau= ty/fs_at_flags.sh index e3f13f96a27c227c..fac4d0c049fcc89f 100755 --- a/tools/perf/trace/beauty/fs_at_flags.sh +++ b/tools/perf/trace/beauty/fs_at_flags.sh @@ -13,13 +13,14 @@ printf "static const char *fs_at_flags[] =3D {\n" regex=3D'^[[:space:]]*#[[:space:]]*define[[:space:]]+AT_([^_]+[[:alnum:]_]= +)[[:space:]]+(0x[[:xdigit:]]+)[[:space:]]*.*' # AT_EACCESS is only meaningful to faccessat, so we will special case it t= here... # AT_STATX_SYNC_TYPE is not a bit, its a mask of AT_STATX_SYNC_AS_STAT, AT= _STATX_FORCE_SYNC and AT_STATX_DONT_SYNC -# AT_HANDLE_FID and AT_HANDLE_MNT_ID_UNIQUE are reusing values and are val= id only for name_to_handle_at() +# AT_HANDLE_FID, AT_HANDLE_MNT_ID_UNIQUE and AT_HANDLE_CONNECTABLE are reu= sing values and are valid only for name_to_handle_at() # AT_RENAME_NOREPLACE reuses 0x1 and is valid only for renameat2() grep -E $regex ${linux_fcntl} | \ grep -v AT_EACCESS | \ grep -v AT_STATX_SYNC_TYPE | \ grep -v AT_HANDLE_FID | \ grep -v AT_HANDLE_MNT_ID_UNIQUE | \ + grep -v AT_HANDLE_CONNECTABLE | \ grep -v AT_RENAME_NOREPLACE | \ sed -r "s/$regex/\2 \1/g" | \ xargs printf "\t[ilog2(%s) + 1] =3D \"%s\",\n" --=20 2.47.0.338.g60cca15819-goog