tools headers: Remove almost unused copy of uapi/stat.h, add few conditional defines
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Mar 2024 19:18:14 +0000 (16:18 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 21 Mar 2024 13:41:27 +0000 (10:41 -0300)
commita672af9139a843eb7a48fd7846bb6df8f81b5f86
tree221c06a1e6895c4b7888aa12275879a3316b824c
parent8a1ad4413519b10fbe5e73300b198498a0b28806
tools headers: Remove almost unused copy of uapi/stat.h, add few conditional defines

These were used to build perf to provide defines not available in older
distros, but this was back in 2017, nowadays most the distros that are
supported and I have build containers for work using just the system
headers, so ditch them.

For the few that don't have STATX_MNT_ID{_UNIQUE}, or STATX_MNT_DIOALIGN
add them conditionally.

Some of these older distros may not have things that are used in 'perf
trace', but then they also don't have libtraceevent packages, so don't
build 'perf trace'.

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>
Link: https://lore.kernel.org/lkml/20240315204835.748716-6-acme@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/uapi/linux/stat.h [deleted file]
tools/perf/check-headers.sh
tools/perf/trace/beauty/statx.c