staticbool trace_check_alloc(struct trace_buffer *tb, void *p)
{ /* * If we ever overflowed don't allow any more input. This prevents us * from dropping a large item and then later logging a small one. The * buffer should just stop when overflow happened, not be patchy. If * you're overflowing, make your buffer bigger.
*/ if (tb->overflow) returnfalse;
if (!trace_check_bounds(tb, p)) {
tb->overflow = true; returnfalse;
}
returntrue;
}
staticvoid *trace_alloc(struct trace_buffer *tb, int bytes)
{ void *p, *newtail;
p = tb->tail;
newtail = tb->tail + bytes; if (!trace_check_alloc(tb, newtail)) return NULL;
staticchar *trace_decode_reg(int reg)
{ switch (reg) { case 769: return"SPRN_MMCR2"; break; case 770: return"SPRN_MMCRA"; break; case 779: return"SPRN_MMCR0"; break; case 804: return"SPRN_EBBHR"; break; case 805: return"SPRN_EBBRR"; break; case 806: return"SPRN_BESCR"; break; case 800: return"SPRN_BESCRS"; break; case 801: return"SPRN_BESCRSU"; break; case 802: return"SPRN_BESCRR"; break; case 803: return"SPRN_BESCRRU"; break; case 771: return"SPRN_PMC1"; break; case 772: return"SPRN_PMC2"; break; case 773: return"SPRN_PMC3"; break; case 774: return"SPRN_PMC4"; break; case 775: return"SPRN_PMC5"; break; case 776: return"SPRN_PMC6"; break; case 780: return"SPRN_SIAR"; break; case 781: return"SPRN_SDAR"; break; case 768: return"SPRN_SIER"; break;
}
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.