• Arjan van de Ven's avatar
    scripts: script from kerneloops.org to pretty print oops dumps · 5aea50b5
    Arjan van de Ven authored
    We're struggling all the time to figure out where the code came from that
    oopsed..  The script below (a adaption from a script used by
    kerneloops.org) can help developers quite a bit, at least for non-module
    cases.
    
    It works and looks like this:
    
    [/home/arjan/linux]$ dmesg | perl scripts/markup_oops.pl vmlinux
     {
     	struct agp_memory *memory;
    
     	memory = agp_allocate_memory(agp_bridge, pg_count, type);
     c055c10f:	89 c2                	mov    %eax,%edx
     	if (memory == NULL)
     c055c111:	74 19                	je     c055c12c <agp_allocate_memory_wrap+0x30>
     /* This function must only be called when current_controller != NULL */
     static void agp_insert_into_pool(struct agp_memory * temp)
     {
     	struct agp_memory *prev;
    
     	prev = agp_fe.current_controller->pool;
     c055c113:	a1 ec dc 8f c0       	mov    0xc08fdcec,%eax
    *c055c118:	8b 40 10             	mov    0x10(%eax),%eax     <----- faulting instruction
    
     	if (prev != NULL) {
     c055c11b:	85 c0          ...
    5aea50b5
markup_oops.pl 2.75 KB