mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +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
614 B
C
35 lines
614 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __NR_fork
|
|
#define __NR_fork 57
|
|
#endif
|
|
#ifndef __NR_execve
|
|
#define __NR_execve 59
|
|
#endif
|
|
#ifndef __NR_getppid
|
|
#define __NR_getppid 110
|
|
#endif
|
|
#ifndef __NR_getpgid
|
|
#define __NR_getpgid 121
|
|
#endif
|
|
#ifndef __NR_capget
|
|
#define __NR_capget 125
|
|
#endif
|
|
#ifndef __NR_gettid
|
|
#define __NR_gettid 186
|
|
#endif
|
|
#ifndef __NR_futex
|
|
#define __NR_futex 202
|
|
#endif
|
|
#ifndef __NR_perf_event_open
|
|
#define __NR_perf_event_open 298
|
|
#endif
|
|
#ifndef __NR_setns
|
|
#define __NR_setns 308
|
|
#endif
|
|
#ifndef __NR_getcpu
|
|
#define __NR_getcpu 309
|
|
#endif
|
|
#ifndef __NR_seccomp
|
|
#define __NR_seccomp 317
|
|
#endif
|