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
fd9afbd5
Commit
fd9afbd5
authored
Jul 01, 2003
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Enable KALLSYMS, use print_symbol().
parent
cb707d7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
arch/sparc64/Kconfig
arch/sparc64/Kconfig
+7
-0
arch/sparc64/kernel/process.c
arch/sparc64/kernel/process.c
+2
-0
arch/sparc64/kernel/traps.c
arch/sparc64/kernel/traps.c
+4
-1
No files found.
arch/sparc64/Kconfig
View file @
fd9afbd5
...
...
@@ -924,6 +924,13 @@ config DEBUG_SPINLOCK
best used in conjunction with the NMI watchdog so that spinlock
deadlocks are also debuggable.
config KALLSYMS
bool "Load all symbols for debugging/ksymoops"
help
Say Y here to let the kernel print out symbolic crash information and
symbolic stack backtraces. This increases the size of the kernel
somewhat, as all symbols have to be loaded into the kernel image.
config DEBUG_SPINLOCK_SLEEP
bool "Sleep-inside-spinlock checking"
help
...
...
arch/sparc64/kernel/process.c
View file @
fd9afbd5
...
...
@@ -16,6 +16,7 @@
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/kallsyms.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/smp_lock.h>
...
...
@@ -284,6 +285,7 @@ void __show_regs(struct pt_regs * regs)
#endif
printk
(
"TSTATE: %016lx TPC: %016lx TNPC: %016lx Y: %08x %s
\n
"
,
regs
->
tstate
,
regs
->
tpc
,
regs
->
tnpc
,
regs
->
y
,
print_tainted
());
print_symbol
(
"TPC: <%s>
\n
"
,
regs
->
tpc
);
printk
(
"g0: %016lx g1: %016lx g2: %016lx g3: %016lx
\n
"
,
regs
->
u_regs
[
0
],
regs
->
u_regs
[
1
],
regs
->
u_regs
[
2
],
regs
->
u_regs
[
3
]);
...
...
arch/sparc64/kernel/traps.c
View file @
fd9afbd5
...
...
@@ -12,6 +12,7 @@
#include <linux/config.h>
#include <linux/sched.h>
/* for jiffies */
#include <linux/kernel.h>
#include <linux/kallsyms.h>
#include <linux/signal.h>
#include <linux/smp.h>
#include <linux/smp_lock.h>
...
...
@@ -1644,7 +1645,9 @@ void die_if_kernel(char *str, struct pt_regs *regs)
(
char
*
)
rw
<
((
char
*
)
current
)
+
sizeof
(
union
thread_union
)
&&
!
(((
unsigned
long
)
rw
)
&
0x7
))
{
printk
(
"Caller[%016lx]
\n
"
,
rw
->
ins
[
7
]);
printk
(
"Caller[%016lx]"
,
rw
->
ins
[
7
]);
print_symbol
(
": %s
\n
"
,
rw
->
ins
[
7
]);
printk
(
"
\n
"
);
lastrw
=
rw
;
rw
=
(
struct
reg_window
*
)
(
rw
->
ins
[
6
]
+
STACK_BIAS
);
...
...
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