Release 4.14 arch/um/kernel/sysrq.c
/*
* Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
* Copyright (C) 2013 Richard Weinberger <richrd@nod.at>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/kallsyms.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/sched/debug.h>
#include <linux/sched/task_stack.h>
#include <asm/sysrq.h>
#include <asm/stacktrace.h>
#include <os.h>
static void _print_addr(void *data, unsigned long address, int reliable)
{
pr_info(" [<%08lx>] %s%pF\n", address, reliable ? "" : "? ",
(void *)address);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Richard Weinberger | 16 | 44.44% | 2 | 33.33% |
Daniel Walter | 9 | 25.00% | 1 | 16.67% |
Jeff Dike | 8 | 22.22% | 1 | 16.67% |
Paolo 'Blaisorblade' Giarrusso | 2 | 5.56% | 1 | 16.67% |
Chris Wedgwood | 1 | 2.78% | 1 | 16.67% |
Total | 36 | 100.00% | 6 | 100.00% |
static const struct stacktrace_ops stackops = {
.address = _print_addr
};
void show_stack(struct task_struct *task, unsigned long *stack)
{
unsigned long *sp = stack;
struct pt_regs *segv_regs = current->thread.segv_regs;
int i;
if (!segv_regs && os_is_signal_stack()) {
pr_err("Received SIGSEGV in SIGSEGV handler,"
" aborting stack trace!\n");
return;
}
if (!stack)
sp = get_stack_pointer(task, segv_regs);
pr_info("Stack:\n");
stack = sp;
for (i = 0; i < 3 * STACKSLOTS_PER_LINE; i++) {
if (kstack_end(stack))
break;
if (i && ((i % STACKSLOTS_PER_LINE) == 0))
pr_cont("\n");
pr_cont(" %08lx", *stack++);
}
pr_cont("\n");
pr_info("Call Trace:\n");
dump_trace(current, &stackops, NULL);
pr_info("\n");
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paolo 'Blaisorblade' Giarrusso | 83 | 53.90% | 3 | 42.86% |
Richard Weinberger | 50 | 32.47% | 3 | 42.86% |
Daniel Walter | 21 | 13.64% | 1 | 14.29% |
Total | 154 | 100.00% | 7 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paolo 'Blaisorblade' Giarrusso | 85 | 36.80% | 3 | 21.43% |
Richard Weinberger | 73 | 31.60% | 4 | 28.57% |
Daniel Walter | 43 | 18.61% | 1 | 7.14% |
Jeff Dike | 22 | 9.52% | 2 | 14.29% |
Ingo Molnar | 6 | 2.60% | 2 | 14.29% |
Chris Wedgwood | 1 | 0.43% | 1 | 7.14% |
Al Viro | 1 | 0.43% | 1 | 7.14% |
Total | 231 | 100.00% | 14 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.