perf beauty: Don't include uapi/linux/mount.h, use sys/mount.h instead
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Mar 2024 16:53:39 +0000 (13:53 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 21 Mar 2024 13:41:27 +0000 (10:41 -0300)
commit22916d2cbad9a20d3fbca7cda015efcf10427297
tree150bd03afd620ae1d66d8161e027ac7cdb77cf2b
parentfaf7217a397f041f146a4cf6d9f1c9bd99cd5ca4
perf beauty: Don't include uapi/linux/mount.h, use sys/mount.h instead

The tools/include/uapi/linux/mount.h file is mostly used for scrapping
defines into id->string tables, this is the only place were it is being
directly used, stop doing so.

Define MOUNT_ATTR_RELATIME and MOUNT_ATTR__ATIME if not available in the
system's headers.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/trace/beauty/fsmount.c