Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf beauty: Move tools/include/uapi/drm to tools/perf/trace/beauty/include/uapi

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>

authored by

Arnaldo Carvalho de Melo and committed by
Namhyung Kim
a8e11416 be867c49

+4 -4
tools/include/uapi/drm/drm.h tools/perf/trace/beauty/include/uapi/drm/drm.h
tools/include/uapi/drm/i915_drm.h tools/perf/trace/beauty/include/uapi/drm/i915_drm.h
+1 -1
tools/perf/Makefile.perf
··· 547 547 $(Q)$(SHELL) '$(clone_flags_tbl)' $(beauty_uapi_linux_dir) > $@ 548 548 549 549 drm_ioctl_array := $(beauty_ioctl_outdir)/drm_ioctl_array.c 550 - drm_hdr_dir := $(srctree)/tools/include/uapi/drm 550 + drm_hdr_dir := $(srctree)/tools/perf/trace/beauty/include/uapi/drm 551 551 drm_ioctl_tbl := $(srctree)/tools/perf/trace/beauty/drm_ioctl.sh 552 552 553 553 $(drm_ioctl_array): $(drm_hdr_dir)/drm.h $(drm_hdr_dir)/i915_drm.h $(drm_ioctl_tbl)
+2 -2
tools/perf/check-headers.sh
··· 6 6 7 7 declare -a FILES=( 8 8 "include/uapi/linux/const.h" 9 - "include/uapi/drm/drm.h" 10 - "include/uapi/drm/i915_drm.h" 11 9 "include/uapi/linux/bits.h" 12 10 "include/uapi/linux/fadvise.h" 13 11 "include/uapi/linux/fscrypt.h" ··· 88 90 declare -a BEAUTY_FILES=( 89 91 "arch/x86/include/asm/irq_vectors.h" 90 92 "arch/x86/include/uapi/asm/prctl.h" 93 + "include/uapi/drm/drm.h" 94 + "include/uapi/drm/i915_drm.h" 91 95 "include/linux/socket.h" 92 96 "include/uapi/linux/fcntl.h" 93 97 "include/uapi/linux/fs.h"
+1 -1
tools/perf/trace/beauty/drm_ioctl.sh
··· 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: LGPL-2.1 3 3 4 - [ $# -eq 1 ] && header_dir=$1 || header_dir=tools/include/uapi/drm/ 4 + [ $# -eq 1 ] && header_dir=$1 || header_dir=tools/perf/trace/beauty/include/uapi/drm/ 5 5 6 6 printf "#ifndef DRM_COMMAND_BASE\n" 7 7 grep "#define DRM_COMMAND_BASE" $header_dir/drm.h