TIMER: Add debug support for MUX clock co-scheduling
This commit is contained in:
parent
dac6633237
commit
ac9e19e250
2 changed files with 15 additions and 12 deletions
22
sim_timer.c
22
sim_timer.c
|
@ -116,17 +116,19 @@ t_stat sim_timer_tick_svc (UNIT *uptr);
|
||||||
|
|
||||||
#define DBG_IDL TIMER_DBG_IDLE /* idling */
|
#define DBG_IDL TIMER_DBG_IDLE /* idling */
|
||||||
#define DBG_QUE TIMER_DBG_QUEUE /* queue activities */
|
#define DBG_QUE TIMER_DBG_QUEUE /* queue activities */
|
||||||
#define DBG_TRC 0x004 /* tracing */
|
#define DBG_MUX TIMER_DBG_MUX /* tmxr queue activities */
|
||||||
#define DBG_CAL 0x008 /* calibration activities */
|
#define DBG_TRC 0x008 /* tracing */
|
||||||
#define DBG_TIM 0x010 /* timer thread activities */
|
#define DBG_CAL 0x010 /* calibration activities */
|
||||||
#define DBG_THR 0x020 /* throttle activities */
|
#define DBG_TIM 0x020 /* timer thread activities */
|
||||||
|
#define DBG_THR 0x040 /* throttle activities */
|
||||||
DEBTAB sim_timer_debug[] = {
|
DEBTAB sim_timer_debug[] = {
|
||||||
{"TRACE", DBG_TRC},
|
{"TRACE", DBG_TRC, "Trace routine calls"},
|
||||||
{"IDLE", DBG_IDL},
|
{"IDLE", DBG_IDL, "Idling activities"},
|
||||||
{"QUEUE", DBG_QUE},
|
{"QUEUE", DBG_QUE, "Event queuing activities"},
|
||||||
{"CALIB", DBG_CAL},
|
{"CALIB", DBG_CAL, "Calibration activities"},
|
||||||
{"TIME", DBG_TIM},
|
{"TIME", DBG_TIM, "Activation an scheduling activities"},
|
||||||
{"THROT", DBG_THR},
|
{"THROT", DBG_THR, "Throttling activities"},
|
||||||
|
{"MUX", DBG_MUX, "Tmxr scheduling activities"},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -88,8 +88,9 @@ int clock_gettime(int clock_id, struct timespec *tp);
|
||||||
#define SIM_THROT_PCT 3 /* Max Percent of host CPU */
|
#define SIM_THROT_PCT 3 /* Max Percent of host CPU */
|
||||||
#define SIM_THROT_SPC 4 /* Specific periodic Delay */
|
#define SIM_THROT_SPC 4 /* Specific periodic Delay */
|
||||||
|
|
||||||
#define TIMER_DBG_IDLE 1 /* Debug Flag for Idle Debugging */
|
#define TIMER_DBG_IDLE 0x001 /* Debug Flag for Idle Debugging */
|
||||||
#define TIMER_DBG_QUEUE 2 /* Debug Flag for Asynch Queue Debugging */
|
#define TIMER_DBG_QUEUE 0x002 /* Debug Flag for Asynch Queue Debugging */
|
||||||
|
#define TIMER_DBG_MUX 0x004 /* Debug Flag for Asynch Queue Debugging */
|
||||||
|
|
||||||
t_bool sim_timer_init (void);
|
t_bool sim_timer_init (void);
|
||||||
void sim_timespec_diff (struct timespec *diff, struct timespec *min, struct timespec *sub);
|
void sim_timespec_diff (struct timespec *diff, struct timespec *min, struct timespec *sub);
|
||||||
|
|
Loading…
Add table
Reference in a new issue