debuggers.hg
changeset 16671:7c98b9177b15
xentrace: Ensure virq gets sent even if we exactly hit the half water mark.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Wed Dec 19 09:51:35 2007 +0000 (2007-12-19) |
parents | 2900e4dacaa7 |
children | 0335b9fe2f10 |
files | xen/common/trace.c |
line diff
1.1 --- a/xen/common/trace.c Mon Dec 17 09:56:12 2007 -0700 1.2 +++ b/xen/common/trace.c Wed Dec 19 09:51:35 2007 +0000 1.3 @@ -485,8 +485,8 @@ void __trace_var(u32 event, int cycles, 1.4 local_irq_restore(flags); 1.5 1.6 /* Notify trace buffer consumer that we've crossed the high water mark. */ 1.7 - if ( started_below_highwater 1.8 - && ((buf->prod - buf->cons) > t_buf_highwater) ) 1.9 + if ( started_below_highwater && 1.10 + ((buf->prod - buf->cons) >= t_buf_highwater) ) 1.11 raise_softirq(TRACE_SOFTIRQ); 1.12 } 1.13