diff options
author | Vineet Gupta <[email protected]> | 2015-01-13 19:13:24 +0530 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-01-28 12:43:32 -0300 |
commit | 459a3df76c99124fd222586be7f10f862547e7a9 (patch) | |
tree | ea50de4b0fde454af53b52682aa5b4ea4ba47e32 /net/lapb | |
parent | 8d9cbd8f870e1aab00fb0f8a465887877a1d6f82 (diff) |
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 <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexey Brodkin <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions