tools build feature: Check if pthread_barrier_t is available
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 Dec 2017 13:14:42 +0000 (10:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 Dec 2017 13:21:59 +0000 (10:21 -0300)
commit25ab5abf5b141d7fd13eed506c7458aa04749c29
tree051064be8b022c964873372404fc3f4b86c4e6f4
parent3b2323c2c1c4acf8961cfcdddcee9889daaa21e3
tools build feature: Check if pthread_barrier_t is available

As 'perf bench futex wake-parallel" will use this, which is not
available in older systems such as versions of the android NDK used in
my container build tests (r12b and r15c at the moment).

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: James Yang <james.yang@arm.com
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kim Phillips <kim.phillips@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-1i7iv54in4wj08lwo55b0pzv@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-pthread-barrier.c [new file with mode: 0644]
tools/perf/Makefile.config