mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
ftrace: Add variable ftrace_expected for archs to show expected code
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: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
committed by
Steven Rostedt
parent
02a392a043
commit
b05086c77a
@@ -305,6 +305,12 @@ enum ftrace_bug_type {
|
||||
};
|
||||
extern enum ftrace_bug_type ftrace_bug_type;
|
||||
|
||||
/*
|
||||
* Archs can set this to point to a variable that holds the value that was
|
||||
* expected at the call site before calling ftrace_bug().
|
||||
*/
|
||||
extern const void *ftrace_expected;
|
||||
|
||||
void ftrace_bug(int err, struct dyn_ftrace *rec);
|
||||
|
||||
struct seq_file;
|
||||
|
Reference in New Issue
Block a user