@@ -91,11 +91,11 @@ ENTRY(ftrace_common)
91
91
ldr_l x2 , function_trace_op // op
92
92
mov x3 , sp // regs
93
93
94
- GLOBAL (ftrace_call)
94
+ SYM_INNER_LABEL (ftrace_call, SYM_L_ GLOBAL )
95
95
bl ftrace_stub
96
96
97
97
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
98
- GLOBAL (ftrace_graph_call) // ftrace_graph_caller() ;
98
+ SYM_INNER_LABEL (ftrace_graph_call, SYM_L_ GLOBAL ) // ftrace_graph_caller();
99
99
nop // If enabled , this will be replaced
100
100
// "b ftrace_graph_caller"
101
101
#endif
@@ -218,7 +218,7 @@ ENDPROC(ftrace_graph_caller)
218
218
* - tracer function to probe instrumented function's entry ,
219
219
* - ftrace_graph_caller to set up an exit hook
220
220
* /
221
- ENTRY (_mcount)
221
+ SYM_FUNC_START (_mcount)
222
222
mcount_enter
223
223
224
224
ldr_l x2 , ftrace_trace_function
@@ -242,7 +242,7 @@ skip_ftrace_call: // }
242
242
b.ne ftrace_graph_caller // ftrace_graph_caller() ;
243
243
#endif / * CONFIG_FUNCTION_GRAPH_TRACER * /
244
244
mcount_exit
245
- ENDPROC (_mcount)
245
+ SYM_FUNC_END (_mcount)
246
246
EXPORT_SYMBOL(_mcount)
247
247
NOKPROBE(_mcount)
248
248
@@ -253,9 +253,9 @@ NOKPROBE(_mcount)
253
253
* and later on , NOP to branch to ftrace_caller() when enabled or branch to
254
254
* NOP when disabled per - function base.
255
255
* /
256
- ENTRY (_mcount)
256
+ SYM_FUNC_START (_mcount)
257
257
ret
258
- ENDPROC (_mcount)
258
+ SYM_FUNC_END (_mcount)
259
259
EXPORT_SYMBOL(_mcount)
260
260
NOKPROBE(_mcount)
261
261
@@ -268,24 +268,24 @@ NOKPROBE(_mcount)
268
268
* - tracer function to probe instrumented function's entry ,
269
269
* - ftrace_graph_caller to set up an exit hook
270
270
* /
271
- ENTRY (ftrace_caller)
271
+ SYM_FUNC_START (ftrace_caller)
272
272
mcount_enter
273
273
274
274
mcount_get_pc0 x0 // function's pc
275
275
mcount_get_lr x1 // function's lr
276
276
277
- GLOBAL (ftrace_call) // tracer(pc , lr) ;
277
+ SYM_INNER_LABEL (ftrace_call, SYM_L_ GLOBAL ) // tracer(pc, lr) ;
278
278
nop // This will be replaced with "bl xxx"
279
279
// where xxx can be any kind of tracer.
280
280
281
281
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
282
- GLOBAL (ftrace_graph_call) // ftrace_graph_caller() ;
282
+ SYM_INNER_LABEL (ftrace_graph_call) // ftrace_graph_caller();
283
283
nop // If enabled , this will be replaced
284
284
// "b ftrace_graph_caller"
285
285
#endif
286
286
287
287
mcount_exit
288
- ENDPROC (ftrace_caller)
288
+ SYM_FUNC_END (ftrace_caller)
289
289
#endif / * CONFIG_DYNAMIC_FTRACE * /
290
290
291
291
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
@@ -298,20 +298,20 @@ ENDPROC(ftrace_caller)
298
298
* the call stack in order to intercept instrumented function's return path
299
299
* and run return_to_handler() later on its exit.
300
300
* /
301
- ENTRY (ftrace_graph_caller)
301
+ SYM_FUNC_START (ftrace_graph_caller)
302
302
mcount_get_pc x0 // function's pc
303
303
mcount_get_lr_addr x1 // pointer to function's saved lr
304
304
mcount_get_parent_fp x2 // parent's fp
305
305
bl prepare_ftrace_return // prepare_ftrace_return(pc , &lr , fp)
306
306
307
307
mcount_exit
308
- ENDPROC (ftrace_graph_caller)
308
+ SYM_FUNC_END (ftrace_graph_caller)
309
309
#endif / * CONFIG_FUNCTION_GRAPH_TRACER * /
310
310
#endif / * CONFIG_DYNAMIC_FTRACE_WITH_REGS * /
311
311
312
- ENTRY (ftrace_stub)
312
+ SYM_FUNC_START (ftrace_stub)
313
313
ret
314
- ENDPROC (ftrace_stub)
314
+ SYM_FUNC_END (ftrace_stub)
315
315
316
316
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
317
317
/ *
0 commit comments