diff options
author | Richard Braun <rbraun@sceen.net> | 2014-06-10 21:16:04 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-06-10 21:16:04 +0200 |
commit | 41ec0ce1e8ab48a965bd8b9dc42caf1cca3cb735 (patch) | |
tree | 07b898a12613c79ef1352602ac5cd00c0beaf2ef /kern/thread.c | |
parent | b1864ab6a86b8c2ae79f10aa2cfe11801f8ce088 (diff) |
kern/thread: append _intr to event counter names
Diffstat (limited to 'kern/thread.c')
-rw-r--r-- | kern/thread.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kern/thread.c b/kern/thread.c index 9ed55d3c..345d01e6 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -205,8 +205,8 @@ struct thread_runq { /* Ticks before the next balancing attempt when a run queue is idle */ unsigned int idle_balance_ticks; - struct evcnt ev_schedule; - struct evcnt ev_tick; + struct evcnt ev_schedule_intr; + struct evcnt ev_tick_intr; } __aligned(CPU_L1_SIZE); /* @@ -365,10 +365,10 @@ thread_runq_init(struct thread_runq *runq, struct thread *booter) runq->idler = NULL; runq->idle_balance_ticks = (unsigned int)-1; runq_id = thread_runq_id(runq); - snprintf(name, sizeof(name), "thread_schedule/%u", runq_id); - evcnt_register(&runq->ev_schedule, name); - snprintf(name, sizeof(name), "thread_tick/%u", runq_id); - evcnt_register(&runq->ev_tick, name); + snprintf(name, sizeof(name), "thread_schedule_intr/%u", runq_id); + evcnt_register(&runq->ev_schedule_intr, name); + snprintf(name, sizeof(name), "thread_tick_intr/%u", runq_id); + evcnt_register(&runq->ev_tick_intr, name); } static inline struct thread_runq * @@ -1990,7 +1990,7 @@ thread_schedule_intr(void) assert(!thread_preempt_enabled()); runq = thread_runq_local(); - evcnt_inc(&runq->ev_schedule); + evcnt_inc(&runq->ev_schedule_intr); } void @@ -2003,7 +2003,7 @@ thread_tick_intr(void) assert(!thread_preempt_enabled()); runq = thread_runq_local(); - evcnt_inc(&runq->ev_tick); + evcnt_inc(&runq->ev_tick_intr); llsync_report_periodic_event(); thread = thread_self(); |