summaryrefslogtreecommitdiff
path: root/tools/perf/tests/perf-hooks.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-14 07:36:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-14 07:36:49 +0200
commit97856e59384de326174360a780038113fea19f42 (patch)
tree6b4d9e5fb0e93e0274a7d2626276e5d475824568 /tools/perf/tests/perf-hooks.c
parent40688bd58df71269d146996e10e84ca3888fd330 (diff)
parent4f5cafb5cb8471e54afdc9054d973535614f7675 (diff)
downloadlinux-next-97856e59384de326174360a780038113fea19f42.tar.gz
Merge 5.4-rc3 into char-misc-next
We need the char/misc fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/tests/perf-hooks.c')
-rw-r--r--tools/perf/tests/perf-hooks.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/tests/perf-hooks.c b/tools/perf/tests/perf-hooks.c
index dbc27199c65e..dd865e0bea12 100644
--- a/tools/perf/tests/perf-hooks.c
+++ b/tools/perf/tests/perf-hooks.c
@@ -19,12 +19,11 @@ static void sigsegv_handler(int sig __maybe_unused)
static void the_hook(void *_hook_flags)
{
int *hook_flags = _hook_flags;
- int *p = NULL;
*hook_flags = 1234;
/* Generate a segfault, test perf_hooks__recover */
- *p = 0;
+ raise(SIGSEGV);
}
int test__perf_hooks(struct test *test __maybe_unused, int subtest __maybe_unused)