Iam trying to get the stack pointer of some thread using the /proc//stat, whenever i run the command,cat /proc/<pid>/stat | cut -d" " -f29
i end up getting zero, but when i run sudo cat /proc/<pid>/stack
i do end up getting a value
[<0>] worker_thread+0xb7/0x390
[<0>] kthread+0x134/0x150
[<0>] ret_from_fork+0x1f/0x40
not sure this is happening, any ideas why the stack pointer keeps being zero, thanks.