Contributors: 13
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Paolo 'Blaisorblade' Giarrusso |
62 |
28.05% |
3 |
13.04% |
Richard Weinberger |
47 |
21.27% |
4 |
17.39% |
Dmitry Safonov |
34 |
15.38% |
3 |
13.04% |
Daniel Walter |
27 |
12.22% |
1 |
4.35% |
Jeff Dike |
26 |
11.76% |
3 |
13.04% |
Vincent Whitchurch |
6 |
2.71% |
1 |
4.35% |
Ingo Molnar |
6 |
2.71% |
2 |
8.70% |
Tiwei Bie |
3 |
1.36% |
1 |
4.35% |
Chris Wedgwood |
3 |
1.36% |
1 |
4.35% |
Johannes Berg |
2 |
0.90% |
1 |
4.35% |
Gennady Sharapov |
2 |
0.90% |
1 |
4.35% |
Thomas Gleixner |
2 |
0.90% |
1 |
4.35% |
Al Viro |
1 |
0.45% |
1 |
4.35% |
Total |
221 |
|
23 |
|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
* Copyright (C) 2013 Richard Weinberger <richrd@nod.at>
*/
#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/stacktrace.h>
#include <os.h>
static void _print_addr(void *data, unsigned long address, int reliable)
{
const char *loglvl = data;
printk("%s [<%08lx>] %s%pS\n", loglvl, address, reliable ? "" : "? ",
(void *)address);
}
static const struct stacktrace_ops stackops = {
.address = _print_addr
};
void show_stack(struct task_struct *task, unsigned long *stack,
const char *loglvl)
{
struct pt_regs *segv_regs = current->thread.segv_regs;
int i;
if (!stack)
stack = get_stack_pointer(task, segv_regs);
printk("%sStack:\n", loglvl);
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", READ_ONCE_NOCHECK(*stack));
stack++;
}
printk("%sCall Trace:\n", loglvl);
dump_trace(task ?: current, &stackops, (void *)loglvl);
}