diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-03-02 13:55:22 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-03-03 15:10:39 +0100 |
commit | e17a0e16ca3a63d1bafbcba313586cf137418f45 (patch) | |
tree | ad129fc1e2ecba0c2ff7f5ce627afcbfa57fd361 /tools/perf/arch/x86/tests/rdpmc.c | |
parent | perf test: Fix hists related entries (diff) | |
download | linux-e17a0e16ca3a63d1bafbcba313586cf137418f45.tar.xz linux-e17a0e16ca3a63d1bafbcba313586cf137418f45.zip |
perf tests: Initialize sa.sa_flags
The sa_flags field is not being initialized, so a garbage value is being
passed to sigaction. Initialize it to zero.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1456923322-29697-1-git-send-email-colin.king@canonical.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/x86/tests/rdpmc.c')
-rw-r--r-- | tools/perf/arch/x86/tests/rdpmc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/arch/x86/tests/rdpmc.c b/tools/perf/arch/x86/tests/rdpmc.c index 7bb0d13c235f..7945462851a4 100644 --- a/tools/perf/arch/x86/tests/rdpmc.c +++ b/tools/perf/arch/x86/tests/rdpmc.c @@ -103,6 +103,7 @@ static int __test__rdpmc(void) sigfillset(&sa.sa_mask); sa.sa_sigaction = segfault_handler; + sa.sa_flags = 0; sigaction(SIGSEGV, &sa, NULL); fd = sys_perf_event_open(&attr, 0, -1, -1, |