• Steven Rostedt (Red Hat)'s avatar
    ftrace: Add variable ftrace_expected for archs to show expected code · b05086c7
    Steven Rostedt (Red Hat) authored
    When an anomaly is found while modifying function code, ftrace_bug() is
    called which disables the function tracing infrastructure and reports
    information about what failed. If the code that is to be replaced does not
    match what is expected, then actual code is shown. Currently there is no
    arch generic way to show what was expected.
    
    Add a new variable pointer calld ftrace_expected that the arch code can set
    to point to what it expected so that ftrace_bug() can report the actual text
    as well as the text that was expected to be there.
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    b05086c7
ftrace.c 24.1 KB