]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf cap: Add __NR_capget to arch/x86 unistd
authorIan Rogers <irogers@google.com>
Sat, 26 Oct 2024 05:54:48 +0000 (22:54 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Oct 2024 16:04:52 +0000 (13:04 -0300)
commita5384c426744ebe41dafc6e5fa3acecc05e43462
tree7080767d1c239f12a0d8dea9abdc07e9b59d7b6c
parent55f1b540d893da740a81200450014c45a8103f54
perf cap: Add __NR_capget to arch/x86 unistd

As there are duplicated kernel headers in tools/include libc can pick
up the wrong definitions. This was causing the wrong system call for
capget in perf.

Reported-by: Adrian Hunter <adrian.hunter@intel.com>
Fixes: e25ebda78e230283 ("perf cap: Tidy up and improve capability testing")
Closes: https://lore.kernel.org/lkml/cc7d6bdf-1aeb-4179-9029-4baf50b59342@intel.com/
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20241026055448.312247-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/arch/x86/include/uapi/asm/unistd_32.h
tools/arch/x86/include/uapi/asm/unistd_64.h
tools/perf/util/cap.c