mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-19 00:20:59 +00:00

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: e25ebda78e
("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>
35 lines
612 B
C
35 lines
612 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __NR_fork
|
|
#define __NR_fork 2
|
|
#endif
|
|
#ifndef __NR_execve
|
|
#define __NR_execve 11
|
|
#endif
|
|
#ifndef __NR_getppid
|
|
#define __NR_getppid 64
|
|
#endif
|
|
#ifndef __NR_getpgid
|
|
#define __NR_getpgid 132
|
|
#endif
|
|
#ifndef __NR_capget
|
|
#define __NR_capget 184
|
|
#endif
|
|
#ifndef __NR_gettid
|
|
#define __NR_gettid 224
|
|
#endif
|
|
#ifndef __NR_futex
|
|
#define __NR_futex 240
|
|
#endif
|
|
#ifndef __NR_getcpu
|
|
#define __NR_getcpu 318
|
|
#endif
|
|
#ifndef __NR_perf_event_open
|
|
#define __NR_perf_event_open 336
|
|
#endif
|
|
#ifndef __NR_setns
|
|
#define __NR_setns 346
|
|
#endif
|
|
#ifndef __NR_seccomp
|
|
#define __NR_seccomp 354
|
|
#endif
|