linux-pinenote/tools/perf/config/feature-checks
Vineet Gupta 459a3df76c perf tools: Provide stub for missing pthread_attr_setaffinity_np
uClibc Linuxthreads.old doesn't support the pthread_attr_setaffinity_np()
functioo:

   ----------------->8-----------------------
  CC       bench/futex-hash.o
  CC       bench/futex-wake.o
bench/futex-hash.c: In function 'bench_futex_hash':
bench/futex-hash.c:161:3: error: implicit declaration of function
'pthread_attr_setaffinity_np' [-Werror=implicit-function-declaration]
   ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t),
&cpu);
   ^
bench/futex-hash.c:161:3: error: nested extern declaration of
'pthread_attr_setaffinity_np' [-Werror=nested-externs]
   ----------------->8-----------------------

So introduce a test to check that and if not available provide a stub.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1421156604-30603-6-git-send-email-vgupta@synopsys.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-01-28 12:43:32 -03:00
..
.gitignore perf config: Ignore generated files in feature-checks 2013-12-23 16:49:51 -03:00
Makefile perf tools: Provide stub for missing pthread_attr_setaffinity_np 2015-01-28 12:43:32 -03:00
test-all.c perf tools: Provide stub for missing pthread_attr_setaffinity_np 2015-01-28 12:43:32 -03:00
test-backtrace.c
test-bionic.c
test-compile.c perf tools: Build programs to copy 32-bit compatibility 2014-10-29 10:32:48 -02:00
test-cplus-demangle.c
test-dwarf.c
test-fortify-source.c
test-glibc.c
test-gtk2-infobar.c
test-gtk2.c
test-hello.c
test-libaudit.c
test-libbfd.c
test-libdw-dwarf-unwind.c perf tools: Add feature check for libdw dwarf unwind 2014-02-24 09:29:36 -03:00
test-libelf-getphdrnum.c
test-libelf-mmap.c
test-libelf.c
test-libnuma.c
test-libperl.c
test-libpython-version.c
test-libpython.c
test-libslang.c
test-libunwind-debug-frame.c
test-libunwind.c
test-pthread-attr-setaffinity-np.c perf tools: Provide stub for missing pthread_attr_setaffinity_np 2015-01-28 12:43:32 -03:00
test-stackprotector-all.c
test-sync-compare-and-swap.c perf tools: Add feature test for __sync_val_compare_and_swap 2014-07-16 17:57:36 -03:00
test-timerfd.c
test-zlib.c perf tools: Add gzip decompression support for kernel module 2014-11-05 10:11:26 -03:00