linux_dsm_epyc7002/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 tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-bionic.c tools/perf/build: Split out feature check: 'bionic' 2013-10-09 08:48:33 +02:00
test-compile.c perf tools: Build programs to copy 32-bit compatibility 2014-10-29 10:32:48 -02:00
test-cplus-demangle.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-dwarf.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-fortify-source.c tools/perf/build: Split out feature check: 'fortify-source' 2013-10-09 08:48:32 +02:00
test-glibc.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-gtk2-infobar.c tools/perf/build: Clean up various testcases 2013-10-09 08:48:58 +02:00
test-gtk2.c tools/perf/build: Clean up various testcases 2013-10-09 08:48:58 +02:00
test-hello.c
test-libaudit.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libbfd.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
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 tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libelf-mmap.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libelf.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libnuma.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libperl.c tools/perf/build: Split out feature check: 'libperl' 2013-10-09 08:48:43 +02:00
test-libpython-version.c tools/perf/build: Split out feature check: 'libpython-version' 2013-10-09 08:48:44 +02:00
test-libpython.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libslang.c tools/perf/build: Split out feature check: 'libslang' 2013-10-09 08:48:41 +02:00
test-libunwind-debug-frame.c Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm 2013-11-14 08:51:29 +09:00
test-libunwind.c tools/perf/build: Clean up various testcases 2013-10-09 08:48:58 +02:00
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 tools/perf/build: Split out feature check: 'stackprotector-all' 2013-10-09 08:48:30 +02:00
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 perf kvm: Disable live command if timerfd is not supported 2013-11-05 10:03:22 -03:00
test-zlib.c perf tools: Add gzip decompression support for kernel module 2014-11-05 10:11:26 -03:00