perf tools: Introduce weak alternative to sched_getcpu()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 13:29:31 +0000 (10:29 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 18:20:34 +0000 (15:20 -0300)
commitc7007e983682b31d91e9ad7c3e85c49ffcc3651f
treeb4ecc87ce9e43a34a2424159bd5e09e26fd2efb3
parent4998a1224686d74ab7f7789787f7f7f904c75dfc
perf tools: Introduce weak alternative to sched_getcpu()

Which is just a wrapper for sys_getcpu and is not present in at least
musl libc.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-kblef7svmhr0g93kkx78envg@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/arch/x86/include/asm/unistd_32.h
tools/arch/x86/include/asm/unistd_64.h
tools/perf/util/cloexec.c
tools/perf/util/util.h