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
4ed5d5e4
Commit
4ed5d5e4
authored
Dec 10, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc64: Add some missing __kprobes annotations to kernel fault paths.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
135d0821
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
arch/sparc/mm/fault_64.c
arch/sparc/mm/fault_64.c
+8
-7
No files found.
arch/sparc/mm/fault_64.c
View file @
4ed5d5e4
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include <asm/sections.h>
#include <asm/sections.h>
#include <asm/mmu_context.h>
#include <asm/mmu_context.h>
static
inline
int
notify_page_fault
(
struct
pt_regs
*
regs
)
static
inline
__kprobes
int
notify_page_fault
(
struct
pt_regs
*
regs
)
{
{
int
ret
=
0
;
int
ret
=
0
;
...
@@ -66,7 +66,7 @@ static void __kprobes unhandled_fault(unsigned long address,
...
@@ -66,7 +66,7 @@ static void __kprobes unhandled_fault(unsigned long address,
die_if_kernel
(
"Oops"
,
regs
);
die_if_kernel
(
"Oops"
,
regs
);
}
}
static
void
bad_kernel_pc
(
struct
pt_regs
*
regs
,
unsigned
long
vaddr
)
static
void
__kprobes
bad_kernel_pc
(
struct
pt_regs
*
regs
,
unsigned
long
vaddr
)
{
{
printk
(
KERN_CRIT
"OOPS: Bogus kernel PC [%016lx] in fault handler
\n
"
,
printk
(
KERN_CRIT
"OOPS: Bogus kernel PC [%016lx] in fault handler
\n
"
,
regs
->
tpc
);
regs
->
tpc
);
...
@@ -163,8 +163,9 @@ static unsigned int get_fault_insn(struct pt_regs *regs, unsigned int insn)
...
@@ -163,8 +163,9 @@ static unsigned int get_fault_insn(struct pt_regs *regs, unsigned int insn)
return
insn
;
return
insn
;
}
}
static
void
do_kernel_fault
(
struct
pt_regs
*
regs
,
int
si_code
,
int
fault_code
,
static
void
__kprobes
do_kernel_fault
(
struct
pt_regs
*
regs
,
int
si_code
,
unsigned
int
insn
,
unsigned
long
address
)
int
fault_code
,
unsigned
int
insn
,
unsigned
long
address
)
{
{
unsigned
char
asi
=
ASI_P
;
unsigned
char
asi
=
ASI_P
;
...
@@ -218,7 +219,7 @@ static void do_kernel_fault(struct pt_regs *regs, int si_code, int fault_code,
...
@@ -218,7 +219,7 @@ static void do_kernel_fault(struct pt_regs *regs, int si_code, int fault_code,
unhandled_fault
(
address
,
current
,
regs
);
unhandled_fault
(
address
,
current
,
regs
);
}
}
static
void
noinline
bogus_32bit_fault_tpc
(
struct
pt_regs
*
regs
)
static
void
noinline
__kprobes
bogus_32bit_fault_tpc
(
struct
pt_regs
*
regs
)
{
{
static
int
times
;
static
int
times
;
...
@@ -230,8 +231,8 @@ static void noinline bogus_32bit_fault_tpc(struct pt_regs *regs)
...
@@ -230,8 +231,8 @@ static void noinline bogus_32bit_fault_tpc(struct pt_regs *regs)
show_regs
(
regs
);
show_regs
(
regs
);
}
}
static
void
noinline
bogus_32bit_fault_address
(
struct
pt_regs
*
regs
,
static
void
noinline
__kprobes
bogus_32bit_fault_address
(
struct
pt_regs
*
regs
,
unsigned
long
addr
)
unsigned
long
addr
)
{
{
static
int
times
;
static
int
times
;
...
...
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