374 |
/* MTS64 chunk forward declaration */ |
/* MTS64 chunk forward declaration */ |
375 |
typedef struct mts64_chunk mts64_chunk_t; |
typedef struct mts64_chunk mts64_chunk_t; |
376 |
|
|
377 |
|
/* Maximum results for idle pc */ |
378 |
|
#define MIPS64_IDLE_PC_MAX_RES 10 |
379 |
|
|
380 |
|
/* Idle PC hash item */ |
381 |
|
struct mips64_idle_pc { |
382 |
|
m_uint64_t pc; |
383 |
|
u_int count; |
384 |
|
}; |
385 |
|
|
386 |
/* MIPS CPU definition */ |
/* MIPS CPU definition */ |
387 |
struct cpu_mips { |
struct cpu_mips { |
388 |
/* MTS 1st level array */ |
/* MTS 1st level array */ |
441 |
|
|
442 |
/* "Idle" loop management */ |
/* "Idle" loop management */ |
443 |
volatile m_uint64_t idle_pc; |
volatile m_uint64_t idle_pc; |
444 |
u_int idle_max,idle_sleep_time; |
u_int idle_count,idle_max,idle_sleep_time; |
445 |
pthread_mutex_t idle_mutex; |
pthread_mutex_t idle_mutex; |
446 |
pthread_cond_t idle_cond; |
pthread_cond_t idle_cond; |
447 |
|
|
519 |
m_uint64_t breakpoints[MIPS64_MAX_BREAKPOINTS]; |
m_uint64_t breakpoints[MIPS64_MAX_BREAKPOINTS]; |
520 |
u_int breakpoints_enabled; |
u_int breakpoints_enabled; |
521 |
|
|
522 |
|
/* Idle PC proposal */ |
523 |
|
struct mips64_idle_pc idle_pc_prop[MIPS64_IDLE_PC_MAX_RES]; |
524 |
|
u_int idle_pc_prop_count; |
525 |
|
|
526 |
/* Symtrace */ |
/* Symtrace */ |
527 |
int sym_trace; |
int sym_trace; |
528 |
rbtree_tree *sym_tree; |
rbtree_tree *sym_tree; |