mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[S390] add kprobes annotations
Add kprobes annotations to get the massive 'probe kernel.function("*") {}' stress test working. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
4a1886358b
commit
860dba45e8
8 changed files with 26 additions and 9 deletions
|
@ -32,6 +32,7 @@
|
|||
#include <linux/kernel_stat.h>
|
||||
#include <linux/syscalls.h>
|
||||
#include <linux/compat.h>
|
||||
#include <linux/kprobes.h>
|
||||
#include <asm/compat.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/pgtable.h>
|
||||
|
@ -116,15 +117,17 @@ void cpu_idle(void)
|
|||
}
|
||||
}
|
||||
|
||||
extern void kernel_thread_starter(void);
|
||||
extern void __kprobes kernel_thread_starter(void);
|
||||
|
||||
asm(
|
||||
".align 4\n"
|
||||
".section .kprobes.text, \"ax\"\n"
|
||||
".global kernel_thread_starter\n"
|
||||
"kernel_thread_starter:\n"
|
||||
" la 2,0(10)\n"
|
||||
" basr 14,9\n"
|
||||
" la 2,0\n"
|
||||
" br 11\n");
|
||||
" br 11\n"
|
||||
".previous\n");
|
||||
|
||||
int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue