Now I'm writting a C program on linux system.I want to print the call trace information on cpu, just like what dump_stack() does in kernel space or what command echo t > /proc/sysrq-trigger shows.
I've found some ways but they all need to be used in kernel space.
I also tried
system("echo t > /proc/sysrq-trigger") and it finally shows that I can't simply do so.
sh: /sys/sysrq-trigger: Permission denied
So are there any solutions?
