Centos-kernel-stream-9/samples/ftrace
Waiman Long 3a6206e74a samples: ftrace: Include the nospec-branch.h only for x86
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2190342

commit 01678fbce3dd2e3042077cf71b68157e733614a0
Author: Song Shuai <suagrfillet@gmail.com>
Date:   Mon, 30 Jan 2023 16:59:54 +0800

    samples: ftrace: Include the nospec-branch.h only for x86

    When other architectures without the nospec functionality write their
    direct-call functions of samples/ftrace/*.c, the including of
    asm/nospec-branch.h must be taken care to fix the no header file found
    error in building process.

    This commit (ee3e2469b346 "x86/ftrace: Make it call depth tracking aware")
    file-globally includes asm/nospec-branch.h providing CALL_DEPTH_ACCOUNT
    for only x86 direct-call functions.

    It seems better to move the including to `#ifdef CONFIG_X86_64`.

    Link: https://lore.kernel.org/linux-trace-kernel/20230130085954.647845-1-suagrfillet@gmail.com

    Signed-off-by: Song Shuai <suagrfillet@gmail.com>
    Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
    Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

Signed-off-by: Waiman Long <longman@redhat.com>
2023-06-30 20:32:14 -04:00
..
Makefile ftrace/samples: Add module to test multi direct modify interface 2023-06-30 19:59:50 -04:00
ftrace-direct-modify.c samples: ftrace: Include the nospec-branch.h only for x86 2023-06-30 20:32:14 -04:00
ftrace-direct-multi-modify.c samples: ftrace: Include the nospec-branch.h only for x86 2023-06-30 20:32:14 -04:00
ftrace-direct-multi.c samples: ftrace: Include the nospec-branch.h only for x86 2023-06-30 20:32:14 -04:00
ftrace-direct-too.c samples: ftrace: Include the nospec-branch.h only for x86 2023-06-30 20:32:14 -04:00
ftrace-direct.c samples: ftrace: Include the nospec-branch.h only for x86 2023-06-30 20:32:14 -04:00
sample-trace-array.c sample-trace-array: Remove trace_array 'sample-instance' 2020-06-16 21:21:02 -04:00
sample-trace-array.h tracing: Sample module to demonstrate kernel access to Ftrace instances. 2019-11-22 19:41:08 -05:00