perf sched: Use PTHREAD_STACK_MIN to avoid pthread_attr_setstacksize() fail
authorJiri Pirko <jpirko@redhat.com>
Mon, 10 Jan 2011 16:14:23 +0000 (14:14 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Jan 2011 16:16:00 +0000 (14:16 -0200)
commit12f7e0364375ba1ba55abcc5ac082b68fb526c80
tree464bf05ab148fcafb1aba919261c1d1467919abb
parentaa7bc7ef73efc46d7c3a0e185eefaf85744aec98
perf sched: Use PTHREAD_STACK_MIN to avoid pthread_attr_setstacksize() fail

on ppc64:
/usr/include/bits/local_lim.h:#define PTHREAD_STACK_MIN 131072

therefore following set of commands:

gives:
perf.2.6.37test: builtin-sched.c:493: create_tasks: Assertion `!(err)' failed.

So make sure we do not set stack size lower than PTHREAD_STACK_MIN.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20110110160417.GB2685@psychotron.brq.redhat.com>
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-sched.c