mirror-linux/tools/perf
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
..
Documentation perf report: Update document for SIMD flags 2026-04-10 09:52:06 -07:00
arch perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND 2026-04-14 00:36:53 -07:00
bench perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
check-header_ignore_hunks/lib
dlfilters
include/perf
jvmti perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
pmu-events perf build: fix "argument list too long" in second location 2026-04-13 23:22:16 -07:00
python
scripts perf script: Fix script_fetch_insn for more than just x86 2026-01-27 01:35:22 -03:00
tests perf test: Fixes for check branch stack sampling 2026-04-13 23:37:59 -07:00
trace perf trace: Update beautifier script for clone flags 2026-05-14 14:48:32 -07:00
ui perf disasm: Refactor arch__find and initialization of arch structs 2026-01-23 16:58:39 -03:00
util perf annotate: Use jump__delete when freeing LoongArch jumps 2026-04-13 23:41:11 -07:00
.gitignore perf jevents: Build support for generating metrics from python 2026-01-28 15:18:44 -03:00
Build
CREDITS
MANIFEST
Makefile perf build: Add make check-headers target 2026-05-14 14:48:32 -07:00
Makefile.config perf build: Add -funsigned-char to default CFLAGS 2026-03-31 20:22:02 -07:00
Makefile.perf perf trace: Add beautifier script for fsmount flags 2026-05-14 14:48:32 -07:00
builtin-annotate.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-bench.c perf bench: Constify tables 2026-04-08 19:21:05 -07:00
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-check.c perf check: Add libbabeltrace to the listed features 2026-02-12 17:45:22 -03:00
builtin-config.c perf tools: Make more global variables static 2026-04-08 19:21:04 -07:00
builtin-daemon.c perf tools: Replace basename() calls with perf_basename() 2026-04-08 19:21:05 -07:00
builtin-data.c perf tools: Make more global variables static 2026-04-08 19:21:04 -07:00
builtin-diff.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-evlist.c
builtin-ftrace.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-help.c
builtin-inject.c perf data: Clean up use_stdio and structures 2026-04-08 19:21:17 -07:00
builtin-kallsyms.c
builtin-kmem.c perf tools: Make more global variables static 2026-04-08 19:21:04 -07:00
builtin-kvm.c perf session: Add e_flags to the e_machine helper 2026-02-03 18:01:27 -03:00
builtin-kwork.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-list.c Merge remote-tracking branch 'torvalds/master' into perf-tools-next 2026-01-26 17:03:53 -03:00
builtin-lock.c perf lock: Fix option value type in parse_max_stack 2026-03-26 15:02:42 -07:00
builtin-mem.c
builtin-probe.c perf tools: Add layout support for --symfs option 2026-03-10 23:13:30 -07:00
builtin-record.c perf data: Clean up use_stdio and structures 2026-04-08 19:21:17 -07:00
builtin-report.c perf header: Refactor pipe mode end marker handling 2026-04-02 19:35:16 -07:00
builtin-sched.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-script.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-stat.c perf tools: Use calloc() where applicable 2026-04-08 19:21:05 -07:00
builtin-timechart.c perf tools: Add layout support for --symfs option 2026-03-10 23:13:30 -07:00
builtin-top.c perf tools: Make more global variables static 2026-04-08 19:21:04 -07:00
builtin-trace.c perf trace: Add beautifier script for fsmount flags 2026-05-14 14:48:32 -07:00
builtin-version.c
builtin.h
check-headers.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
design.txt
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c perf tool: Constify the command and option arrays 2026-03-13 14:26:27 -07:00
perf.h