On Thu, 04 Sep 2014 23:12:44 +0200 Ethan Wilson <ethan.wilson@xxxxxxxxxxxxx> wrote: > OTOH I would like to ask kernel experts one thing if I may: does anybody > know a way to get a stack trace for a process which is currently running > in kernel mode and is running NOW on a CPU and it is not stopped waiting > in a queue? I know about /proc/pid/stack but that one shows > 0xffffffffffffffff for such a case. Being able to do that would help to > answer the above question too... The contents of the stack would change while it was being inspected, so it would be impossible to get a meaningful trace. Maybe you could disable all but one CPU. Then whenever you try to look at the stack of another process it must have scheduled and so will have a stable visible stack... Or maybe you would use "perf record -g" to get some stack information, I'm not sure. NeilBrown
Attachment:
signature.asc
Description: PGP signature