src/servers/is/dmp_kernel.c File Reference

#include "inc.h"
#include <timers.h>
#include <ibm/interrupt.h>
#include <minix/endpoint.h>
#include <minix/sysutil.h>
#include <minix/sys_config.h>
#include "../../kernel/const.h"
#include "../../kernel/config.h"
#include "../../kernel/debug.h"
#include "../../kernel/type.h"
#include "../../kernel/proc.h"
#include "../../kernel/ipc.h"

Go to the source code of this file.

Defines

#define LINES   22
#define PRINTRTS(rp)
#define PROCLOOP(rp, oldrp)
#define click_to_round_k(n)   ((unsigned) ((((unsigned long) (n) << CLICK_SHIFT) + 512) / 1024))

Functions

FORWARD _PROTOTYPE (char *proc_name,(int proc_nr))
FORWARD _PROTOTYPE (char *s_traps_str,(int flags))
PUBLIC void timing_dmp ()
PUBLIC void kmessages_dmp ()
PUBLIC void monparams_dmp ()
PUBLIC void irqtab_dmp ()
PRIVATE char * boot_flags_str (int flags)
PUBLIC void image_dmp ()
PUBLIC void kenv_dmp ()
PRIVATE char * s_flags_str (int flags)
PRIVATE char * s_traps_str (int flags)
PUBLIC void privileges_dmp ()
PRIVATE char * p_rts_flags_str (int flags)
PUBLIC void proctab_dmp ()
PUBLIC void procstack_dmp ()
PUBLIC void memmap_dmp ()
PRIVATE char * proc_name (int proc_nr)

Variables

PUBLIC struct proc proc [NR_TASKS+NR_PROCS]
PUBLIC struct priv priv [NR_SYS_PROCS]
PUBLIC struct boot_image image [NR_BOOT_PROCS]


Define Documentation

#define click_to_round_k ( n   )     ((unsigned) ((((unsigned long) (n) << CLICK_SHIFT) + 512) / 1024))

Definition at line 40 of file dmp_kernel.c.

#define LINES   22

Definition at line 16 of file dmp_kernel.c.

#define PRINTRTS ( rp   ) 

Value:

{ \
        char *procname = "";    \
        printf(" %s", p_rts_flags_str(rp->p_rts_flags));        \
        if (rp->p_rts_flags & RTS_SENDING)                              \
                procname = proc_name(_ENDPOINT_P(rp->p_sendto_e)); \
        else if (rp->p_rts_flags & RTS_RECEIVING)                       \
                procname = proc_name(_ENDPOINT_P(rp->p_getfrom_e)); \
        printf(" %-7.7s", procname);    \
}

Definition at line 18 of file dmp_kernel.c.

#define PROCLOOP ( rp,
oldrp   ) 

Value:

pagelines = 0; \
        for (rp = oldrp; rp < END_PROC_ADDR; rp++) { \
          oldrp = BEG_PROC_ADDR; \
          if (isemptyp(rp)) continue; \
          if (++pagelines > LINES) { oldrp = rp; printf("--more--\n"); break; }\
          if (proc_nr(rp) == IDLE)      printf("(%2d) ", proc_nr(rp));  \
          else if (proc_nr(rp) < 0)     printf("[%2d] ", proc_nr(rp));  \
          else                          printf(" %2d  ", proc_nr(rp));

Definition at line 30 of file dmp_kernel.c.


Function Documentation

FORWARD _PROTOTYPE ( char *  s_traps_str,
(int flags  
)

FORWARD _PROTOTYPE ( char *  proc_name,
(int proc_nr  
)

PRIVATE char* boot_flags_str ( int  flags  ) 

Definition at line 202 of file dmp_kernel.c.

PUBLIC void image_dmp (  ) 

Definition at line 214 of file dmp_kernel.c.

PUBLIC void irqtab_dmp (  ) 

Definition at line 156 of file dmp_kernel.c.

PUBLIC void kenv_dmp (  ) 

Definition at line 238 of file dmp_kernel.c.

PUBLIC void kmessages_dmp (  ) 

Definition at line 97 of file dmp_kernel.c.

PUBLIC void memmap_dmp (  ) 

Definition at line 440 of file dmp_kernel.c.

PUBLIC void monparams_dmp (  ) 

Definition at line 129 of file dmp_kernel.c.

PRIVATE char* p_rts_flags_str ( int  flags  ) 

Definition at line 359 of file dmp_kernel.c.

PUBLIC void privileges_dmp (  ) 

Definition at line 313 of file dmp_kernel.c.

PRIVATE char* proc_name ( int  proc_nr  ) 

Definition at line 472 of file dmp_kernel.c.

PUBLIC void procstack_dmp (  ) 

Definition at line 415 of file dmp_kernel.c.

PUBLIC void proctab_dmp (  ) 

Definition at line 378 of file dmp_kernel.c.

PRIVATE char* s_flags_str ( int  flags  ) 

Definition at line 279 of file dmp_kernel.c.

PRIVATE char* s_traps_str ( int  flags  ) 

Definition at line 297 of file dmp_kernel.c.

PUBLIC void timing_dmp (  ) 

Definition at line 61 of file dmp_kernel.c.


Variable Documentation

PUBLIC struct boot_image image[NR_BOOT_PROCS]

Definition at line 56 of file dmp_kernel.c.

PUBLIC struct priv priv[NR_SYS_PROCS]

Definition at line 55 of file dmp_kernel.c.

PUBLIC struct proc proc[NR_TASKS+NR_PROCS]

Definition at line 54 of file dmp_kernel.c.


Generated on Tue Mar 9 04:37:02 2010 for Minix by  doxygen 1.5.8