public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Getting number of open file descriptors or sockets per thread?
@ 2012-10-31 20:27 Ken Yee
  0 siblings, 0 replies; only message in thread
From: Ken Yee @ 2012-10-31 20:27 UTC (permalink / raw)
  To: ecos-discuss

Is this possible in eCOS?

I'm basically trying to do this for checking leaks since an RTOS is more sensitive to this.
I'd ideally like to do something like this:
  http://www.cyberciti.biz/tips/linux-procfs-file-descriptors.html
then run some code in a loop while checking the descriptor used count to make sure it doesn't grow like crazy.

Ideally, I'd also like to do this with the sockets, mbufs, etc. as well.

I've used cyg_thread_measure_stack_usage to check stack usage per thread successfully.
And I've used mallinfo to check for memory leaks.

Hoping something like this exists for file descriptors and sockets, but if not, it'd be a very useful API to add :-)

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-31 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-31 20:27 [ECOS] Getting number of open file descriptors or sockets per thread? Ken Yee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).