Allow all trace-buffer hypercalls to be executed even when tracing is currently disabled.

From: George Dunlap
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-06-01 21:34:47 +01:00
1 parent a0746b30b0
commit 6af99de37c
1 file changed
+1 -9
+1 -9
View File
@@ -178,20 +178,12 @@ int tb_control(dom0_tbufcontrol_t *tbc)
spin_lock(&lock);
if ( !tb_init_done &&
(tbc->op != DOM0_TBUF_SET_SIZE) &&
(tbc->op != DOM0_TBUF_ENABLE) )
{
spin_unlock(&lock);
return -EINVAL;
}
switch ( tbc->op )
{
case DOM0_TBUF_GET_INFO:
tbc->cpu_mask = tb_cpu_mask;
tbc->evt_mask = tb_event_mask;
tbc->buffer_mfn = __pa(t_bufs[0]) >> PAGE_SHIFT;
tbc->buffer_mfn = opt_tbuf_size ? virt_to_mfn(t_bufs[0]) : 0UL;
tbc->size = opt_tbuf_size * PAGE_SIZE;
break;
case DOM0_TBUF_SET_CPU_MASK:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.