How to generate user stack trace in kernel module
<p>I would like to generate user stack trace in kernel module.
Actually I made a kernel module for intercepting the close system call by hooking the system call table.
And I want to know who calls this system call for the specific fd in the user mode. In my kernel module, comparing the tracking fd and given param, if match, want to make a user space call stack. I tried to make the backtrace by dump_stack() or WARN macro, but it generated the kerenl stack trace.
Is is possible to get the user stack trace in kerenl module ?</p>