linux/tools/perf/trace/beauty
Namhyung Kim 5a433107fa perf trace: Update beautifier script for clone flags
According to the change in the sched.h, update the script to generate
the flags array like below.  Note that '+1' is needed to detect bitmask
pattern at index 0.

  $ cat tools/perf/trace/beauty/generated/clone_flags_array.c
  static const char *clone_flags[] = {
  	[ilog2(0x00000100) + 1] = "VM",
  	[ilog2(0x00000200) + 1] = "FS",
  	[ilog2(0x00000400) + 1] = "FILES",
  	[ilog2(0x00000800) + 1] = "SIGHAND",
  	[ilog2(0x00001000) + 1] = "PIDFD",
  	[ilog2(0x00002000) + 1] = "PTRACE",
  	[ilog2(0x00004000) + 1] = "VFORK",
  	[ilog2(0x00008000) + 1] = "PARENT",
  	[ilog2(0x00010000) + 1] = "THREAD",
  	[ilog2(0x00020000) + 1] = "NEWNS",
  	[ilog2(0x00040000) + 1] = "SYSVSEM",
  	[ilog2(0x00080000) + 1] = "SETTLS",
  	[ilog2(0x00100000) + 1] = "PARENT_SETTID",
  	[ilog2(0x00200000) + 1] = "CHILD_CLEARTID",
  	[ilog2(0x00400000) + 1] = "DETACHED",
  	[ilog2(0x00800000) + 1] = "UNTRACED",
  	[ilog2(0x01000000) + 1] = "CHILD_SETTID",
  	[ilog2(0x02000000) + 1] = "NEWCGROUP",
  	[ilog2(0x04000000) + 1] = "NEWUTS",
  	[ilog2(0x08000000) + 1] = "NEWIPC",
  	[ilog2(0x10000000) + 1] = "NEWUSER",
  	[ilog2(0x20000000) + 1] = "NEWPID",
  	[ilog2(0x40000000) + 1] = "NEWNET",
  	[ilog2(0x80000000) + 1] = "IO",
  	[ilog2(0x00000080) + 1] = "NEWTIME",
  	[32 + 1] = "CLEAR_SIGHAND",
  	[33 + 1] = "INTO_CGROUP",
  	[34 + 1] = "AUTOREAP",
  	[35 + 1] = "NNP",
  	[36 + 1] = "PIDFD_AUTOKILL",
  	[37 + 1] = "EMPTY_MNTNS",
  };

This was found by Sashiko during review.

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2026-05-14 14:48:32 -07:00
..
arch/x86/include perf beauty: Update the arch/x86/include/asm/irq_vectors.h copy with the kernel sources 2026-03-04 11:49:24 -03:00
include perf trace: Sync uapi/linux/sched.h with the kernel source 2026-05-14 14:48:32 -07: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 perf env: Move arch errno function to only use in env 2024-12-18 16:24:33 -03:00
arch_prctl.c
beauty.h perf trace: Add beautifier script for fsmount flags 2026-05-14 14:48:32 -07:00
Build perf build: Specify shellcheck should use bash 2025-06-30 09:43:06 -07:00
clone.c perf beauty: Introduce scrape script for 'clone' syscall 'flags' argument 2024-03-21 10:41:29 -03:00
clone.sh perf trace: Update beautifier script for clone flags 2026-05-14 14:48:32 -07:00
drm_ioctl.sh perf beauty: Move tools/include/uapi/drm to tools/perf/trace/beauty/include/uapi 2026-03-31 20:23:01 -07:00
eventfd.c
fadvise.sh perf beauty: Move copy of fadvise.h from tools/include/ to tools/perf/trace/beauty/include/ 2026-03-31 20:23:06 -07:00
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
fs_at_flags.c perf beauty: Fix AT_EACCESS undeclared build error for system with kernel versions lower than v5.8 2024-04-03 11:48:57 -03:00
fs_at_flags.sh perf tools: Fix build error on generated/fs_at_flags_array.c 2024-12-04 14:34:50 -08: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_attr.sh perf trace: Add beautifier script for fsmount flags 2026-05-14 14:48:32 -07:00
fsmount.c perf trace: Add beautifier script for fsmount flags 2026-05-14 14:48:32 -07:00
fsmount.sh perf trace: Add beautifier script for fsmount flags 2026-05-14 14:48:32 -07: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_type.sh
kcmp.c
kvm_ioctl.sh
madvise_behavior.sh
mmap_flags.sh perf beauty mmap_flags: Use "test -f" instead of "[-f FILE]" 2023-08-29 14:15:21 -03:00
mmap_prot.sh perf beauty mmap_flags: Use "test -f" instead of "[-f FILE]" 2023-08-29 14:15:21 -03:00
mmap.c
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_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
mremap_flags.sh
msg_flags.c perf beauty: Update copy of linux/socket.h with the kernel sources 2024-09-30 17:23:38 -03:00
open_flags.c
perf_event_open.c perf trace: Introduce SCA_PERF_ATTR_FROM_USER() to set .from_user = true 2024-09-09 19:23:04 -03:00
perf_ioctl.sh
pid.c
pkey_alloc_access_rights.sh
pkey_alloc.c
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
prctl.c perf beauty: Stop using the copy of uapi/linux/prctl.h 2024-03-21 10:41:27 -03:00
rename_flags.sh perf beauty: Move uapi/linux/fs.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
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 perf trace: Use a common encoding for augmented arguments, with size + error + payload 2024-09-09 19:17:03 -03:00
sockaddr.sh
socket_type.c
socket.c
socket.sh perf beauty socket/prctl_option: Cope with extended regexp complaint by grep 2023-10-31 12:31:19 -03:00
statx_mask.sh perf beauty: Introduce scrape script for the 'statx' syscall 'mask' argument 2024-03-21 13:54:40 -03:00
statx.c perf beauty: Introduce scrape script for the 'statx' syscall 'mask' argument 2024-03-21 13:54:40 -03:00
sync_file_range.c perf beauty: Move uapi/linux/fs.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
sync_file_range.sh perf beauty: Move uapi/linux/fs.h copy out of the directory used to build perf 2024-03-21 10:41:27 -03:00
syscalltbl.sh perf trace beauty: Add syscalltbl.sh generating all system call tables 2025-03-20 22:58:08 -07:00
timespec.c perf trace: Use a common encoding for augmented arguments, with size + error + payload 2024-09-09 19:17:03 -03:00
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 perf beauty: Move uapi/linux/vhost.h copy out of the directory used to build perf 2024-03-21 20:44:35 -03:00
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