-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vineet Gupta
committed
Feb 15, 2013
1 parent
3ccac16
commit a68d952
Showing
4 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: abe11ddea1d759f9995a9a4636c28c9b40856ca8 | ||
refs/heads/master: c08098f28e3f3830086b1b542c2d2646a84e109c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) | ||
* | ||
* 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/ptrace.h> | ||
|
||
void ptrace_disable(struct task_struct *child) | ||
{ | ||
} | ||
|
||
long arch_ptrace(struct task_struct *child, long request, | ||
unsigned long addr, unsigned long data) | ||
{ | ||
int ret = -EIO; | ||
return ret; | ||
} | ||
|
||
|
||
const struct user_regset_view *task_user_regset_view(struct task_struct *task) | ||
{ | ||
return (const struct user_regset_view *)NULL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) | ||
* | ||
* 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/ptrace.h> | ||
#include <linux/export.h> | ||
|
||
/*------------------------------------------------------------------------- | ||
* APIs expected by various kernel sub-systems | ||
*------------------------------------------------------------------------- | ||
*/ | ||
|
||
noinline void show_stacktrace(struct task_struct *tsk, struct pt_regs *regs) | ||
{ | ||
pr_info("\nStack Trace: NOT Available\n"); | ||
} | ||
EXPORT_SYMBOL(show_stacktrace); | ||
|
||
/* Expected by sched Code */ | ||
void show_stack(struct task_struct *tsk, unsigned long *sp) | ||
{ | ||
show_stacktrace(tsk, NULL); | ||
} | ||
|
||
/* Expected by Rest of kernel code */ | ||
void dump_stack(void) | ||
{ | ||
show_stacktrace(NULL, NULL); | ||
} | ||
EXPORT_SYMBOL(dump_stack); | ||
|
||
/* Another API expected by schedular, shows up in "ps" as Wait Channel | ||
* Ofcourse just returning schedule( ) would be pointless so unwind until | ||
* the function is not in schedular code | ||
*/ | ||
unsigned int get_wchan(struct task_struct *tsk) | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) | ||
* | ||
* 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 | ||
*/ | ||
|
||
#include <linux/ptrace.h> | ||
|
||
void show_regs(struct pt_regs *regs) | ||
{ | ||
} | ||
|
||
void show_kernel_fault_diag(const char *str, struct pt_regs *regs, | ||
unsigned long address, unsigned long cause_reg) | ||
{ | ||
} |