in profiler/stack_printer.cpp [131:164]
static void print_fold_lua_func(const struct syms *syms, const struct lua_stack_event *eventp)
{
if (!eventp)
{
return;
}
if (eventp->type == FUNC_TYPE_LUA)
{
if (eventp->ffid)
{
printf(";L:%s:%d", eventp->name, eventp->ffid);
}
else
{
printf(";L:%s", eventp->name);
}
}
else if (eventp->type == FUNC_TYPE_C)
{
const struct sym *sym = syms__map_addr(syms, (unsigned long)eventp->funcp);
if (sym)
{
printf(";C:%s", sym ? sym->name : "[unknown]");
}
}
else if (eventp->type == FUNC_TYPE_F)
{
printf(";builtin#%d", eventp->ffid);
}
else
{
printf(";[unknown]");
}
}