perf beauty: Add generator for fadvise64's 'advice' arg constants
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Dec 2018 14:49:58 +0000 (11:49 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Dec 2018 19:17:41 +0000 (16:17 -0300)
commit069c1c6cc3646454f9c8e83084a25f8eb8cab7ae
tree89b84d84691946c78c59eb3b9fdcb59365f5604f
parentf9cdd63e79946d2f635d5c23d76811c2d710aa5c
perf beauty: Add generator for fadvise64's 'advice' arg constants

  $ tools/perf/trace/beauty/fadvise.sh
  static const char *fadvise_advices[] = {
[0] = "NORMAL",
[1] = "RANDOM",
[2] = "SEQUENTIAL",
[3] = "WILLNEED",
[4] = "DONTNEED",
[5] = "NOREUSE",
  };
  $

This has a hack wrt the s390 difference.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-tb7jguv01u8p570piq13eioh@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/trace/beauty/fadvise.sh [new file with mode: 0755]