dmp_kernel.c File Reference

#include "inc.h"
#include <timers.h>
#include <ibm/interrupt.h>
#include <minix/endpoint.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"

Include dependency graph for dmp_kernel.c:

Go to the source code of this file.

Defines

#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 ()
PUBLIC void image_dmp ()
PUBLIC void sched_dmp ()
PUBLIC void kenv_dmp ()
PRIVATE char * s_flags_str (int flags)
PRIVATE char * s_traps_str (int flags)
PUBLIC void privileges_dmp ()
PUBLIC void sendmask_dmp ()
PRIVATE char * p_rts_flags_str (int flags)
PUBLIC void proctab_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 14 of file dmp_kernel.c.


Function Documentation

FORWARD _PROTOTYPE char *  s_traps_str,
(int flags
 

FORWARD _PROTOTYPE char *  proc_name,
(int proc_nr
 

PUBLIC void image_dmp  ) 
 

Definition at line 197 of file dmp_kernel.c.

References BITCHUNK_BITS, i, if(), image, boot_image::ipc_to, j, m, NR_BOOT_PROCS, OK, printf, r, report(), and sys_getimage.

PUBLIC void irqtab_dmp  ) 
 

Definition at line 133 of file dmp_kernel.c.

References e, i, irq_hook::irq, irq_actids, irq_hooks, IRQ_REENABLE, NONE, NR_IRQ_HOOKS, NR_IRQ_VECTORS, OK, printf, r, report(), sys_getirqactids, and sys_getirqhooks.

PUBLIC void kenv_dmp  ) 
 

Definition at line 276 of file dmp_kernel.c.

References kinfo::bootdev_base, kinfo::bootdev_size, kinfo::code_base, kinfo::code_size, kinfo::data_base, kinfo::data_size, kinfo, kinfo::kmem_base, kinfo::kmem_size, machine, kinfo::nr_procs, kinfo::nr_tasks, OK, kinfo::params_base, kinfo::params_size, machine::pc_at, printf, kinfo::proc_addr, machine::processor, machine::protected, machine::ps_mca, r, kinfo::ramdev_base, kinfo::ramdev_size, kinfo::release, report(), sys_getkinfo, sys_getmachine, machine::vdu_ega, machine::vdu_vga, and kinfo::version.

PUBLIC void kmessages_dmp  ) 
 

Definition at line 74 of file dmp_kernel.c.

References kmessages::km_buf, kmessages::km_next, kmessages::km_size, kmess, KMESS_BUF_SIZE, OK, printf, r, report(), start, and sys_getkmessages.

PUBLIC void memmap_dmp  ) 
 

Definition at line 515 of file dmp_kernel.c.

References click_to_round_k, D, isemptyp, n, OK, printf, proc_nr, r, report(), S, size, sys_getproctab, and T.

PUBLIC void monparams_dmp  ) 
 

Definition at line 106 of file dmp_kernel.c.

References e, OK, printf, r, report(), strlen(), sys_getmonparams, and val.

PRIVATE char* p_rts_flags_str int  flags  ) 
 

Definition at line 449 of file dmp_kernel.c.

References NO_MAP, P_STOP, RECEIVING, SENDING, SIG_PENDING, and SIGNALED.

Referenced by proctab_dmp().

PUBLIC void privileges_dmp  ) 
 

Definition at line 351 of file dmp_kernel.c.

References BEG_PROC_ADDR, END_PROC_ADDR, i, IDLE, isemptyp, j, n, NR_SYS_PROCS, OK, printf, proc_nr, r, report(), sp, sys_getprivtab, and sys_getproctab.

PRIVATE char* proc_name int  proc_nr  ) 
 

Definition at line 553 of file dmp_kernel.c.

References ANY, and cproc_addr.

Referenced by proctab_dmp().

PUBLIC void proctab_dmp  ) 
 

Definition at line 467 of file dmp_kernel.c.

References _ENDPOINT_G, _ENDPOINT_P, BEG_PROC_ADDR, click_to_round_k, D, data, IDLE, isemptyp, n, OK, p_rts_flags_str(), printf, proc_name(), proc_nr, r, RECEIVING, report(), S, SENDING, size, sys_getproctab, and T.

PRIVATE char* s_flags_str int  flags  ) 
 

Definition at line 322 of file dmp_kernel.c.

References BILLABLE, PREEMPTIBLE, and SYS_PROC.

PRIVATE char* s_traps_str int  flags  ) 
 

Definition at line 335 of file dmp_kernel.c.

References ECHO, NOTIFY, RECEIVE, SEND, and SENDREC.

PUBLIC void sched_dmp  ) 
 

Definition at line 227 of file dmp_kernel.c.

References BEG_PROC_ADDR, END_PROC_ADDR, kinfo, NIL_PROC, NR_SCHED_QUEUES, OK, proc::p_nextready, proc::p_nr, printf, kinfo::proc_addr, r, rdy_head, report(), sys_getkinfo, and sys_getschedinfo.

PUBLIC void sendmask_dmp  ) 
 

Definition at line 403 of file dmp_kernel.c.

References BEG_PROC_ADDR, i, INIT_PROC_NR, j, n, OK, printf, proc_nr, r, report(), and sys_getproctab.

PUBLIC void timing_dmp  ) 
 

Definition at line 34 of file dmp_kernel.c.

References b, c, names, OK, printed(), printf, r, report(), sys_getlocktimings, and x.


Variable Documentation

PUBLIC struct boot_image image[NR_BOOT_PROCS]
 

Definition at line 29 of file dmp_kernel.c.

PUBLIC struct priv priv[NR_SYS_PROCS]
 

Definition at line 28 of file dmp_kernel.c.

PUBLIC struct proc proc[NR_TASKS+NR_PROCS]
 

Definition at line 27 of file dmp_kernel.c.


Generated on Fri Apr 14 23:21:38 2006 for minix by  doxygen 1.4.6