Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d8932719
Commit
d8932719
authored
Apr 21, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Apr 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove show_trace_task()
It no longer has any callers.
parent
17d5007f
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
0 additions
and
117 deletions
+0
-117
arch/alpha/kernel/traps.c
arch/alpha/kernel/traps.c
+0
-12
arch/arm26/kernel/traps.c
arch/arm26/kernel/traps.c
+0
-12
arch/cris/kernel/traps.c
arch/cris/kernel/traps.c
+0
-8
arch/h8300/kernel/traps.c
arch/h8300/kernel/traps.c
+0
-6
arch/i386/kernel/traps.c
arch/i386/kernel/traps.c
+0
-10
arch/mips/kernel/traps.c
arch/mips/kernel/traps.c
+0
-5
arch/parisc/kernel/traps.c
arch/parisc/kernel/traps.c
+0
-5
arch/ppc64/kernel/process.c
arch/ppc64/kernel/process.c
+0
-6
arch/s390/kernel/traps.c
arch/s390/kernel/traps.c
+0
-11
arch/sh/kernel/traps.c
arch/sh/kernel/traps.c
+0
-6
arch/sparc64/kernel/traps.c
arch/sparc64/kernel/traps.c
+0
-7
arch/um/kernel/sysrq.c
arch/um/kernel/sysrq.c
+0
-11
arch/v850/kernel/process.c
arch/v850/kernel/process.c
+0
-7
arch/x86_64/kernel/traps.c
arch/x86_64/kernel/traps.c
+0
-10
include/linux/sched.h
include/linux/sched.h
+0
-1
No files found.
arch/alpha/kernel/traps.c
View file @
d8932719
...
...
@@ -137,18 +137,6 @@ dik_show_trace(unsigned long *sp)
printk
(
"
\n
"
);
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
struct
thread_info
*
ti
=
tsk
->
thread_info
;
unsigned
long
fp
,
sp
=
ti
->
pcb
.
ksp
,
base
=
(
unsigned
long
)
ti
;
if
(
sp
>
base
&&
sp
+
6
*
8
<
base
+
16
*
1024
)
{
fp
=
((
unsigned
long
*
)
sp
)[
6
];
if
(
fp
>
sp
&&
fp
<
base
+
16
*
1024
)
dik_show_trace
((
unsigned
long
*
)
fp
);
}
}
static
int
kstack_depth_to_print
=
24
;
void
show_stack
(
struct
task_struct
*
task
,
unsigned
long
*
sp
)
...
...
arch/arm26/kernel/traps.c
View file @
d8932719
...
...
@@ -165,18 +165,6 @@ void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
c_backtrace
(
fp
,
processor_mode
(
regs
));
}
/*
* This is called from SysRq-T (show_task) to display the current
* call trace for each process. Very useful.
*/
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
if
(
tsk
!=
current
)
{
unsigned
int
fp
=
thread_saved_fp
(
tsk
);
c_backtrace
(
fp
,
0x10
);
}
}
/* FIXME - this is probably wrong.. */
void
show_stack
(
struct
task_struct
*
task
,
unsigned
long
*
sp
)
{
dump_mem
(
"Stack: "
,
(
unsigned
long
)
sp
,
8192
+
(
unsigned
long
)
task
->
thread_info
);
...
...
arch/cris/kernel/traps.c
View file @
d8932719
...
...
@@ -60,14 +60,6 @@ void show_trace(unsigned long * stack)
}
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
/* TODO, this is not really useful since its called from
* SysRq-T and we don't have a keyboard.. :)
*/
}
/*
* These constants are for searching for possible module text
* segments. MODULE_RANGE is a guess of how much space is likely
...
...
arch/h8300/kernel/traps.c
View file @
d8932719
...
...
@@ -156,14 +156,8 @@ void show_stack(struct task_struct *task, unsigned long *esp)
printk
(
"
\n
"
);
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
show_stack
(
tsk
,(
unsigned
long
*
)
tsk
->
thread
.
esp0
);
}
void
dump_stack
(
void
)
{
show_stack
(
NULL
,
NULL
);
}
EXPORT_SYMBOL
(
dump_stack
);
arch/i386/kernel/traps.c
View file @
d8932719
...
...
@@ -123,16 +123,6 @@ void show_trace(struct task_struct *task, unsigned long * stack)
printk
(
"
\n
"
);
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
unsigned
long
esp
=
tsk
->
thread
.
esp
;
/* User space on another CPU? */
if
((
esp
^
(
unsigned
long
)
tsk
->
thread_info
)
&
~
(
THREAD_SIZE
-
1
))
return
;
show_trace
(
tsk
,
(
unsigned
long
*
)
esp
);
}
void
show_stack
(
struct
task_struct
*
task
,
unsigned
long
*
esp
)
{
unsigned
long
*
stack
;
...
...
arch/mips/kernel/traps.c
View file @
d8932719
...
...
@@ -126,11 +126,6 @@ void show_trace(struct task_struct *task, unsigned long *stack)
printk
(
"
\n
"
);
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
show_trace
(
tsk
,
(
long
*
)
tsk
->
thread
.
reg29
);
}
/*
* The architecture-independent dump_stack generator
*/
...
...
arch/parisc/kernel/traps.c
View file @
d8932719
...
...
@@ -202,11 +202,6 @@ void show_trace(struct task_struct *task, unsigned long *stack)
printk
(
"
\n
"
);
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
show_trace
(
tsk
,
(
unsigned
long
*
)
tsk
->
thread
.
regs
.
ksp
);
}
void
die_if_kernel
(
char
*
str
,
struct
pt_regs
*
regs
,
long
err
)
{
if
(
user_mode
(
regs
))
{
...
...
arch/ppc64/kernel/process.c
View file @
d8932719
...
...
@@ -536,10 +536,4 @@ void dump_stack(void)
{
show_stack
(
current
,
(
unsigned
long
*
)
__get_SP
());
}
EXPORT_SYMBOL
(
dump_stack
);
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
show_stack
(
tsk
,
(
unsigned
long
*
)
tsk
->
thread
.
ksp
);
}
arch/s390/kernel/traps.c
View file @
d8932719
...
...
@@ -105,17 +105,6 @@ void show_trace(struct task_struct *task, unsigned long * stack)
printk
(
"
\n
"
);
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
/*
* We can't print the backtrace of a running process. It is
* unreliable at best and can cause kernel oopses.
*/
if
(
tsk
->
state
==
TASK_RUNNING
)
return
;
show_trace
(
tsk
,
(
unsigned
long
*
)
tsk
->
thread
.
ksp
);
}
void
show_stack
(
struct
task_struct
*
task
,
unsigned
long
*
sp
)
{
unsigned
long
*
stack
;
...
...
arch/sh/kernel/traps.c
View file @
d8932719
...
...
@@ -705,14 +705,8 @@ void show_task(unsigned long *sp)
show_stack
(
NULL
,
sp
);
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
show_task
((
unsigned
long
*
)
tsk
->
thread
.
sp
);
}
void
dump_stack
(
void
)
{
show_stack
(
NULL
,
NULL
);
}
EXPORT_SYMBOL
(
dump_stack
);
arch/sparc64/kernel/traps.c
View file @
d8932719
...
...
@@ -1760,13 +1760,6 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
#endif
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
if
(
tsk
)
show_stack
(
tsk
,
(
unsigned
long
*
)
tsk
->
thread_info
->
ksp
);
}
void
dump_stack
(
void
)
{
unsigned
long
*
ksp
;
...
...
arch/um/kernel/sysrq.c
View file @
d8932719
...
...
@@ -42,19 +42,8 @@ void dump_stack(void)
show_trace
(
&
stack
);
}
EXPORT_SYMBOL
(
dump_stack
);
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
unsigned
long
esp
=
PT_REGS_SP
(
&
tsk
->
thread
.
regs
);
/* User space on another CPU? */
if
((
esp
^
(
unsigned
long
)
tsk
)
&
(
PAGE_MASK
<<
1
))
return
;
show_trace
((
unsigned
long
*
)
esp
);
}
/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Emacs will notice this stuff at the end of the file and automatically
...
...
arch/v850/kernel/process.c
View file @
d8932719
...
...
@@ -234,10 +234,3 @@ unsigned long get_wchan (struct task_struct *p)
return
0
;
}
void
show_trace_task
(
struct
task_struct
*
t
)
{
/* blarg XXX */
printk
(
"show_trace_task: KSP = 0x%lx, USP = 0x%lx, UPC = 0x%lx
\n
"
,
t
->
thread
.
ksp
,
KSTK_ESP
(
t
),
KSTK_EIP
(
t
));
}
arch/x86_64/kernel/traps.c
View file @
d8932719
...
...
@@ -197,16 +197,6 @@ void show_trace(unsigned long *stack)
printk
(
"
\n
"
);
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
unsigned
long
rsp
=
tsk
->
thread
.
rsp
;
/* User space on another CPU? */
if
((
rsp
^
(
unsigned
long
)
tsk
->
thread_info
)
&
(
PAGE_MASK
<<
1
))
return
;
show_trace
((
unsigned
long
*
)
rsp
);
}
void
show_stack
(
struct
task_struct
*
tsk
,
unsigned
long
*
rsp
)
{
unsigned
long
*
stack
;
...
...
include/linux/sched.h
View file @
d8932719
...
...
@@ -151,7 +151,6 @@ extern void init_idle(task_t *idle, int cpu);
extern
void
show_state
(
void
);
extern
void
show_regs
(
struct
pt_regs
*
);
extern
void
show_trace_task
(
task_t
*
tsk
);
/*
* TASK is a pointer to the task whose backtrace we want to see (or NULL for current
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment