mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
simplify the stacktrace code
Simplify the stacktrace code: - remove the unused task argument to save_stack_trace, it's always current - remove the all_contexts flag, it's alwasy 0 Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Andi Kleen <ak@suse.de> Cc: Akinobu Mita <akinobu.mita@gmail.com> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7e4c3690b0
commit
ab1b6f03a1
8 changed files with 28 additions and 61 deletions
|
@ -72,9 +72,8 @@ static bool fail_stacktrace(struct fault_attr *attr)
|
|||
trace.entries = entries;
|
||||
trace.max_entries = depth;
|
||||
trace.skip = 1;
|
||||
trace.all_contexts = 0;
|
||||
|
||||
save_stack_trace(&trace, NULL);
|
||||
save_stack_trace(&trace);
|
||||
for (n = 0; n < trace.nr_entries; n++) {
|
||||
if (attr->reject_start <= entries[n] &&
|
||||
entries[n] < attr->reject_end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue