Re: How to unwind stack to seek for specific caller?

2018-08-03 Thread Lev Olshvang
03.08.2018, 15:42, "valdis.kletni...@vt.edu" : > On Fri, 03 Aug 2018 15:14:45 +0300, Lev Olshvang said: > >>  But I need to find out whether my function y() was called from linux kernel >>  function x().\ > > What problem are you trying to solve? If it's your function, don't you already > *know*

Re: How to unwind stack to seek for specific caller?

2018-08-03 Thread valdis . kletnieks
On Fri, 03 Aug 2018 15:14:45 +0300, Lev Olshvang said: > But I need to find out whether my function y() was called from linux kernel > function x().\ What problem are you trying to solve? If it's your function, don't you already *know* which functions call it? And if being called from code A

How to unwind stack to seek for specific caller?

2018-08-03 Thread Lev Olshvang
Hello all I know that I can print stack of function using dump_stack() But I need to find out whether my function y() was called from linux kernel function x().\ I see that kmsg_dump_get_buffer() function can get kernel messages but it is not clear for me should I use it bedore calling dump