Re: [PATCH v2 5/5] dump_stack: unify debug information printed byshow_regs()
From: Tejun Heo
Date: Tue Apr 02 2013 - 14:08:01 EST
Hello, Vineet.
On Sat, Mar 30, 2013 at 11:43:11AM +0530, Vineet Gupta wrote:
> Although in line [2], ARC trouble-shooting code prints the task path (rather than
> comm). This was done to help identify faulting LTP open posix tests with same name
> in different directories: e.g. fork/6-1, sigqueue/6-1 ....
> Is this something you want to add to generic code as well - although it's slightly
> involved due to tsk/mm locking etc.
I don't think that'd be a particularly good idea. Paths can be pretty
long and in general we want to limit the scope of unsafe accesses from
dump functions. dump could easily be called from deep inside mmap
paths and you definitely don't wanna do get_mm_exec_file() which
involves read-locking mm->mmap_sem.
While it could be useful for arc where, supposedly, not a lot of
generic development and debugging would happen and flushing out bugs
in arch code is much more important, I don't really think it's a good
idea in general.
> Also I personally prefer the more compact <task-nm>/<tgid> format of [1] vs. [3].
It's taken from x86 messages which should be familiar to most number
of devs. Given that it's a last-resort debug thing, we can change
things but there's no reason to disturb more than necessary.
> Anyhow, can you please fold the following into your patchset to reduce above
> duplication.
Sure thing.
Thanks!
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/