mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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>
|
||
|---|---|---|
| .. | ||
| arch/x86/include | ||
| include | ||
| tracepoints | ||
| arch_errno_names.c | ||
| arch_errno_names.sh | ||
| arch_prctl.c | ||
| beauty.h | ||
| Build | ||
| clone.c | ||
| clone.sh | ||
| drm_ioctl.sh | ||
| eventfd.c | ||
| fadvise.sh | ||
| fcntl.c | ||
| flock.c | ||
| fs_at_flags.c | ||
| fs_at_flags.sh | ||
| fsconfig.sh | ||
| fsmount_attr.sh | ||
| fsmount.c | ||
| fsmount.sh | ||
| fspick.c | ||
| fspick.sh | ||
| futex_op.c | ||
| futex_val3.c | ||
| ioctl.c | ||
| kcmp_type.sh | ||
| kcmp.c | ||
| kvm_ioctl.sh | ||
| madvise_behavior.sh | ||
| mmap_flags.sh | ||
| mmap_prot.sh | ||
| mmap.c | ||
| mode_t.c | ||
| mount_flags.c | ||
| mount_flags.sh | ||
| move_mount_flags.sh | ||
| move_mount.c | ||
| mremap_flags.sh | ||
| msg_flags.c | ||
| open_flags.c | ||
| perf_event_open.c | ||
| perf_ioctl.sh | ||
| pid.c | ||
| pkey_alloc_access_rights.sh | ||
| pkey_alloc.c | ||
| prctl_option.sh | ||
| prctl.c | ||
| rename_flags.sh | ||
| renameat.c | ||
| sched_policy.c | ||
| seccomp.c | ||
| signum.c | ||
| sndrv_ctl_ioctl.sh | ||
| sndrv_pcm_ioctl.sh | ||
| sockaddr.c | ||
| sockaddr.sh | ||
| socket_type.c | ||
| socket.c | ||
| socket.sh | ||
| statx_mask.sh | ||
| statx.c | ||
| sync_file_range.c | ||
| sync_file_range.sh | ||
| syscalltbl.sh | ||
| timespec.c | ||
| usbdevfs_ioctl.sh | ||
| vhost_virtio_ioctl.sh | ||
| waitid_options.c | ||
| x86_arch_prctl.sh | ||