Lines Matching refs:function
55 to ensure that all functions referenced by function pointers have
62 - Function entry annotation -- annotates function entries, enabling
63 kernel function tracing
114 For each function, it recursively follows all possible code paths and
129 chain of function call sites that led to the currently executing
145 and update the frame pointer. If a first function doesn't properly
146 create a stack frame before calling a second function, the *caller*
147 of the first function will be skipped on the stack trace.
185 beginning of a function before the stack frame has been created,
186 or at the very end of the function after the stack frame has been
210 1. Each callable function must be annotated as such with the ELF
211 function type. In asm code, this is typically done using the
213 outside of a function, it flags an error since that usually indicates
217 callable function in order to analyze its stack metadata.
221 *not* be annotated as an ELF function. Rather, SYM_CODE_{START,END}
224 3. Each callable function which calls another function must have the
230 designed. If function A doesn't create a stack frame before calling
231 function B, the _caller_ of function A will be skipped on the stack
239 the same value it had on function entry.
242 function's code paths. If a function jumps to code in another file,
246 5. A callable function may not execute kernel entry/exit instructions.
278 The func() function made a function call without first saving and/or
282 function, add proper frame pointer logic using the FRAME_BEGIN and
283 FRAME_END macros. Otherwise, if it's not a callable function, remove
284 its ELF function annotation by using SYM_CODE_{START,END} and use the
287 If it's a GCC-compiled .c file, the error may be because the function
297 objtool can help with pinpointing the exact function where it happens:
323 reachable from) a callable function, the function should be annotated
336 annotated. A noreturn function must be marked __noreturn in both its
350 5. file.o: warning: objtool: func()+0x6: unsupported instruction in callable function
353 instructions aren't allowed in a callable function, and are most
367 If the instruction is not actually in a callable function (e.g.
376 Make sure that, when CONFIG_FRAME_POINTER is enabled, the function
378 the beginning of the function and pops it at the end of the function.
379 Also make sure that no other code in the function touches the frame
388 8. file.o: warning: objtool: funcA() falls through to next function funcB()
391 unconditional jump, and that objtool has determined that the function
392 can fall through into the next function. There could be different
395 a) funcA()'s last instruction is a call to a "noreturn" function like
396 panic(). In this case the noreturn function needs to be added to
408 This means that an unexpected call to a non-whitelisted function exists
429 function tracing inserts additional calls, which is not obvious from the
443 11. file.o: warning: unannotated intra-function call
446 is not at the beginning of a function. If this is a legit call, you
453 This means that objtool is running with --ibt and a function
471 - To skip validation of a function, use the STACK_FRAME_NON_STANDARD