linux-stable/tools/perf/config/feature-checks
Adrian Hunter 95a09cfa3c perf tools: Fix pthread_attr_setaffinity_np build error
Feature detection for pthread_attr_setaffinity_np was failing, producing
this error:

  In file included from bench/futex-hash.c:17:0:
  bench/futex.h:73:19: error: conflicting types for ‘pthread_attr_setaffinity_np’
   static inline int pthread_attr_setaffinity_np(pthread_attr_t *attr,
                   ^
  In file included from bench/futex.h:72:0,
                   from bench/futex-hash.c:17:
  /usr/include/pthread.h:407:12: note: previous declaration of ‘pthread_attr_setaffinity_np’ was here
   extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr,
            ^
  make[3]: *** [bench/futex-hash.o] Error 1
  make[2]: *** [bench] Error 2
  make[2]: *** Waiting for unfinished jobs....

  This was because compiling test-pthread-attr-setaffinity-np.c
  failed due to the function arguments:

  test-pthread-attr-setaffinity-np.c: In function ‘main’:
  test-pthread-attr-setaffinity-np.c:11:2: warning: null argument where non-null required (argument 3) [-Wnonnull]
    ret = pthread_attr_setaffinity_np(&thread_attr, 0, NULL);
    ^
  So fix the arguments.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Stephane Eranian <eranian@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1424774766-24194-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-02-25 12:18:03 -03:00
..
.gitignore perf config: Ignore generated files in feature-checks 2013-12-23 16:49:51 -03:00
Makefile perf tools: Define _GNU_SOURCE on pthread_attr_setaffinity_np feature check 2015-02-25 12:17:38 -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: Fix pthread_attr_setaffinity_np build error 2015-02-25 12:18:03 -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