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
81eac907
Commit
81eac907
authored
3 years ago
by
Vasily Gorbik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s390/test_unwind: show tests as skipped if unsupported
Signed-off-by:
Vasily Gorbik
<
gor@linux.ibm.com
>
parent
42b01a55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
arch/s390/lib/test_unwind.c
arch/s390/lib/test_unwind.c
+3
-6
No files found.
arch/s390/lib/test_unwind.c
View file @
81eac907
...
@@ -136,7 +136,6 @@ static __always_inline unsigned long get_psw_addr(void)
...
@@ -136,7 +136,6 @@ static __always_inline unsigned long get_psw_addr(void)
return
psw_addr
;
return
psw_addr
;
}
}
#ifdef CONFIG_KPROBES
static
int
pgm_pre_handler
(
struct
kprobe
*
p
,
struct
pt_regs
*
regs
)
static
int
pgm_pre_handler
(
struct
kprobe
*
p
,
struct
pt_regs
*
regs
)
{
{
struct
unwindme
*
u
=
unwindme
;
struct
unwindme
*
u
=
unwindme
;
...
@@ -145,7 +144,6 @@ static int pgm_pre_handler(struct kprobe *p, struct pt_regs *regs)
...
@@ -145,7 +144,6 @@ static int pgm_pre_handler(struct kprobe *p, struct pt_regs *regs)
(
u
->
flags
&
UWM_SP
)
?
u
->
sp
:
0
);
(
u
->
flags
&
UWM_SP
)
?
u
->
sp
:
0
);
return
0
;
return
0
;
}
}
#endif
/* This function may or may not appear in the backtrace. */
/* This function may or may not appear in the backtrace. */
static
noinline
int
unwindme_func4
(
struct
unwindme
*
u
)
static
noinline
int
unwindme_func4
(
struct
unwindme
*
u
)
...
@@ -157,11 +155,13 @@ static noinline int unwindme_func4(struct unwindme *u)
...
@@ -157,11 +155,13 @@ static noinline int unwindme_func4(struct unwindme *u)
wait_event
(
u
->
task_wq
,
kthread_should_park
());
wait_event
(
u
->
task_wq
,
kthread_should_park
());
kthread_parkme
();
kthread_parkme
();
return
0
;
return
0
;
#ifdef CONFIG_KPROBES
}
else
if
(
u
->
flags
&
UWM_PGM
)
{
}
else
if
(
u
->
flags
&
UWM_PGM
)
{
struct
kprobe
kp
;
struct
kprobe
kp
;
int
ret
;
int
ret
;
if
(
!
IS_ENABLED
(
CONFIG_KPROBES
))
kunit_skip
(
current_test
,
"requires CONFIG_KPROBES"
);
unwindme
=
u
;
unwindme
=
u
;
memset
(
&
kp
,
0
,
sizeof
(
kp
));
memset
(
&
kp
,
0
,
sizeof
(
kp
));
kp
.
symbol_name
=
"do_report_trap"
;
kp
.
symbol_name
=
"do_report_trap"
;
...
@@ -185,7 +185,6 @@ static noinline int unwindme_func4(struct unwindme *u)
...
@@ -185,7 +185,6 @@ static noinline int unwindme_func4(struct unwindme *u)
unregister_kprobe
(
&
kp
);
unregister_kprobe
(
&
kp
);
unwindme
=
NULL
;
unwindme
=
NULL
;
return
u
->
ret
;
return
u
->
ret
;
#endif
}
else
{
}
else
{
struct
pt_regs
regs
;
struct
pt_regs
regs
;
...
@@ -327,7 +326,6 @@ static const struct test_params param_list[] = {
...
@@ -327,7 +326,6 @@ static const struct test_params param_list[] = {
.
name
=
"UWM_IRQ | UWM_CALLER | UWM_SP | UWM_REGS"
},
.
name
=
"UWM_IRQ | UWM_CALLER | UWM_SP | UWM_REGS"
},
{.
flags
=
UWM_IRQ
|
UWM_CALLER
|
UWM_SP
|
UWM_REGS
|
UWM_SWITCH_STACK
,
{.
flags
=
UWM_IRQ
|
UWM_CALLER
|
UWM_SP
|
UWM_REGS
|
UWM_SWITCH_STACK
,
.
name
=
"UWM_IRQ | UWM_CALLER | UWM_SP | UWM_REGS | UWM_SWITCH_STACK"
},
.
name
=
"UWM_IRQ | UWM_CALLER | UWM_SP | UWM_REGS | UWM_SWITCH_STACK"
},
#ifdef CONFIG_KPROBES
{.
flags
=
UWM_PGM
,
.
name
=
"UWM_PGM"
},
{.
flags
=
UWM_PGM
,
.
name
=
"UWM_PGM"
},
{.
flags
=
UWM_PGM
|
UWM_SP
,
{.
flags
=
UWM_PGM
|
UWM_SP
,
.
name
=
"UWM_PGM | UWM_SP"
},
.
name
=
"UWM_PGM | UWM_SP"
},
...
@@ -335,7 +333,6 @@ static const struct test_params param_list[] = {
...
@@ -335,7 +333,6 @@ static const struct test_params param_list[] = {
.
name
=
"UWM_PGM | UWM_REGS"
},
.
name
=
"UWM_PGM | UWM_REGS"
},
{.
flags
=
UWM_PGM
|
UWM_SP
|
UWM_REGS
,
{.
flags
=
UWM_PGM
|
UWM_SP
|
UWM_REGS
,
.
name
=
"UWM_PGM | UWM_SP | UWM_REGS"
},
.
name
=
"UWM_PGM | UWM_SP | UWM_REGS"
},
#endif
};
};
/*
/*
...
...
This diff is collapsed.
Click to expand it.
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