for (int i = 0; i < max_stack_depth; i++) { struct callstack_filter *filter;
/* * In powerpc, the callchain saved by kernel always includes * first three entries as the NIP (next instruction pointer), * LR (link register), and the contents of LR save area in the * second stack frame. In certain scenarios its possible to have * invalid kernel instruction addresses in either LR or the second * stack frame's LR. In that case, kernel will store that address as * zero. * * The below check will continue to look into callstack, * incase first or second callstack index entry has 0 * address for powerpc.
*/ if (!callstack || (!callstack[i] && (strcmp(arch, "powerpc") ||
(i != 1 && i != 2)))) break;
ip = callstack[i];
sym = machine__find_kernel_symbol(machine, ip, &kmap); if (sym == NULL) continue;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.