Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

From: Steven Rostedt
Date: Fri Oct 05 2018 - 22:00:32 EST


On Fri, 05 Oct 2018 21:51:11 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>
>
> Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
> ---
> include/asm-generic/vmlinux.lds.h | 4 +
> include/linux/jump_function.h | 93 ++++++++
> kernel/Makefile | 2 +-
> kernel/jump_function.c | 368 ++++++++++++++++++++++++++++++
> 4 files changed, 466 insertions(+), 1 deletion(-)
> create mode 100644 include/linux/jump_function.h
> create mode 100644 kernel/jump_function.c
>
> diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
> index 7b75ff6e2fce..0e205069ff36 100644
> --- a/include/asm-generic/vmlinux.lds.h
> +++ b/include/asm-generic/vmlinux.lds.h
> @@ -257,6 +257,10 @@
> __start___jump_table = .; \
> KEEP(*(__jump_table)) \
> __stop___jump_table = .; \
> + . = ALIGN(8); \
> + __start___dynfunc_table = .; \
> + KEEP(*(__dynfunc_table)) \
> + __stop___dynfunc_table = .; \
> . = ALIGN(8); \
> __start___verbose = .; \
> KEEP(*(__verbose)) \
>

BAH, this is leftover from my first attempt. It's not needed and can be
nuked.

-- Steve