perf beauty: Add generator for 'move_mount' flags argument
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 20 May 2019 17:16:49 +0000 (14:16 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 May 2019 21:37:42 +0000 (18:37 -0300)
commiteefa09b499d12883f2fad46f93379101c8da6fec
tree4bb5094b3c7f102778a0f84e81c4d803b2fa8d4e
parent8a70c6b162e3112ce87b40b1705da5c4e7566ac8
perf beauty: Add generator for 'move_mount' flags argument

  $ tools/perf/trace/beauty/move_mount_flags.sh
  static const char *move_mount_flags[] = {
  [ilog2(0x00000001) + 1] = "F_SYMLINKS",
  [ilog2(0x00000002) + 1] = "F_AUTOMOUNTS",
  [ilog2(0x00000004) + 1] = "F_EMPTY_PATH",
  [ilog2(0x00000010) + 1] = "T_SYMLINKS",
  [ilog2(0x00000020) + 1] = "T_AUTOMOUNTS",
  [ilog2(0x00000040) + 1] = "T_EMPTY_PATH",
  };
  $

Will be wired up to the 'perf trace' arg in a followup patch.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-px7v33suw1k2ehst52l7bwa3@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/trace/beauty/move_mount_flags.sh [new file with mode: 0755]