Skip to content

Commit 6587553

Browse files
heicarstMartin Schwidefsky
authored andcommitted
s390/runtime_instrumentation: re-add signum system call parameter
Add the signum system call parameter for documentation purposes only, and without checking if the passed value is a valid real-time signal. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 81507f3 commit 6587553

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

arch/s390/kernel/runtime_instr.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#include <asm/cpu_mf.h>
1919
#include <asm/irq.h>
2020

21+
#include "entry.h"
22+
2123
/* empty control block to disable RI by loading it */
2224
struct runtime_instr_cb runtime_instr_empty_cb;
2325

@@ -59,7 +61,13 @@ static void init_runtime_instr_cb(struct runtime_instr_cb *cb)
5961
cb->v = 1;
6062
}
6163

62-
SYSCALL_DEFINE1(s390_runtime_instr, int, command)
64+
/*
65+
* The signum argument is unused. In older kernels it was used to
66+
* specify a real-time signal. For backwards compatibility user space
67+
* should pass a valid real-time signal number (the signum argument
68+
* was checked in older kernels).
69+
*/
70+
SYSCALL_DEFINE2(s390_runtime_instr, int, command, int, signum)
6371
{
6472
struct runtime_instr_cb *cb;
6573

0 commit comments

Comments
 (0)