From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Dan Bolstad Cc: ecos , "Rafael Rodríguez Velilla" Subject: Re: [ECOS] Adjusting stack sizes Date: Thu, 06 Sep 2001 23:43:00 -0000 Message-id: <3B986CA7.23879E75@redhat.com> References: X-SW-Source: 2001-09/msg00162.html Dan Bolstad wrote: > > It sounds like you want the functions defined in > . > > This function is very helpful when tuning stack sizes: > cyg_test_dump_thread_stack_stats( char *comment, Cyg_Thread *p ); That interface is a slightly older one only used for tests (hence the location of the header). The preferred API to use is: #ifdef CYGFUN_KERNEL_THREADS_STACK_MEASUREMENT cyg_uint32 cyg_thread_measure_stack_usage(cyg_handle_t thread); #endif Obviously enable the above config option. This version works better in that it doesn't assume the stack is zero initialized. Jifl -- Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062 Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine