File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 23
23
#include <objtool/builtin.h>
24
24
#include <arch/elf.h>
25
25
26
+ int arch_ftrace_match (char * name )
27
+ {
28
+ return !strcmp (name , "__fentry__" );
29
+ }
30
+
26
31
static int is_x86_64 (const struct elf * elf )
27
32
{
28
33
switch (elf -> ehdr .e_machine ) {
Original file line number Diff line number Diff line change @@ -2316,7 +2316,7 @@ static int classify_symbols(struct objtool_file *file)
2316
2316
if (arch_is_rethunk (func ))
2317
2317
func -> return_thunk = true;
2318
2318
2319
- if (! strcmp (func -> name , "__fentry__" ))
2319
+ if (arch_ftrace_match (func -> name ))
2320
2320
func -> fentry = true;
2321
2321
2322
2322
if (is_profiling_func (func -> name ))
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ struct stack_op {
69
69
70
70
struct instruction ;
71
71
72
+ int arch_ftrace_match (char * name );
73
+
72
74
void arch_initial_func_cfi_state (struct cfi_init_state * state );
73
75
74
76
int arch_decode_instruction (struct objtool_file * file , const struct section * sec ,
You can’t perform that action at this time.
0 commit comments