add supports for dump analyzer

This commit is contained in:
NAKAMURA Gou
2015-02-17 11:23:25 +09:00
parent 63669b7f71
commit a0d909af75
6 changed files with 64 additions and 6 deletions

View File

@@ -40,6 +40,20 @@ extern void save_fp_regs(struct process *proc);
#define dkprintf(...) do { if (0) kprintf(__VA_ARGS__); } while (0)
#endif
uintptr_t debug_constants[] = {
sizeof(struct cpu_local_var),
offsetof(struct cpu_local_var, current),
offsetof(struct cpu_local_var, runq),
offsetof(struct cpu_local_var, status),
offsetof(struct process, ctx),
offsetof(struct process, sched_list),
offsetof(struct process, ftn),
offsetof(struct fork_tree_node, status),
offsetof(struct fork_tree_node, pid),
offsetof(struct fork_tree_node, tid),
-1,
};
/*
See dkprintf("BSP HW ID = %d, ", bsp_hw_id); (in ./mcos/kernel/ap.c)