mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
2316ef5891
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> |
||
---|---|---|
.. | ||
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 | ||
fsconfig.sh | ||
fsmount.c | ||
fsmount.sh | ||
fspick.c | ||
fspick.sh | ||
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 | ||
move_mount.c | ||
move_mount_flags.sh | ||
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 | ||
prctl_option.sh | ||
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.c | ||
socket.sh | ||
socket_type.c | ||
statx.c | ||
sync_file_range.c | ||
sync_file_range.sh | ||
timespec.c | ||
usbdevfs_ioctl.sh | ||
vhost_virtio_ioctl.sh | ||
waitid_options.c | ||
x86_arch_prctl.sh |