MCPcopy Create free account
hub / github.com/F-Stack/f-stack / stack_symbol

Function stack_symbol

freebsd/kern/subr_stack.c:254–268  ·  view source on GitHub ↗

* Two variants of stack symbol lookup -- one that uses the DDB interfaces * and bypasses linker locking, and the other that doesn't. */

Source from the content-addressed store, hash-verified

252 * and bypasses linker locking, and the other that doesn't.
253 */
254static int
255stack_symbol(vm_offset_t pc, char *namebuf, u_int buflen, long *offset,
256 int flags)
257{
258 int error;
259
260 error = linker_search_symbol_name_flags((caddr_t)pc, namebuf, buflen,
261 offset, flags);
262 if (error == 0 || error == EWOULDBLOCK)
263 return (error);
264
265 *offset = 0;
266 strlcpy(namebuf, "??", buflen);
267 return (ENOENT);
268}
269
270static int
271stack_symbol_ddb(vm_offset_t pc, const char **name, long *offset)

Callers 3

stack_printFunction · 0.85
stack_print_shortFunction · 0.85
stack_sbuf_print_flagsFunction · 0.85

Calls 2

strlcpyFunction · 0.50

Tested by

no test coverage detected