Release 4.10 arch/s390/kernel/stacktrace.c
/*
* Stack trace management functions
*
* Copyright IBM Corp. 2006
* Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>
*/
#include <linux/sched.h>
#include <linux/stacktrace.h>
#include <linux/kallsyms.h>
#include <linux/module.h>
static int __save_address(void *data, unsigned long address, int nosched)
{
struct stack_trace *trace = data;
if (nosched && in_sched_functions(address))
return 0;
if (trace->skip > 0) {
trace->skip--;
return 0;
}
if (trace->nr_entries < trace->max_entries) {
trace->entries[trace->nr_entries++] = address;
return 0;
}
return 1;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
heiko carstens | heiko carstens | 84 | 100.00% | 5 | 100.00% |
| Total | 84 | 100.00% | 5 | 100.00% |
static int save_address(void *data, unsigned long address, int reliable)
{
return __save_address(data, address, 0);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
heiko carstens | heiko carstens | 27 | 100.00% | 6 | 100.00% |
| Total | 27 | 100.00% | 6 | 100.00% |
static int save_address_nosched(void *data, unsigned long address, int reliable)
{
return __save_address(data, address, 1);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
heiko carstens | heiko carstens | 27 | 100.00% | 5 | 100.00% |
| Total | 27 | 100.00% | 5 | 100.00% |
void save_stack_trace(struct stack_trace *trace)
{
unsigned long sp;
sp = current_stack_pointer();
dump_trace(save_address, trace, NULL, sp);
if (trace->nr_entries < trace->max_entries)
trace->entries[trace->nr_entries++] = ULONG_MAX;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
heiko carstens | heiko carstens | 52 | 100.00% | 5 | 100.00% |
| Total | 52 | 100.00% | 5 | 100.00% |
EXPORT_SYMBOL_GPL(save_stack_trace);
void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
{
unsigned long sp;
sp = tsk->thread.ksp;
if (tsk == current)
sp = current_stack_pointer();
dump_trace(save_address_nosched, trace, tsk, sp);
if (trace->nr_entries < trace->max_entries)
trace->entries[trace->nr_entries++] = ULONG_MAX;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
heiko carstens | heiko carstens | 71 | 100.00% | 4 | 100.00% |
| Total | 71 | 100.00% | 4 | 100.00% |
EXPORT_SYMBOL_GPL(save_stack_trace_tsk);
void save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace)
{
unsigned long sp;
sp = kernel_stack_pointer(regs);
dump_trace(save_address, trace, NULL, sp);
if (trace->nr_entries < trace->max_entries)
trace->entries[trace->nr_entries++] = ULONG_MAX;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pratyush anand | pratyush anand | 54 | 91.53% | 1 | 50.00% |
heiko carstens | heiko carstens | 5 | 8.47% | 1 | 50.00% |
| Total | 59 | 100.00% | 2 | 100.00% |
EXPORT_SYMBOL_GPL(save_stack_trace_regs);
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
heiko carstens | heiko carstens | 279 | 80.17% | 12 | 85.71% |
pratyush anand | pratyush anand | 59 | 16.95% | 1 | 7.14% |
ingo molnar | ingo molnar | 10 | 2.87% | 1 | 7.14% |
| Total | 348 | 100.00% | 14 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.