linux/tools/perf/trace/beauty
Arnaldo Carvalho de Melo 2316ef5891 perf beauty: Introduce scrape script for 'clone' syscall 'flags' argument
It was using the first variation on producing a string representation
for a binary flag, one that used the copy of uapi/linux/sched.h with
preprocessor tricks that had to be updated everytime a new flag was
introduced.

Use the more recent scrape script + strarray + strarray__scnprintf_flags() combo.

  $ tools/perf/trace/beauty/clone.sh | head -5
  static const char *clone_flags[] = {
  	[ilog2(0x00000100) + 1] = "VM",
  	[ilog2(0x00000200) + 1] = "FS",
  	[ilog2(0x00000400) + 1] = "FILES",
  	[ilog2(0x00000800) + 1] = "SIGHAND",
  $

Now we can move uapi/linux/sched.h from tools/include/, that is used for
building perf to the scrape only directory tools/perf/trace/beauty/include.

Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/ZfnULIn3XKDq0bpc@x1
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2024-03-21 10:41:29 -03:00
..
arch/x86/include perf beauty: Move prctl.h files (uapi/linux and x86's) copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
include perf beauty: Introduce scrape script for 'clone' syscall 'flags' argument 2024-03-21 10:41:29 -03:00
tracepoints perf beauty: Move arch/x86/include/asm/irq_vectors.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
arch_errno_names.c
arch_errno_names.sh
arch_prctl.c
beauty.h
Build
clone.c perf beauty: Introduce scrape script for 'clone' syscall 'flags' argument 2024-03-21 10:41:29 -03:00
clone.sh perf beauty: Introduce scrape script for 'clone' syscall 'flags' argument 2024-03-21 10:41:29 -03:00
drm_ioctl.sh
eventfd.c
fadvise.sh
fcntl.c perf beauty: Use the system linux/fcntl.h instead of a copy from the kernel 2024-03-21 10:41:27 -03:00
flock.c perf beauty: Use the system linux/fcntl.h instead of a copy from the kernel 2024-03-21 10:41:27 -03:00
fsconfig.sh perf beauty: Move uapi/linux/mount.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
fsmount.c
fsmount.sh perf beauty: Move uapi/linux/mount.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
fspick.c
fspick.sh perf beauty: Move uapi/linux/mount.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
futex_op.c
futex_val3.c
ioctl.c
kcmp.c
kcmp_type.sh
kvm_ioctl.sh
madvise_behavior.sh
mmap.c
mmap_flags.sh
mmap_prot.sh
mode_t.c
mount_flags.c
mount_flags.sh perf beauty: Move uapi/linux/mount.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
move_mount.c
move_mount_flags.sh perf beauty: Move uapi/linux/mount.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
mremap_flags.sh
msg_flags.c
open_flags.c
perf_event_open.c
perf_ioctl.sh
pid.c
pkey_alloc.c
pkey_alloc_access_rights.sh
prctl.c perf beauty: Stop using the copy of uapi/linux/prctl.h 2024-03-21 10:41:27 -03:00
prctl_option.sh perf beauty: Move prctl.h files (uapi/linux and x86's) copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
rename_flags.sh
renameat.c
sched_policy.c
seccomp.c
signum.c
sndrv_ctl_ioctl.sh perf beauty: Move uapi/sound/asound.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
sndrv_pcm_ioctl.sh perf beauty: Move uapi/sound/asound.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
sockaddr.c
sockaddr.sh
socket.c
socket.sh
socket_type.c
statx.c tools headers: Remove almost unused copy of uapi/stat.h, add few conditional defines 2024-03-21 10:41:27 -03:00
sync_file_range.c
sync_file_range.sh
timespec.c
usbdevfs_ioctl.sh perf beauty: Move uapi/linux/usbdevice_fs.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
vhost_virtio_ioctl.sh
waitid_options.c
x86_arch_prctl.sh perf beauty: Move prctl.h files (uapi/linux and x86's) copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00