]> asedeno.scripts.mit.edu Git - linux.git/commit
tools build: Add test for sched_getcpu()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 2 Mar 2017 15:55:49 +0000 (12:55 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Mar 2017 22:07:19 +0000 (19:07 -0300)
commit120010cb1eea151d38a3e66f5ffc79a0c3110292
tree149786c6b833f4c80e6229b6e9b67b8c2bb980ea
parente3ba76deef23064fc272424b86b506cd80b04fc5
tools build: Add test for sched_getcpu()

Instead of trying to go on adding more ifdef conditions, do a feature
test and define HAVE_SCHED_GETCPU_SUPPORT instead, then use it to
provide the prototype. No need to change the stub, as it is already a
__weak symbol.

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-yge89er9g90sc0v6k0a0r5tr@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/Makefile.feature
tools/build/feature/Makefile
tools/build/feature/test-all.c
tools/build/feature/test-sched_getcpu.c [new file with mode: 0644]
tools/perf/Makefile.config
tools/perf/util/cloexec.h
tools/perf/util/util.h