]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf beauty: Move tools/include/uapi/drm to tools/perf/trace/beauty/include/uapi
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 31 Mar 2026 21:06:33 +0000 (18:06 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 1 Apr 2026 03:23:01 +0000 (20:23 -0700)
As it is used only to parse ioctl numbers, not to build perf and so far
no other tools/ living tool uses it, so to clean up tools/include/ to be
used just for building tools, to have access to things available in the
kernel and not yet in the system headers, move it to the directory where
just the tools/perf/trace/beauty/ scripts can use to generate tables
used by perf.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/Makefile.perf
tools/perf/check-headers.sh
tools/perf/trace/beauty/drm_ioctl.sh
tools/perf/trace/beauty/include/uapi/drm/drm.h [moved from tools/include/uapi/drm/drm.h with 100% similarity]
tools/perf/trace/beauty/include/uapi/drm/i915_drm.h [moved from tools/include/uapi/drm/i915_drm.h with 100% similarity]

index f7b936deeaa2cd7c20b7d40f50d64515ada92310..a560fbc847934fadebad1d2e73fcad5add1d2b17 100644 (file)
@@ -547,7 +547,7 @@ $(clone_flags_array): $(beauty_uapi_linux_dir)/sched.h $(clone_flags_tbl)
        $(Q)$(SHELL) '$(clone_flags_tbl)' $(beauty_uapi_linux_dir) > $@
 
 drm_ioctl_array := $(beauty_ioctl_outdir)/drm_ioctl_array.c
-drm_hdr_dir := $(srctree)/tools/include/uapi/drm
+drm_hdr_dir := $(srctree)/tools/perf/trace/beauty/include/uapi/drm
 drm_ioctl_tbl := $(srctree)/tools/perf/trace/beauty/drm_ioctl.sh
 
 $(drm_ioctl_array): $(drm_hdr_dir)/drm.h $(drm_hdr_dir)/i915_drm.h $(drm_ioctl_tbl)
index 31826621eebdb003d0fd681ae89822225dda966f..c6b136fe8d13053dc89ceb7e5361bbd63b557f25 100755 (executable)
@@ -6,8 +6,6 @@ NC='\033[0m' # No Color
 
 declare -a FILES=(
   "include/uapi/linux/const.h"
-  "include/uapi/drm/drm.h"
-  "include/uapi/drm/i915_drm.h"
   "include/uapi/linux/bits.h"
   "include/uapi/linux/fadvise.h"
   "include/uapi/linux/fscrypt.h"
@@ -90,6 +88,8 @@ declare -a SYNC_CHECK_FILES=(
 declare -a BEAUTY_FILES=(
   "arch/x86/include/asm/irq_vectors.h"
   "arch/x86/include/uapi/asm/prctl.h"
+  "include/uapi/drm/drm.h"
+  "include/uapi/drm/i915_drm.h"
   "include/linux/socket.h"
   "include/uapi/linux/fcntl.h"
   "include/uapi/linux/fs.h"
index 9aa94fd523a9c2ddddf14f6dbd3790b559d78ee6..f2f1a257bac8b41e1900fd63cca60df113f0e909 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # SPDX-License-Identifier: LGPL-2.1
 
-[ $# -eq 1 ] && header_dir=$1 || header_dir=tools/include/uapi/drm/
+[ $# -eq 1 ] && header_dir=$1 || header_dir=tools/perf/trace/beauty/include/uapi/drm/
 
 printf "#ifndef DRM_COMMAND_BASE\n"
 grep "#define DRM_COMMAND_BASE" $header_dir/drm.h