In Linux 2.6.32-32, is there a way to find the following information about a thread programmatically in a pthreads
program? I need: run count, stack pointer, stack start/end, stack size, stack usage. Something like ThreadX, I guess, but within a program. Thanks.
For obtaining your own stack pointer you can always do something along the lines of:
mword sp;
asm volatile ("mov %esp, $0" : "=r"(sp));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With